summaryrefslogtreecommitdiff
path: root/faraday_and_psr/solver_task.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-11-17 17:25:29 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2020-09-21 16:33:21 -0400
commit8b90e816ac003b8c65d09b82ff1df3b1df660933 (patch)
tree8789c0fd5d753118cef1a30b3a10dad58fdf3b0b /faraday_and_psr/solver_task.m
parentac86b1c573e7bd1b5c2995eb6e2b2982459b81e5 (diff)
downloadmulti_mode_eit-8b90e816ac003b8c65d09b82ff1df3b1df660933.tar.gz
multi_mode_eit-8b90e816ac003b8c65d09b82ff1df3b1df660933.zip
file renamed
Diffstat (limited to 'faraday_and_psr/solver_task.m')
-rwxr-xr-xfaraday_and_psr/solver_task.m20
1 files changed, 20 insertions, 0 deletions
diff --git a/faraday_and_psr/solver_task.m b/faraday_and_psr/solver_task.m
new file mode 100755
index 0000000..c044cf6
--- /dev/null
+++ b/faraday_and_psr/solver_task.m
@@ -0,0 +1,20 @@
+#!/usr/bin/octave -qf
+% reads parameters file (argv1) and output results of the calculations into output file (argv(2)
+
+arg_list = argv ();
+
+if (nargin < 2)
+ error("need at least two parameters");
+end
+params_file=arg_list{1};
+output_fname=arg_list{2};
+
+load(params_file);
+
+[xi_linear, xi_left, xi_right, E_field_pos_freq, light_positive_freq]=susceptibility_problem(detuning_freq, Ep, psi_el, B_field, theta, phi);
+
+save(output_fname, 'detuning_freq', 'Ep', 'psi_el', 'B_field', 'theta', 'phi' ...
+ , 'xi_linear', 'xi_left', 'xi_right' ...
+ , 'E_field_pos_freq', 'light_positive_freq' ...
+ );
+