Calculations/Dipolar-Gas-Simulator/+Scripts/run_on_cluster.m

29 lines
1.3 KiB
Mathematica
Raw Normal View History

%% - Create Variational2D and Calculator object with specified options
2024-06-18 19:01:35 +02:00
OptionsStruct = struct;
2024-11-15 15:35:17 +01:00
OptionsStruct.NumberOfAtoms = 1E5;
2024-06-18 19:01:35 +02:00
OptionsStruct.DipolarPolarAngle = 0;
OptionsStruct.DipolarAzimuthAngle = 0;
OptionsStruct.ScatteringLength = 98.0676; % Critical point: 102.515; Triangular phase: 98.0676; Stripe phase: 102.2518; Honeycomb phase: 102.6441
2024-06-18 19:01:35 +02:00
OptionsStruct.TrapFrequencies = [10, 10, 72.4];
2024-06-18 19:01:35 +02:00
OptionsStruct.NumberOfGridPoints = [128, 128];
2024-11-15 15:35:17 +01:00
OptionsStruct.Dimensions = [7.5, 7.5]; % Critical point: 6.996; Triangular phase: 7.5; Stripe phase: 6.972; Honeycomb phase: 6.239 for both for Atom Number fixed to 1E5
OptionsStruct.TimeStepSize = 500E-6; % in s
OptionsStruct.TimeCutOff = 2E6; % in s
2024-06-18 19:01:35 +02:00
OptionsStruct.EnergyTolerance = 5E-10;
OptionsStruct.ResidualTolerance = 1E-04;
2024-06-18 19:01:35 +02:00
OptionsStruct.JobNumber = 1;
OptionsStruct.RunOnGPU = true;
2024-06-18 19:01:35 +02:00
OptionsStruct.SaveData = true;
OptionsStruct.SaveDirectory = './Data';
options = Helper.convertstruct2cell(OptionsStruct);
clear OptionsStruct
solver = VariationalSolver2D.DipolarGas(options{:});
2024-06-18 19:01:35 +02:00
%-% Run Solver %-%
[Params, Transf, psi, V, VDk] = solver.run();