diff options
Diffstat (limited to 'compass_lin.m')
-rw-r--r-- | compass_lin.m | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/compass_lin.m b/compass_lin.m index 3fdad6b..b4bdb48 100644 --- a/compass_lin.m +++ b/compass_lin.m @@ -67,8 +67,9 @@ E_field_lab_pos_freq.linear = E_field_zero + (1.00000+0.00000i)*E_field_probe + % phi is angle between linear polarization and axis x phi=pi*2/8; % theta is angle between lab z axis (light propagation direction) and magnetic field axis (z') -theta=0/4; -theta=pi/2; +%theta=0/4; +%theta=pi/2; +theta=pi/4; %theta=65/180*pi; %small ellipticity angle psi (0 to pi/2) @@ -88,9 +89,9 @@ fflush (stderr); detuning_freq=[-.075, -.05, -.025, 0 , .025, .05 , .075, .1]; problem_cntr=1; -N_angle_steps=31; +N_angle_steps=101; min_angle=0; max_angle=pi; -phis=min_angle:((max_angle-min_angle)/N_angle_steps):max_angle; +phis=linspace(min_angle,max_angle, N_angle_steps); for phi=phis; for detuning_p_cntr=1:length(detuning_freq); @@ -112,10 +113,10 @@ for phi=phis; E_field_lab_pos_freq.z=E_field_zero; - % now we transfor x,y,z, to x',y', and z' with respect to magnetic field az z' axis + % now we transform x,y,z, to x',y', and z' with respect to magnetic field az z' axis E_field_pos_freq=xyz_lin2atomic_axis_polarization(theta, E_field_lab_pos_freq); - % we calculate dc and negative frequiencies as well as amplitudes + % we calculate dc and negative frequencies as well as amplitudes [modulation_freq, E_field] = ... light_positive_frequencies_and_amplitudes2full_set_of_modulation_frequencies_and_amlitudes(... light_positive_freq, E_field_pos_freq); @@ -134,7 +135,7 @@ for phi=phis; endfor endfor -save '/tmp/problem_definition.mat' problems_cell_array atom_properties detuning_freq theta; +%save '/tmp/problem_definition.mat' problems_cell_array atom_properties detuning_freq theta; fprintf (stderr, "now really hard calculations begin\n"); fflush (stderr); % once we define all problems the main job is done here @@ -147,7 +148,7 @@ total_relative_transmission_vs_phi=cellfun(@total_relative_transmission, problem %save 'xi_vs_detuning.mat' detuning_freq xi_linear xi_left xi_right ; problem_cntr--; -save '/tmp/total_relative_transmission_vs_phi.mat' detuning_freq total_relative_transmission_vs_phi phis problem_cntr; +save './cached/total_lin_relative_transmission_vs_phi.mat' detuning_freq total_relative_transmission_vs_phi phis problem_cntr theta psi_el; compass_lin_output_results; |