Changed sampling of angle such that it is up to NozzleExitDivergence not MOTExitDivergence, made some other cosmetic changes.

This commit is contained in:
Karthik 2021-07-11 06:00:08 +02:00
parent f0e2bea4f5
commit e80c68ef2a

View File

@ -1,6 +1,6 @@
function plotCaptureVelocityVsAngle(obj) function plotCaptureVelocityVsAngle(obj)
theta = linspace(0, obj.MOTExitDivergence, 40); theta = linspace(0, obj.NozzleExitDivergence, 1000);
CaptureVelocity = zeros(length(theta),3); CaptureVelocity = zeros(length(theta),3);
for i=1:length(theta) for i=1:length(theta)
@ -20,16 +20,16 @@ function plotCaptureVelocityVsAngle(obj)
screensize = get(0,'ScreenSize'); screensize = get(0,'ScreenSize');
f_h.Position = [[screensize(3)/3.5 screensize(4)/3.5] 750 600]; f_h.Position = [[screensize(3)/3.5 screensize(4)/3.5] 750 600];
plot(theta, sqrt(CaptureVelocity(:,1).^2+CaptureVelocity(:,2).^2+CaptureVelocity(:,3).^2), 'Linewidth', 1.5) plot(theta .* 1e+03, sqrt(CaptureVelocity(:,1).^2+CaptureVelocity(:,2).^2+CaptureVelocity(:,3).^2), 'Linewidth', 1.5)
hXLabel = xlabel('\theta (rad)'); hXLabel = xlabel('\theta (mrad)');
hYLabel = ylabel('Velocity (m/s)'); hYLabel = ylabel('Velocity (m/s)');
hTitle = sgtitle('Capture Velocity of an atomic beam from (0,0,0)'); hTitle = sgtitle('Capture velocity for different angles of divergence');
set([hXLabel, hYLabel] , ... set([hXLabel, hYLabel] , ...
'FontSize' , 14 ); 'FontSize' , 14 );
set( hTitle , ... set( hTitle , ...
'FontSize' , 18 ); 'FontSize' , 14 );
grid on grid on
Helper.bringFiguresWithTagInForeground(); Helper.bringFiguresWithTagInForeground();