From f789a7ad6ab0355440b5d10560a0dc09848ea771 Mon Sep 17 00:00:00 2001 From: Karthik Chandrashekara Date: Sun, 11 Jul 2021 14:51:17 +0200 Subject: [PATCH] Modified to determine the distance between atom and the z-axis and checked to see if that is within the diameter of the beams - this makes sense since the beams are crossed and the condition that the distance be smaller than the beam diameter holds only along the y-axis. --- .../@MOTSimulator/computeTimeSpentInInteractionRegion.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MOT Capture Process Simulation/@MOTSimulator/computeTimeSpentInInteractionRegion.m b/MOT Capture Process Simulation/@MOTSimulator/computeTimeSpentInInteractionRegion.m index b7d9705..4fae3f8 100644 --- a/MOT Capture Process Simulation/@MOTSimulator/computeTimeSpentInInteractionRegion.m +++ b/MOT Capture Process Simulation/@MOTSimulator/computeTimeSpentInInteractionRegion.m @@ -9,7 +9,7 @@ function T = computeTimeSpentInInteractionRegion(this, r) T = 0; NumberOfTimeSteps = int64(this.SimulationTime/this.TimeStep); for n = 1:(NumberOfTimeSteps - 1) - dr = Helper.calculateDistanceFromPointToLine(r(n+1, :), [0 0 0], [1 0 0]); + dr = Helper.calculateDistanceFromPointToLine(r(n+1, :), [0 0 0], [0 0 1]); if dr < this.CoolingBeamRadius A = 1; else