VERB_code_2.3
variousFunctions.h
Go to the documentation of this file.
1 
8 #include "../Matrix/Matrix.h"
9 #include "variousConstants.h"
10 
20 namespace VF {
21 
24  double G(double alpha);
25 
26 
29  double alc(double L);
30 
33  double T(double alpha);
34 
37  double Y(double alpha);
38 
46  double f_interp(double E, double f1, double E1, double f2, double E2);
47 
52  double mu_calc(double L, double pc, double Alpha);
53 
58  double Jc_calc(double L, double pc, double Alpha);
59 
62  double density(double L);
63 
64  //Matrix3D<double> density(Matrix3D<double> &L);
65 
69  double max(double v1, double v2);
70 
73  string dtostr(double n);
74 
78  bool check_time(int iter, int d_iter);
79 
80 
81  // --------------------------------------------------------------
82 
88  double Dfe (double alpha, double Ke, double L, double Kp);
89 
93  double Coulomb(double L,double energy);
94 
99  double Precipitation(double Kp,double L,double energy);
100  // --------------------------------------------------------------
101 
103  // --------------------------------------------------------------
104 
107  double B (double Lparam);
108 
109  // \deprecated Function defined in DiffusionCoefficient.h
110  //double Df (double L, double Kp);
111 
112 
114  // --------------------------------------------------------------
115 
118  double Kfunc(double pc);// , double mc2 = 0.511);
119 
122  double pfunc(double K);//, double mc2);
123 
125  // --------------------------------------------------------------
126 
131  double bounce_time_new(double L, double pc, double alpha);
132 
134  // --------------------------------------------------------------
135 
139  double Outer_Boundary_Flux_at_L7(double E7,string J_L7_function);
140 
143  double J_L7_corrected (double K);
144 
147  double J_L7_old (double K);
148 
155  double J_L7 (double K, double x1, double y1, double x2, double y2);
156 
159  double J_L7_corrected_0 (double K);
160 
161 
163  // --------------------------------------------------------------
164 
169  double mu2pc (double L, double mu, double alpha);
174  double pc2mu (double L, double pc, double alpha);
175 }
double max(double v1, double v2)
Return maximum.
double Precipitation(double Kp, double L, double energy)
Empirical electron lifetime.
double f_interp(double E, double f1, double E1, double f2, double E2)
Interpolation f on specific energy.
double Jc_calc(double L, double pc, double Alpha)
Caltulating J*c.
double mu2pc(double L, double mu, double alpha)
Convert μ to pc.
double Outer_Boundary_Flux_at_L7(double E7, string J_L7_function)
Call various flux model of the outer boundary.
string dtostr(double n)
Convert double to string.
double J_L7_corrected(double K)
Outer boundary spectrum (accurate)
double pfunc(double K)
Computation of moumentum from Kinetic energy .
Various functions.
double f1(double lambda)
Various useful constants, see source code for details.
double Coulomb(double L, double energy)
Coulomb scattering electron lifetime.
double J_L7(double K, double x1, double y1, double x2, double y2)
Interpolate spectrum.
double bounce_time_new(double L, double pc, double alpha)
bounce time
double Dfe(double alpha, double Ke, double L, double Kp)
Electrostatic radial diffusion coefficient.
double pc2mu(double L, double pc, double alpha)
Convert pc to μ.
double mu_calc(double L, double pc, double Alpha)
Caltulating μ.
double B(double Lparam)
Dipole magnetic field.
double T(double alpha)
Function for bounce time.
double alc(double L)
Loss cone calculations.
double J_L7_corrected_0(double K)
Outer boundary spectrum (accurate with 0 end the end)
double Y(double alpha)
Y(α) function.
bool check_time(int iter, int d_iter)
Small routine for checking if it is right iteration for the next output.
double density(double L)
Chorus density model.
double J_L7_old(double K)
Outer boundary spectrum (old)
double Kfunc(double pc)
Computation of Kinetic energy from given momentum .
double G(double alpha)
G-function.