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

38 lines
1.5 KiB
Mathematica
Raw Normal View History

2024-06-12 20:45:08 +02:00
%% This script is testing the functionalities of the Dipolar Gas Simulator
%
% Important: Run only sectionwise!!
%% - Create Simulator, Potential and Calculator object with specified options
OptionsStruct = struct;
2024-06-13 02:02:44 +02:00
OptionsStruct.NumberOfAtoms = 1.24E5;
OptionsStruct.DipolarPolarAngle = 0;
2024-06-13 11:30:12 +02:00
OptionsStruct.DipolarAzimuthAngle = 0;
2024-06-13 02:02:44 +02:00
OptionsStruct.ScatteringLength = 86;
2024-06-17 20:24:00 +02:00
OptionsStruct.TrapFrequencies = [44.97, 10.4, 126.3];
2024-06-17 20:24:00 +02:00
OptionsStruct.TrapDepth = 5;
OptionsStruct.BoxSize = 15;
OptionsStruct.TrapPotentialType = 'Harmonic';
OptionsStruct.NumberOfGridPoints = [128, 256, 128];
OptionsStruct.Dimensions = [50, 120, 150];
2024-06-12 21:17:53 +02:00
OptionsStruct.CutoffType = 'Cylindrical';
2024-06-13 02:02:44 +02:00
OptionsStruct.SimulationMode = 'ImaginaryTimeEvolution'; % 'ImaginaryTimeEvolution' | 'RealTimeEvolution'
OptionsStruct.TimeStepSize = 500E-6; % in s
OptionsStruct.NumberOfTimeSteps = 2E6; % in s
2024-06-13 18:27:02 +02:00
OptionsStruct.EnergyTolerance = 5E-10;
2024-06-13 02:02:44 +02:00
OptionsStruct.JobNumber = 1;
2024-06-12 20:45:08 +02:00
OptionsStruct.SaveData = true;
OptionsStruct.SaveDirectory = './Data';
options = Helper.convertstruct2cell(OptionsStruct);
clear OptionsStruct
2024-06-12 20:05:27 +02:00
2024-06-17 20:24:00 +02:00
sim = Simulator.DipolarGas(options{:});
pot = Simulator.Potentials(options{:});
sim.Potential = pot.trap(); % + pot.repulsive_chopstick();
2024-06-12 20:45:08 +02:00
%-% Run Simulation %-%
[Params, Transf, psi, V, VDk] = sim.run();