diff options
Diffstat (limited to 'useful_functions.m')
-rw-r--r-- | useful_functions.m | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/useful_functions.m b/useful_functions.m index 9127cab..842f0fa 100644 --- a/useful_functions.m +++ b/useful_functions.m @@ -303,10 +303,13 @@ function relative_transmission=total_relative_transmission(atom_field_problem) modulation_freq = atom_field_problem.modulation_freq ; pos_freq_indexes=(modulation_freq>0); + % WARNING INTRODUCED HERE BUT MUST BE DEFINE IN ATOM PROPERTIES FILE + %n_atoms - proportional to a number of interacting atoms + n_atoms=500; transmited_intensities_vector = ... - abs(E_field.linear + (1i)*dEdz_linear).^2 ... - +abs(E_field.right + (1i)*dEdz_right).^2 ... - +abs(E_field.left + (1i)*dEdz_left).^2; + abs(E_field.linear + n_atoms*(1i)*dEdz_linear).^2 ... + +abs(E_field.right + n_atoms*(1i)*dEdz_right).^2 ... + +abs(E_field.left + n_atoms*(1i)*dEdz_left).^2; transmited_intensities_vector = transmited_intensities_vector(pos_freq_indexes); input_intensities_vector = ... abs(E_field.linear).^2 ... |