summaryrefslogtreecommitdiff
path: root/faraday/task_solver.m
blob: 0ba57ea9b1781e01a03a1ba35e08d2d86c5b8d22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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]=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' ...
	);