Added a line to save eigen-values, vectors to a mat file.
This commit is contained in:
parent
196663e367
commit
988df2b5f3
@ -1,6 +1,6 @@
|
|||||||
function [evals, modes] = solveBogoliubovdeGennesIn2D(psi, Params, VDk, VParams, Transf, muchem)
|
function [evals, modes] = solveBogoliubovdeGennesIn2D(psi, Params, VDk, VParams, Transf, muchem)
|
||||||
|
|
||||||
Size = length(psi(:));
|
Size = length(psi(:)); % 2-D matrix will be unwrapped and the corresponding matrix of (N^2)^2 elements solved for.
|
||||||
Neigs = length(psi(:));
|
Neigs = length(psi(:));
|
||||||
opts.tol = 1e-16;
|
opts.tol = 1e-16;
|
||||||
opts.disp = 1;
|
opts.disp = 1;
|
||||||
|
@ -128,6 +128,9 @@ muchem = solver.Calculator.calculateChemicalPotential(psi,Params,VParams,Transf,
|
|||||||
|
|
||||||
[evals, modes] = BdGSolver2D.solveBogoliubovdeGennesIn2D(psi, Params, VDk, VParams, Transf, muchem);
|
[evals, modes] = BdGSolver2D.solveBogoliubovdeGennesIn2D(psi, Params, VDk, VParams, Transf, muchem);
|
||||||
|
|
||||||
|
% Save the eigenvalues and eigenvectors to a .mat file
|
||||||
|
save(sprintf(strcat(solver.SaveDirectory, '/Run_%03i/bdg_eigen_data.mat'),solver.JobNumber), 'evals', 'modes');
|
||||||
|
|
||||||
%% - Create Variational2D and Calculator object with specified options
|
%% - Create Variational2D and Calculator object with specified options
|
||||||
|
|
||||||
OptionsStruct = struct;
|
OptionsStruct = struct;
|
||||||
|
@ -204,3 +204,6 @@ V = 0.0*(Params.gx.*X.^2+Params.gy.*Y.^2);
|
|||||||
muchem = solver.Calculator.calculateChemicalPotential(psi,Params,VParams,Transf,VDk,V);
|
muchem = solver.Calculator.calculateChemicalPotential(psi,Params,VParams,Transf,VDk,V);
|
||||||
|
|
||||||
[evals, modes] = BdGSolver2D.solveBogoliubovdeGennesIn2D(psi, Params, VDk, VParams, Transf, muchem);
|
[evals, modes] = BdGSolver2D.solveBogoliubovdeGennesIn2D(psi, Params, VDk, VParams, Transf, muchem);
|
||||||
|
|
||||||
|
% Save the eigenvalues and eigenvectors to a .mat file
|
||||||
|
save(sprintf(strcat(solver.SaveDirectory, '/Run_%03i/bdg_eigen_data.mat'),Params.njob), 'evals', 'modes');
|
||||||
|
Loading…
Reference in New Issue
Block a user