2025-01-23 20:50:06 +01:00
|
|
|
%% Tilting of the dipoles
|
2025-02-06 14:48:46 +01:00
|
|
|
% Atom Number = 1250 ppum
|
2024-11-19 16:11:16 +01:00
|
|
|
|
2025-02-06 14:48:46 +01:00
|
|
|
%% v_z = 500, theta = 0
|
2025-01-30 22:50:50 +01:00
|
|
|
|
2024-11-19 16:11:16 +01:00
|
|
|
OptionsStruct = struct;
|
|
|
|
|
2025-01-30 22:50:50 +01:00
|
|
|
OptionsStruct.NumberOfAtoms = 101250;
|
2024-11-19 16:11:16 +01:00
|
|
|
OptionsStruct.DipolarPolarAngle = 0;
|
|
|
|
OptionsStruct.DipolarAzimuthAngle = 0;
|
2025-02-06 14:48:46 +01:00
|
|
|
OptionsStruct.ScatteringLength = 70.00;
|
2024-11-19 16:11:16 +01:00
|
|
|
|
2025-02-06 14:48:46 +01:00
|
|
|
OptionsStruct.TrapFrequencies = [50, 50, 500];
|
|
|
|
OptionsStruct.TrapPotentialType = 'Harmonic';
|
2024-11-19 16:11:16 +01:00
|
|
|
|
2025-02-06 14:48:46 +01:00
|
|
|
OptionsStruct.NumberOfGridPoints = [256, 256];
|
|
|
|
OptionsStruct.Dimensions = [35, 35];
|
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
|
2025-02-06 14:48:46 +01:00
|
|
|
OptionsStruct.TimeCutOff = 5E5; % in s
|
2024-11-19 16:11:16 +01:00
|
|
|
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-02-06 14:48:46 +01:00
|
|
|
OptionsStruct.VariationalWidth = 1.3;
|
2025-01-28 18:05:37 +01:00
|
|
|
OptionsStruct.WidthLowerBound = 0.01;
|
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;
|
2025-02-06 14:48:46 +01:00
|
|
|
OptionsStruct.JobNumber = 0;
|
2024-11-19 16:11:16 +01:00
|
|
|
OptionsStruct.RunOnGPU = true;
|
|
|
|
OptionsStruct.SaveData = true;
|
2025-02-06 14:48:46 +01:00
|
|
|
OptionsStruct.SaveDirectory = './Results/Data_TiltingOfDipoles/HarmonicTrap/Hz500';
|
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();
|
2025-01-28 18:05:37 +01:00
|
|
|
|
2025-02-06 14:48:46 +01:00
|
|
|
%% v_z = 500, theta = 15
|
2025-01-28 18:05:37 +01:00
|
|
|
|
|
|
|
OptionsStruct = struct;
|
|
|
|
|
2025-01-30 22:50:50 +01:00
|
|
|
OptionsStruct.NumberOfAtoms = 101250;
|
2025-01-28 18:05:37 +01:00
|
|
|
OptionsStruct.DipolarPolarAngle = deg2rad(15);
|
|
|
|
OptionsStruct.DipolarAzimuthAngle = 0;
|
2025-02-06 14:48:46 +01:00
|
|
|
OptionsStruct.ScatteringLength = 65.00;
|
2025-01-28 18:05:37 +01:00
|
|
|
|
2025-02-06 14:48:46 +01:00
|
|
|
OptionsStruct.TrapFrequencies = [50, 50, 500];
|
|
|
|
OptionsStruct.TrapPotentialType = 'Harmonic';
|
2025-01-28 18:05:37 +01:00
|
|
|
|
2025-02-06 14:48:46 +01:00
|
|
|
OptionsStruct.NumberOfGridPoints = [256, 256];
|
|
|
|
OptionsStruct.Dimensions = [35, 35];
|
2025-01-30 22:50:50 +01:00
|
|
|
OptionsStruct.TimeStepSize = 0.005; % in s
|
2025-01-28 18:05:37 +01:00
|
|
|
OptionsStruct.MinimumTimeStepSize = 1E-5; % in s
|
2025-02-06 14:48:46 +01:00
|
|
|
OptionsStruct.TimeCutOff = 5E5; % in s
|
2025-01-28 18:05:37 +01:00
|
|
|
OptionsStruct.EnergyTolerance = 5E-10;
|
|
|
|
OptionsStruct.ResidualTolerance = 1E-05;
|
2025-01-30 22:50:50 +01:00
|
|
|
OptionsStruct.NoiseScaleFactor = 0.05;
|
2025-01-28 18:05:37 +01:00
|
|
|
|
|
|
|
OptionsStruct.MaxIterations = 10;
|
2025-02-06 14:48:46 +01:00
|
|
|
OptionsStruct.VariationalWidth = 1.3;
|
2025-01-28 18:05:37 +01:00
|
|
|
OptionsStruct.WidthLowerBound = 0.01;
|
|
|
|
OptionsStruct.WidthUpperBound = 12;
|
|
|
|
OptionsStruct.WidthCutoff = 5e-3;
|
|
|
|
|
|
|
|
OptionsStruct.PlotLive = false;
|
2025-01-30 22:50:50 +01:00
|
|
|
OptionsStruct.JobNumber = 1;
|
2025-01-28 18:05:37 +01:00
|
|
|
OptionsStruct.RunOnGPU = true;
|
|
|
|
OptionsStruct.SaveData = true;
|
2025-02-06 14:48:46 +01:00
|
|
|
OptionsStruct.SaveDirectory = './Results/Data_TiltingOfDipoles/HarmonicTrap/Hz500';
|
2025-01-28 18:05:37 +01:00
|
|
|
options = Helper.convertstruct2cell(OptionsStruct);
|
|
|
|
clear OptionsStruct
|
|
|
|
|
|
|
|
solver = VariationalSolver2D.DipolarGas(options{:});
|
|
|
|
pot = VariationalSolver2D.Potentials(options{:});
|
|
|
|
solver.Potential = pot.trap();
|
|
|
|
|
|
|
|
%-% Run Solver %-%
|
|
|
|
[Params, Transf, psi, V, VDk] = solver.run();
|