1 function mu =
pc2mu (R, pc, alpha, Bf)
3 % PC2MU calculates mu in MeV / Gauss
5 % mu =
pc2mu (R, pc, alpha, Bf)
8 % R - radial distance, Re
9 % pc - momentum * speed of light, MeV
10 % alpha - pitch angle, rad
11 %% Bf - (optional) magnetic field in Gauss, if no field is specified, Dipole field is used
16 % Author: Yuri Shprits
17 % Last change: 20014-01-01 by Dmitriy Subbotin
18 % Email: subbotin@ucla.edu
19 % The work was supported by:
20 % LANL grant 12-LR-235337, PI Yuri Shprits
21 % NASA grant NNX09AF51G, PI Yuri Shprits
27 warning(
'VERB4D:DIPOLE',
'Using Dipole Field')
32 mu = pc.^2 .* sin(alpha).^2 ./ (Bf * 2 * mc2);
functions for write log and support files. Functions are defined in Output.h and descripted in Output...
double pc2mu(double L, double pc, double alpha)
Convert pc to μ.