2021-06-29 15:44:28 +02:00
|
|
|
function ret = calculateLocalSaturationIntensity(~, PeakIntensity, PositionVector, WaveVectorOrigin, WaveVectorEndPoint, BeamRadius, BeamWaist)
|
|
|
|
|
2021-07-11 06:30:06 +02:00
|
|
|
DistanceBetweenAtomAndLaserBeamAxis = Helper.calculateDistanceFromPointToLine(PositionVector, WaveVectorOrigin, WaveVectorEndPoint);
|
2021-06-29 15:44:28 +02:00
|
|
|
|
|
|
|
if DistanceBetweenAtomAndLaserBeamAxis <= BeamRadius
|
|
|
|
ret = PeakIntensity * exp(-2*DistanceBetweenAtomAndLaserBeamAxis^2 / BeamWaist^2);
|
|
|
|
else
|
|
|
|
ret = 0;
|
|
|
|
end
|
|
|
|
end
|