Added a few lines to ensure the value of the number of atoms property of both the oven object and the MOT object are the same.
This commit is contained in:
parent
bd97ffc5d8
commit
f0a35e5f0d
@ -1,11 +1,12 @@
|
|||||||
function [LoadingRate, StandardError, ConfidenceInterval] = runSimulation(this, ovenObj)
|
function [LoadingRate, StandardError, ConfidenceInterval] = runSimulation(this, ovenObj)
|
||||||
|
if this.NumberOfAtoms ~= ovenObj.NumberOfAtoms
|
||||||
|
ovenObj.NumberOfAtoms = this.NumberOfAtoms;
|
||||||
|
end
|
||||||
%% - Sampling for initial positions and velocities
|
%% - Sampling for initial positions and velocities
|
||||||
% - sampling the position distribution
|
% - sampling the position distribution
|
||||||
Positions = ovenObj.initialPositionSampling();
|
Positions = ovenObj.initialPositionSampling();
|
||||||
% - sampling the velocity distribution
|
% - sampling the velocity distribution
|
||||||
Velocities = ovenObj.initialVelocitySampling(this);
|
Velocities = ovenObj.initialVelocitySampling(this);
|
||||||
|
|
||||||
%% Solve ODE
|
%% Solve ODE
|
||||||
progressbar = Helper.parforNotifications();
|
progressbar = Helper.parforNotifications();
|
||||||
progressbar.PB_start(this.NumberOfAtoms,'Message',['Simulating 2-D MOT capture process for ' num2str(this.NumberOfAtoms,'%.0f') ' atoms:']);
|
progressbar.PB_start(this.NumberOfAtoms,'Message',['Simulating 2-D MOT capture process for ' num2str(this.NumberOfAtoms,'%.0f') ' atoms:']);
|
||||||
|
Loading…
Reference in New Issue
Block a user