From 91f40df92db0f9b06e36a92a4031e47bdc93902c Mon Sep 17 00:00:00 2001 From: Karthik Chandrashekara Date: Fri, 15 Nov 2024 14:47:06 +0100 Subject: [PATCH] Removed progress bar, adjusted wo. --- Dipolar-Gas-Simulator/+Helper/PhysicsConstants.m | 6 +++--- .../@DipolarGas/propagateWavefunction.m | 6 ------ .../+VariationalSolver2D/@DipolarGas/setupParameters.m | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Dipolar-Gas-Simulator/+Helper/PhysicsConstants.m b/Dipolar-Gas-Simulator/+Helper/PhysicsConstants.m index 14fbc82..3489e73 100644 --- a/Dipolar-Gas-Simulator/+Helper/PhysicsConstants.m +++ b/Dipolar-Gas-Simulator/+Helper/PhysicsConstants.m @@ -23,9 +23,9 @@ classdef PhysicsConstants < handle GravitationalAcceleration = 9.80553; % Dy specific constants - Dy164Mass = 163.929174751*1.660539066E-27; - Dy164IsotopicAbundance = 0.2826; - DyMagneticMoment = 9.93*9.274009994E-24; + Dy164Mass = 163.929174751*AtomicMassUnit; + Dy164IsotopicAbundance = 0.2826; + DyMagneticMoment = 9.93*BohrMagneton; end methods diff --git a/Dipolar-Gas-Simulator/+VariationalSolver2D/@DipolarGas/propagateWavefunction.m b/Dipolar-Gas-Simulator/+VariationalSolver2D/@DipolarGas/propagateWavefunction.m index 85a5e5c..06ad9ff 100644 --- a/Dipolar-Gas-Simulator/+VariationalSolver2D/@DipolarGas/propagateWavefunction.m +++ b/Dipolar-Gas-Simulator/+VariationalSolver2D/@DipolarGas/propagateWavefunction.m @@ -26,9 +26,6 @@ function [psi] = propagateWavefunction(this, psi, Params, VParams, Transf, VDk, gamma_eff = Params.gammaQF * (sqrt(2/5)/(pi^(3/4)*VParams.ell^(3/2))); Ez = (0.25*VParams.ell^2) + (0.25*Params.gz*VParams.ell^2); - pb = Helper.ProgressBar(); - pb.run('Propagating in imaginary time: '); - while t_idx < Params.sim_time_cut_off % kin @@ -92,7 +89,6 @@ function [psi] = propagateWavefunction(this, psi, Params, VParams, Transf, VDk, break end t_idx=t_idx+1; - pb.run(100*t_idx/Params.sim_time_cut_off); end % Change in Energy @@ -107,6 +103,4 @@ function [psi] = propagateWavefunction(this, psi, Params, VParams, Transf, VDk, % Chemical potential Observ.mucVec = [Observ.mucVec muchem]; - - pb.run(' - Done!'); end \ No newline at end of file diff --git a/Dipolar-Gas-Simulator/+VariationalSolver2D/@DipolarGas/setupParameters.m b/Dipolar-Gas-Simulator/+VariationalSolver2D/@DipolarGas/setupParameters.m index bc6cf44..85e204e 100644 --- a/Dipolar-Gas-Simulator/+VariationalSolver2D/@DipolarGas/setupParameters.m +++ b/Dipolar-Gas-Simulator/+VariationalSolver2D/@DipolarGas/setupParameters.m @@ -6,7 +6,7 @@ function [Params] = setupParameters(this) muB = CONSTANTS.BohrMagneton; % [J/T] a0 = CONSTANTS.BohrRadius; % [m] m0 = CONSTANTS.AtomicMassUnit; % [kg] - w0 = 2*pi*100; % Angular frequency unit [s^-1] + w0 = 2*pi*61.6582; % Angular frequency unit [s^-1] mu0factor = 0.3049584233607396; % =(m0/me)*pi*alpha^2 -- me=mass of electron, alpha=fine struct. const. % mu0=mu0factor *hbar^2*a0/(m0*muB^2) % Number of points in each direction