2025-01-23 20:50:06 +01:00
|
|
|
%% Tilting of the dipoles
|
|
|
|
% Atom Number = 1.00e+05
|
|
|
|
% System size = [10, 10]
|
2024-11-19 16:11:16 +01:00
|
|
|
|
2025-01-23 20:50:06 +01:00
|
|
|
%% v_z = 500, theta = 0: a_s = 76.41
|
2024-11-19 16:11:16 +01:00
|
|
|
OptionsStruct = struct;
|
|
|
|
|
2025-01-23 20:50:06 +01:00
|
|
|
OptionsStruct.NumberOfAtoms = 1.00e+05;
|
2024-11-19 16:11:16 +01:00
|
|
|
OptionsStruct.DipolarPolarAngle = 0;
|
|
|
|
OptionsStruct.DipolarAzimuthAngle = 0;
|
2025-01-23 20:50:06 +01:00
|
|
|
OptionsStruct.ScatteringLength = 76.41;
|
2024-11-19 16:11:16 +01:00
|
|
|
|
2025-01-23 20:50:06 +01:00
|
|
|
OptionsStruct.TrapFrequencies = [0, 0, 500];
|
2024-11-19 16:11:16 +01:00
|
|
|
OptionsStruct.TrapPotentialType = 'None';
|
|
|
|
|
2025-01-23 01:19:31 +01:00
|
|
|
OptionsStruct.NumberOfGridPoints = [128, 128];
|
2025-01-23 20:50:06 +01:00
|
|
|
OptionsStruct.Dimensions = [10, 10];
|
2025-01-23 01:19:31 +01:00
|
|
|
OptionsStruct.TimeStepSize = 0.005; % in s
|
2024-11-19 16:11:16 +01:00
|
|
|
OptionsStruct.MinimumTimeStepSize = 1E-5; % in s
|
|
|
|
OptionsStruct.TimeCutOff = 2E6; % in s
|
|
|
|
OptionsStruct.EnergyTolerance = 5E-10;
|
2025-01-20 01:11:03 +01:00
|
|
|
OptionsStruct.ResidualTolerance = 1E-05;
|
|
|
|
OptionsStruct.NoiseScaleFactor = 0.05;
|
2024-11-19 16:11:16 +01:00
|
|
|
|
2025-01-20 01:11:03 +01:00
|
|
|
OptionsStruct.MaxIterations = 10;
|
2025-01-23 20:50:06 +01:00
|
|
|
OptionsStruct.VariationalWidth = 2;
|
2025-01-20 01:11:03 +01:00
|
|
|
OptionsStruct.WidthLowerBound = 1;
|
2024-11-22 00:04:27 +01:00
|
|
|
OptionsStruct.WidthUpperBound = 12;
|
2025-01-20 01:11:03 +01:00
|
|
|
OptionsStruct.WidthCutoff = 5e-3;
|
2024-11-19 16:11:16 +01:00
|
|
|
|
|
|
|
OptionsStruct.PlotLive = false;
|
|
|
|
OptionsStruct.JobNumber = 1;
|
|
|
|
OptionsStruct.RunOnGPU = true;
|
|
|
|
OptionsStruct.SaveData = true;
|
2025-01-23 20:50:06 +01:00
|
|
|
OptionsStruct.SaveDirectory = './Results/Data_TiltingOfDipoles';
|
2024-06-18 19:01:35 +02:00
|
|
|
options = Helper.convertstruct2cell(OptionsStruct);
|
|
|
|
clear OptionsStruct
|
|
|
|
|
2024-11-15 14:33:46 +01:00
|
|
|
solver = VariationalSolver2D.DipolarGas(options{:});
|
2024-11-15 23:36:59 +01:00
|
|
|
pot = VariationalSolver2D.Potentials(options{:});
|
|
|
|
solver.Potential = pot.trap();
|
2024-06-18 19:01:35 +02:00
|
|
|
|
2024-11-14 15:33:54 +01:00
|
|
|
%-% Run Solver %-%
|
2024-11-22 00:04:27 +01:00
|
|
|
[Params, Transf, psi, V, VDk] = solver.run();
|