2021-06-29 15:44:28 +02:00
|
|
|
function ret = initialPositionSampling(this)
|
2021-07-11 06:36:49 +02:00
|
|
|
switch this.SimulationMode
|
|
|
|
case "2D"
|
|
|
|
n = this.NumberOfAtoms;
|
|
|
|
phi = 2 * pi * rand(n,1);
|
|
|
|
rho = this.Beta * 0.5 * this.NozzleLength * sqrt(rand(n,1));
|
|
|
|
ret = [-this.OvenDistance * ones(n,1), rho.*cos(phi), rho.*sin(phi)];
|
|
|
|
case "3D"
|
|
|
|
% Development In progress
|
|
|
|
end
|
2021-06-29 15:44:28 +02:00
|
|
|
end
|
|
|
|
|