Latest execution scripts
This commit is contained in:
parent
4583f1a643
commit
7c71ea063e
@ -554,8 +554,8 @@ JobNumber = 0;
|
||||
Plotter.visualizeGSWavefunction(SaveDirectory, JobNumber)
|
||||
%%
|
||||
% Parameters you can set before the loop
|
||||
N = 105000;
|
||||
theta = 50.0;
|
||||
N = 165000;
|
||||
theta = 30.0;
|
||||
phi = 0;
|
||||
JobNumber = 0;
|
||||
|
||||
@ -583,14 +583,14 @@ for aS = aS_values
|
||||
|
||||
% Pause to inspect plot before continuing
|
||||
disp(['Plotted for aS = ', num2str(aS)])
|
||||
pause(0.25)
|
||||
pause(1.5)
|
||||
end
|
||||
|
||||
|
||||
%%
|
||||
SaveDirectory = './Results/Data_3D/GradientDescent/';
|
||||
JobNumber = 1;
|
||||
Plotter.visualizeGSWavefunction(SaveDirectory, JobNumber)
|
||||
|
||||
%% Visualize phase diagram
|
||||
load('phase_diagram_matrix_theta_30.mat')
|
||||
PhaseDiagramMatrix = M;
|
||||
|
@ -16,11 +16,6 @@ OptionsStruct.CutoffType = 'Cylindrical';
|
||||
OptionsStruct.SimulationMode = 'EnergyMinimization'; % 'ImaginaryTimeEvolution' | 'RealTimeEvolution' | 'EnergyMinimization'
|
||||
OptionsStruct.GradientDescentMethod = 'NonLinearCGD'; % 'HeavyBall' | 'NonLinearCGD'
|
||||
OptionsStruct.MaxIterationsForGD = 15000;
|
||||
OptionsStruct.TimeStepSize = 1e-3; % in s
|
||||
OptionsStruct.MinimumTimeStepSize = 1E-6; % in s
|
||||
OptionsStruct.TimeCutOff = 1E5; % in s
|
||||
OptionsStruct.EnergyTolerance = 5E-10;
|
||||
OptionsStruct.ResidualTolerance = 1E-05;
|
||||
OptionsStruct.NoiseScaleFactor = 0.010;
|
||||
|
||||
OptionsStruct.PlotLive = false;
|
||||
|
@ -1,4 +1,4 @@
|
||||
$root = "C:\Users\Karthik\Documents\GitRepositories\Calculations\Dipolar-Gas-Simulator\Results\Data_3D\GradientDescent\Phi050"
|
||||
$root = "C:\Users\Karthik\Documents\GitRepositories\Calculations\Dipolar-Gas-Simulator\Results\Data_3D\GradientDescent\Phi020"
|
||||
|
||||
# Step 1: Delete all files except 'psi_gs.mat'
|
||||
Get-ChildItem -Path $root -Recurse -File -Force |
|
||||
|
@ -1,40 +0,0 @@
|
||||
% Read the lines from the text file
|
||||
filename = 'C:\Users\Karthik\Documents\GitRepositories\Calculations\Dipolar-Gas-Simulator\Results\Data_3D\GradientDescent\Phi050\missing_folders.txt'; % replace with your actual file name
|
||||
strs = readlines(filename);
|
||||
strs = strs(strs ~= ""); % remove empty lines if any
|
||||
|
||||
% Initialize arrays
|
||||
aS = zeros(length(strs),1);
|
||||
theta = zeros(length(strs),1);
|
||||
phi = zeros(length(strs),1);
|
||||
N = zeros(length(strs),1);
|
||||
|
||||
% Extract numbers using regular expressions
|
||||
for i = 1:length(strs)
|
||||
tokens = regexp(strs(i), 'aS_(\d+)_theta_(\d+)_phi_(\d+)_N_(\d+)', 'tokens');
|
||||
nums = str2double(tokens{1});
|
||||
aS(i) = nums(1);
|
||||
theta(i) = nums(2);
|
||||
phi(i) = nums(3);
|
||||
N(i) = nums(4);
|
||||
end
|
||||
|
||||
% Convert to bash-style space-separated strings
|
||||
aS_str = sprintf('%d ', unique(aS));
|
||||
theta_str = sprintf('%d ', unique(theta));
|
||||
phi_str = sprintf('%d ', unique(phi));
|
||||
N_str = sprintf('%d ', unique(N));
|
||||
|
||||
% Trim trailing spaces
|
||||
aS_str = strtrim(aS_str);
|
||||
theta_str = strtrim(theta_str);
|
||||
phi_str = strtrim(phi_str);
|
||||
N_str = strtrim(N_str);
|
||||
|
||||
% Display Bash-compatible output
|
||||
fprintf('SCATTERING_LENGTH_RANGE=[%s]\n', aS_str);
|
||||
fprintf('POLAR_ANGLE_RANGE=[%s]\n', theta_str);
|
||||
fprintf('AZIMUTHAL_ANGLE_RANGE=[%s]\n', phi_str);
|
||||
fprintf('NUM_ATOMS_LIST=[%s]\n', N_str);
|
||||
|
||||
%%
|
Loading…
Reference in New Issue
Block a user