summaryrefslogtreecommitdiff
path: root/compass.m
diff options
context:
space:
mode:
Diffstat (limited to 'compass.m')
-rw-r--r--compass.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/compass.m b/compass.m
index 3097b03..a00155c 100644
--- a/compass.m
+++ b/compass.m
@@ -10,10 +10,10 @@ useful_functions;
useful_constants;
% load atom energy levels and decay description
-rb87_D1_line;
+%rb87_D1_line;
%four_levels_with_polarization;
%four_levels;
-%three_levels;
+three_levels;
%two_levels;
% load EM field description
@@ -26,12 +26,12 @@ field_description;
%tune probe frequency
detuning_p=0;
N_detun_steps=100;
-detuning_p_min=-B_field*gmg*4; % span +/-4 Zeeman splitting
-detuning_p_max=-detuning_p_min;
+%detuning_p_min=-B_field*gmg*4; % span +/-4 Zeeman splitting
+%detuning_p_max=-detuning_p_min;
detuning_freq=zeros(1,N_detun_steps+1);
kappa_p =zeros(1,N_detun_steps+1);
kappa_m =zeros(1,N_detun_steps+1);
-detun_step=(detuning_p_max-detuning_p_min)/N_detun_steps;
+%detun_step=(detuning_p_max-detuning_p_min)/N_detun_steps;
fprintf (stderr, "calculating atom properties\n");
fflush (stderr);
@@ -65,6 +65,7 @@ E_field_lab.left = E_field_zero + (0.00000+0.00000i)*E_field_probe + (0.00000
phi=pi*2/8;
% theta is angle between lab z axis (light propagation direction) and magnetic field axis (z')
theta=pi/2;
+theta=0;
% we define light as linearly polarized
E_field_lab.x=cos(phi)*E_field_lab.linear;
@@ -102,7 +103,6 @@ for phi=phis;
wp0=w_pf1;
wd=w_pf1-w_hpf_ground;
- detuning_p=detuning_p_min+detun_step*(detuning_p_cntr-1);
detuning_p=detuning_freq(detuning_p_cntr);
wp=wp0+detuning_p;
wm=wd-(wp-wd);