1 function pc =
mu2pc (R, mu, alpha, Bf)
3 % MU2PC calculates pc, which is momentum * speed of light (MeV)
5 % pc =
mu2pc (R, mu, alpha, Bf)
8 % R - radial distance, Re
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 pc = sqrt( 2.0 .* mu .* mc2 .* Bf ) ./ sin(alpha);
functions for write log and support files. Functions are defined in Output.h and descripted in Output...
double mu2pc(double L, double mu, double alpha)
Convert μ to pc.