diff --git a/Dipolar-Gas-Simulator/+Scripts/run_locally.m b/Dipolar-Gas-Simulator/+Scripts/run_locally.m index 6dad06f..1353782 100644 --- a/Dipolar-Gas-Simulator/+Scripts/run_locally.m +++ b/Dipolar-Gas-Simulator/+Scripts/run_locally.m @@ -22,9 +22,9 @@ OptionsStruct.Dimensions = [18, 18, 18]; OptionsStruct.IncludeDDICutOff = true; OptionsStruct.CutoffType = 'Cylindrical'; OptionsStruct.SimulationMode = 'ImaginaryTimeEvolution'; % 'ImaginaryTimeEvolution' | 'RealTimeEvolution' -OptionsStruct.TimeStepSize = 0.001; % in s -OptionsStruct.MinimumTimeStepSize = 1E-5; % in s -OptionsStruct.TimeCutOff = 1E6; % in s +OptionsStruct.TimeStepSize = 0.002; % in s +OptionsStruct.MinimumTimeStepSize = 1E-6; % in s +OptionsStruct.TimeCutOff = 2E6; % in s OptionsStruct.EnergyTolerance = 5E-10; OptionsStruct.ResidualTolerance = 1E-05; OptionsStruct.NoiseScaleFactor = 0.01; diff --git a/Dipolar-Gas-Simulator/+Simulator/@Calculator/calculateOrderParameter.m b/Dipolar-Gas-Simulator/+Simulator/@Calculator/calculateOrderParameter.m deleted file mode 100644 index e58fd48..0000000 --- a/Dipolar-Gas-Simulator/+Simulator/@Calculator/calculateOrderParameter.m +++ /dev/null @@ -1,58 +0,0 @@ -function [m_Order] = calculateOrderParameter(~,psi,Transf,Params,VDk,V,T,muchem) - - NumRealiz = 100; - - Mx = numel(Transf.x); - My = numel(Transf.y); - Mz = numel(Transf.z); - - r = normrnd(0,1,size(psi)); - theta = rand(size(psi)); - noise = r.*exp(2*pi*1i*theta); - - KEop = 0.5*(Transf.KX.^2+Transf.KY.^2+Transf.KZ.^2); - Gamma = 1-1i*Params.gamma_S; - dt = Params.dt; - - avgpsi1 = 0; - avgpsi2 = 0; - - for jj = 1:NumRealiz - % Generate initial state - xi = sqrt(2*Params.gamma_S*Params.kbol*T*10^(-9)*dt/(Params.hbar*Params.w0*Transf.dx*Transf.dy*Transf.dz)); - swapx = randi(length(Transf.x),1,length(Transf.x)); - swapy = randi(length(Transf.y),1,length(Transf.y)); - swapz = randi(length(Transf.z),1,length(Transf.z)); - psi_j = psi + xi * noise(swapx,swapy,swapz); - - % --- % propagate forward in time 1 time step: - % Kin - psi_j = fftn(psi_j); - psi_j = psi_j.*exp(-0.5*1i*Gamma*dt*KEop); - psi_j = ifftn(psi_j); - - % DDI - frho = fftn(abs(psi_j).^2); - Phi = real(ifftn(frho.*VDk)); - - % Real-space - psi_j = psi_j.*exp(-1i*Gamma*dt*(V + Params.gs*abs(psi_j).^2 + Params.gammaQF*abs(psi_j).^3 + Params.gdd*Phi - muchem)); - - % Kin - psi_j = fftn(psi_j); - psi_j = psi_j.*exp(-0.5*1i*Gamma*dt*KEop); - psi_j = ifftn(psi_j); - - % Projection - kcut = sqrt(2*Params.e_cut); - K = (Transf.KX.^2+Transf.KY.^2+Transf.KZ.^2)