2024-11-19 16:11:16 +01:00
|
|
|
%%
|
|
|
|
|
|
|
|
% To reproduce results from the Blair Blakie paper:
|
2024-11-19 18:46:47 +01:00
|
|
|
% (n*add^2, as/add)
|
2024-11-19 16:11:16 +01:00
|
|
|
% Critical point: (0.0978, 0.784); Triangular phase: (0.0959, 0.750); Stripe phase: (0.144, 0.765); Honeycomb phase: (0.192, 0.780)
|
|
|
|
|
2024-11-19 18:46:47 +01:00
|
|
|
% N = ((n*add^2)/Params.add^2) * (Params.Lx *1E-6)^2
|
2024-11-19 16:11:16 +01:00
|
|
|
% Critical point: N = 2.0427e+07; Triangular phase: N = 2.0030e+07; Stripe phase: N = 3.0077e+07; Honeycomb phase: N = 4.0102e+07 for dimensions fixed to 100
|
|
|
|
|
|
|
|
% as = ((as/add)*Params.add)/Params.a0
|
|
|
|
% Critical point: 102.5133; Triangular phase: 98.0676; Stripe phase: 100.0289; Honeycomb phase: 101.9903
|
|
|
|
|
|
|
|
%% - Create Variational2D and Calculator object with specified options
|
|
|
|
|
|
|
|
OptionsStruct = struct;
|
|
|
|
|
|
|
|
OptionsStruct.NumberOfAtoms = 2.0030e+07;
|
|
|
|
OptionsStruct.DipolarPolarAngle = 0;
|
|
|
|
OptionsStruct.DipolarAzimuthAngle = 0;
|
|
|
|
OptionsStruct.ScatteringLength = 98.0676;
|
|
|
|
|
|
|
|
OptionsStruct.TrapFrequencies = [10, 10, 72.4];
|
|
|
|
OptionsStruct.TrapPotentialType = 'None';
|
|
|
|
|
|
|
|
OptionsStruct.NumberOfGridPoints = [256, 256];
|
|
|
|
OptionsStruct.Dimensions = [100, 100];
|
|
|
|
OptionsStruct.TimeStepSize = 100E-6; % in s
|
|
|
|
OptionsStruct.MinimumTimeStepSize = 1E-5; % in s
|
|
|
|
OptionsStruct.TimeCutOff = 2E6; % in s
|
|
|
|
OptionsStruct.EnergyTolerance = 5E-10;
|
|
|
|
OptionsStruct.ResidualTolerance = 1E-04;
|
|
|
|
OptionsStruct.NoiseScaleFactor = 4;
|
|
|
|
|
|
|
|
OptionsStruct.MaxIterations = 20;
|
|
|
|
OptionsStruct.VariationalWidth = 5.7;
|
|
|
|
OptionsStruct.WidthLowerBound = 0.2;
|
|
|
|
OptionsStruct.WidthUpperBound = 20;
|
|
|
|
OptionsStruct.WidthCutoff = 1e-2;
|
|
|
|
|
|
|
|
OptionsStruct.PlotLive = false;
|
|
|
|
OptionsStruct.JobNumber = 1;
|
|
|
|
OptionsStruct.RunOnGPU = true;
|
|
|
|
OptionsStruct.SaveData = true;
|
|
|
|
OptionsStruct.SaveDirectory = './Data_TriangularPhase';
|
|
|
|
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();
|
|
|
|
|
|
|
|
%% - Create Variational2D and Calculator object with specified options
|
|
|
|
|
|
|
|
OptionsStruct = struct;
|
|
|
|
|
|
|
|
OptionsStruct.NumberOfAtoms = 3.0077e+07;
|
|
|
|
OptionsStruct.DipolarPolarAngle = 0;
|
|
|
|
OptionsStruct.DipolarAzimuthAngle = 0;
|
|
|
|
OptionsStruct.ScatteringLength = 100.0289;
|
|
|
|
|
|
|
|
OptionsStruct.TrapFrequencies = [10, 10, 72.4];
|
|
|
|
OptionsStruct.TrapPotentialType = 'None';
|
|
|
|
|
|
|
|
OptionsStruct.NumberOfGridPoints = [256, 256];
|
|
|
|
OptionsStruct.Dimensions = [100, 100];
|
|
|
|
OptionsStruct.TimeStepSize = 100E-6; % in s
|
|
|
|
OptionsStruct.MinimumTimeStepSize = 1E-5; % in s
|
|
|
|
OptionsStruct.TimeCutOff = 2E6; % in s
|
|
|
|
OptionsStruct.EnergyTolerance = 5E-10;
|
|
|
|
OptionsStruct.ResidualTolerance = 1E-04;
|
|
|
|
OptionsStruct.NoiseScaleFactor = 4;
|
|
|
|
|
|
|
|
OptionsStruct.MaxIterations = 20;
|
|
|
|
OptionsStruct.VariationalWidth = 5.7;
|
|
|
|
OptionsStruct.WidthLowerBound = 0.2;
|
|
|
|
OptionsStruct.WidthUpperBound = 20;
|
|
|
|
OptionsStruct.WidthCutoff = 1e-2;
|
|
|
|
|
|
|
|
OptionsStruct.PlotLive = false;
|
2024-11-20 00:19:14 +01:00
|
|
|
OptionsStruct.JobNumber = 2;
|
2024-11-19 16:11:16 +01:00
|
|
|
OptionsStruct.RunOnGPU = true;
|
|
|
|
OptionsStruct.SaveData = true;
|
|
|
|
OptionsStruct.SaveDirectory = './Data_StripePhase';
|
|
|
|
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();
|
|
|
|
|
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-19 16:11:16 +01:00
|
|
|
OptionsStruct.NumberOfAtoms = 4.0102e+07;
|
2024-06-18 19:01:35 +02:00
|
|
|
OptionsStruct.DipolarPolarAngle = 0;
|
|
|
|
OptionsStruct.DipolarAzimuthAngle = 0;
|
2024-11-19 16:11:16 +01:00
|
|
|
OptionsStruct.ScatteringLength = 101.9903;
|
2024-06-18 19:01:35 +02:00
|
|
|
|
2024-11-14 15:33:54 +01:00
|
|
|
OptionsStruct.TrapFrequencies = [10, 10, 72.4];
|
2024-11-15 23:36:59 +01:00
|
|
|
OptionsStruct.TrapPotentialType = 'None';
|
2024-06-18 19:01:35 +02:00
|
|
|
|
2024-11-19 16:11:16 +01:00
|
|
|
OptionsStruct.NumberOfGridPoints = [256, 256];
|
|
|
|
OptionsStruct.Dimensions = [100, 100];
|
2024-11-19 10:04:25 +01:00
|
|
|
OptionsStruct.TimeStepSize = 100E-6; % in s
|
2024-11-18 18:06:14 +01:00
|
|
|
OptionsStruct.MinimumTimeStepSize = 1E-5; % 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-11-18 22:42:52 +01:00
|
|
|
OptionsStruct.NoiseScaleFactor = 4;
|
2024-06-18 19:01:35 +02:00
|
|
|
|
2024-11-18 18:06:14 +01:00
|
|
|
OptionsStruct.MaxIterations = 20;
|
2024-11-19 10:04:25 +01:00
|
|
|
OptionsStruct.VariationalWidth = 5.7;
|
2024-11-18 18:06:14 +01:00
|
|
|
OptionsStruct.WidthLowerBound = 0.2;
|
2024-11-19 16:11:16 +01:00
|
|
|
OptionsStruct.WidthUpperBound = 20;
|
2024-11-18 18:06:14 +01:00
|
|
|
OptionsStruct.WidthCutoff = 1e-2;
|
|
|
|
|
|
|
|
OptionsStruct.PlotLive = false;
|
2024-11-20 00:19:14 +01:00
|
|
|
OptionsStruct.JobNumber = 3;
|
2024-06-19 19:45:22 +02:00
|
|
|
OptionsStruct.RunOnGPU = true;
|
2024-06-18 19:01:35 +02:00
|
|
|
OptionsStruct.SaveData = true;
|
2024-11-19 16:11:16 +01:00
|
|
|
OptionsStruct.SaveDirectory = './Data_HoneycombPhase';
|
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-15 23:36:59 +01:00
|
|
|
[Params, Transf, psi, V, VDk] = solver.run();
|