VF Namespace Reference

Various functions. More...


Functions

double G (double x)
 G-function ;-).
double B (double Lparam)
 Computation of dipole magnetic field.
double Df (double L, double Kp)
 Radial Diffusion coeficeint computed following [Brautigam and Albet , 2000].
double pfunc (double K)
 Computation of moumentum from Kinetic energy.
double Kfunc (double pc)
 Computation of Kinetic energy from given momentum.
double bounce_time (double E, double L)
 Bounce time.
double J_L7 (double K, double x1, double y1, double x2, double y2)
 Specifying outer boundary.
double J_L7_corrected (double K)
 Specifying outer boundary, more accurate function.
double mu2pc (double L, double mu, double alpha)
 Calculating pc from L, mu, alpha.
double pc2mu (double L, double pc, double alpha)
 Calculating mu from L, pc, alpha.
double Alpha2J (double L, double pc, double Alpha)
 Calculating J from L, pc, Alpha.
double alc (double L)
 Lost cone in rad.
double f_interp (double E, double f1, double E1, double f2, double E2)
 Getting f on specific energy.
double mu_calc (double L, double pc, double Alpha)
 Caltulating mu from L, pc, Alpha.
double Jc_calc (double L, double pc, double Alpha)
 Caltulating J from L, pc, Alpha.
double Y_old (double alpha)
 Y(alpha) function.
double Y (double alpha)
 Y(alpha) function.
double density (double L)
 Chorus density model?
double max (double v1, double v2)
 Chorus density model?
string dtostr (double n)
 Double to string.
double Jc2Alpha (double L, double pc, double Jc)
double Alpha2Jc (double L, double pc, double Alpha)


Detailed Description

Various functions.


Function Documentation

double VF::alc ( double  L  ) 

Lost cone in rad.

sin^2(a) = L^(-3)/(4 - 3/L)^(1/2))

Definition at line 123 of file variousFunctions.cpp.

Referenced by bounce_time(), PSD::Load_initial_f(), PSD::Load_initial_f_2d(), PSD::LoadInitialValue(), and MakeModelMatrix_3D().

Here is the caller graph for this function:

double VF::Alpha2J ( double  L,
double  pc,
double  Alpha 
)

Calculating J from L, pc, Alpha.

Definition at line 114 of file variousFunctions.cpp.

double VF::Alpha2Jc ( double  L,
double  pc,
double  Alpha 
)

double VF::B ( double  Lparam  ) 

Computation of dipole magnetic field.

in Gauss

Definition at line 27 of file variousFunctions.cpp.

Referenced by PSD::Load_initial_f(), DiffusionCoefficient::MakeDLL_BE(), Grid::MakeGrid(), mu2pc(), mu_calc(), and pc2mu().

Here is the caller graph for this function:

double VF::bounce_time ( double  E,
double  L 
)

Bounce time.

Definition at line 51 of file variousFunctions.cpp.

References alc().

Referenced by MakeModelMatrix_3D().

Here is the call graph for this function:

Here is the caller graph for this function:

double VF::density ( double  L  ) 

Chorus density model?

Definition at line 177 of file variousFunctions.cpp.

double VF::Df ( double  L,
double  Kp 
)

Radial Diffusion coeficeint computed following [Brautigam and Albet , 2000].

Definition at line 32 of file variousFunctions.cpp.

Referenced by DiffusionCoefficient::MakeDLL100(), DiffusionCoefficient::MakeDLL_B(), DiffusionCoefficient::MakeDLL_BE(), DiffusionCoefficient::MakeDLL_FAKE(), and steady_state().

Here is the caller graph for this function:

string VF::dtostr ( double  n  ) 

Double to string.

Definition at line 200 of file variousFunctions.cpp.

Referenced by main().

Here is the caller graph for this function:

double VF::f_interp ( double  E,
double  f1,
double  E1,
double  f2,
double  E2 
)

Getting f on specific energy.

Linear interpolation of logarithm.

Definition at line 130 of file variousFunctions.cpp.

double VF::G ( double  x  ) 

G-function ;-).

Definition at line 19 of file variousFunctions.cpp.

Referenced by PSD::DiffusionMixTermExplicit(), Grid::Grid(), Grid::MakeGrid(), and MakeMatrix().

Here is the caller graph for this function:

double VF::J_L7 ( double  K,
double  x1,
double  y1,
double  x2,
double  y2 
)

Specifying outer boundary.

Definition at line 63 of file variousFunctions.cpp.

Referenced by J_L7_corrected(), and PSD::Load_initial_f().

Here is the caller graph for this function:

double VF::J_L7_corrected ( double  K  ) 

Specifying outer boundary, more accurate function.

Definition at line 80 of file variousFunctions.cpp.

References i, and J_L7().

Referenced by PSD::Load_initial_f().

Here is the call graph for this function:

Here is the caller graph for this function:

double VF::Jc2Alpha ( double  L,
double  pc,
double  Jc 
)

double VF::Jc_calc ( double  L,
double  pc,
double  Alpha 
)

Caltulating J from L, pc, Alpha.

Definition at line 152 of file variousFunctions.cpp.

References Y().

Referenced by Grid::MakeGrid().

Here is the call graph for this function:

Here is the caller graph for this function:

double VF::Kfunc ( double  pc  ) 

Computation of Kinetic energy from given momentum.

Definition at line 46 of file variousFunctions.cpp.

Referenced by GridElement::Kfunc(), PSD::Load_initial_f(), PSD::Load_initial_f_2d(), and MakeModelMatrix_3D().

Here is the caller graph for this function:

double VF::max ( double  v1,
double  v2 
)

Chorus density model?

Return maximum.

Definition at line 195 of file variousFunctions.cpp.

Referenced by gmres_wrapout(), PSD::Interpolate(), Lapack(), ParamStructure::Load_parameters(), and over_relaxation_diag().

Here is the caller graph for this function:

double VF::mu2pc ( double  L,
double  mu,
double  alpha 
)

Calculating pc from L, mu, alpha.

Definition at line 94 of file variousFunctions.cpp.

References B().

Referenced by Grid::MakeGrid().

Here is the call graph for this function:

Here is the caller graph for this function:

double VF::mu_calc ( double  L,
double  pc,
double  Alpha 
)

Caltulating mu from L, pc, Alpha.

Definition at line 145 of file variousFunctions.cpp.

References B().

Referenced by Grid::MakeGrid().

Here is the call graph for this function:

Here is the caller graph for this function:

double VF::pc2mu ( double  L,
double  pc,
double  alpha 
)

Calculating mu from L, pc, alpha.

Definition at line 102 of file variousFunctions.cpp.

References B().

Referenced by DiffusionCoefficient::MakeDLL_BE(), and Grid::MakeGrid().

Here is the call graph for this function:

Here is the caller graph for this function:

double VF::pfunc ( double  K  ) 

Computation of moumentum from Kinetic energy.

Definition at line 39 of file variousFunctions.cpp.

Referenced by ParamStructure::Load_parameters(), and Grid::Output().

Here is the caller graph for this function:

double VF::Y ( double  alpha  ) 

Y(alpha) function.

More accurate approximation.

Definition at line 167 of file variousFunctions.cpp.

Referenced by find_alpha(), and Jc_calc().

Here is the caller graph for this function:

double VF::Y_old ( double  alpha  ) 

Y(alpha) function.

Approximation.

Definition at line 159 of file variousFunctions.cpp.


Generated on Thu May 27 11:53:19 2010 for VERB_CODE_2.0 by  doxygen 1.5.9