2024-11-14 15:33:54 +01:00
|
|
|
%% - Create Variational2D and Calculator object with specified options
|
2024-06-18 19:01:35 +02:00
|
|
|
|
|
|
|
OptionsStruct = struct;
|
|
|
|
|
2024-11-14 15:33:54 +01:00
|
|
|
OptionsStruct.NumberOfAtoms = 1E5;
|
2024-06-18 19:01:35 +02:00
|
|
|
OptionsStruct.DipolarPolarAngle = 0;
|
|
|
|
OptionsStruct.DipolarAzimuthAngle = 0;
|
2024-11-14 15:33:54 +01:00
|
|
|
OptionsStruct.ScatteringLength = 102.515;
|
2024-06-18 19:01:35 +02:00
|
|
|
|
2024-11-14 15:33:54 +01:00
|
|
|
OptionsStruct.TrapFrequencies = [10, 10, 72.4];
|
2024-06-18 19:01:35 +02:00
|
|
|
|
2024-11-15 14:33:46 +01:00
|
|
|
OptionsStruct.NumberOfGridPoints = [128, 128];
|
2024-11-14 15:33:54 +01:00
|
|
|
OptionsStruct.Dimensions = [100, 100];
|
|
|
|
OptionsStruct.TimeStepSize = 1E-3; % in s
|
|
|
|
OptionsStruct.TimeCutOff = 2E6; % in s
|
2024-06-18 19:01:35 +02:00
|
|
|
OptionsStruct.EnergyTolerance = 5E-10;
|
2024-11-14 15:33:54 +01:00
|
|
|
OptionsStruct.ResidualTolerance = 1E-04;
|
2024-06-18 19:01:35 +02:00
|
|
|
|
|
|
|
OptionsStruct.JobNumber = 1;
|
2024-06-19 19:45:22 +02:00
|
|
|
OptionsStruct.RunOnGPU = true;
|
2024-06-18 19:01:35 +02:00
|
|
|
OptionsStruct.SaveData = true;
|
|
|
|
OptionsStruct.SaveDirectory = './Data';
|
|
|
|
options = Helper.convertstruct2cell(OptionsStruct);
|
|
|
|
clear OptionsStruct
|
|
|
|
|
2024-11-15 14:33:46 +01:00
|
|
|
solver = VariationalSolver2D.DipolarGas(options{:});
|
2024-06-18 19:01:35 +02:00
|
|
|
|
2024-11-14 15:33:54 +01:00
|
|
|
%-% Run Solver %-%
|
|
|
|
[Params, Transf, psi, V, VDk] = solver.run();
|