Added a line to save eigen-values, vectors to a mat file.

This commit is contained in:
Karthik 2024-11-22 16:25:42 +01:00
parent 196663e367
commit 988df2b5f3
3 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,6 @@
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(:));
opts.tol = 1e-16;
opts.disp = 1;

View File

@ -128,6 +128,9 @@ muchem = solver.Calculator.calculateChemicalPotential(psi,Params,VParams,Transf,
[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
OptionsStruct = struct;

View File

@ -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);
[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');