|
criptic v1
Cosmic Ray Interstellar Propagation Tool using Itô Calculus
|
A class to describe a gas with a split monopole field. More...
#include <SplitMonopole.H>
Public Member Functions | |
| SplitMonopole (const ParmParser &pp) | |
| Construct a split monopole gas from the input deck. | |
| virtual | ~SplitMonopole () |
| Virtual destructor – does nothing. | |
| virtual GasData | gasData (const RealVec &x, const Real t) const |
| Return background gas state. | |
| virtual void | frame (const RealVec &x, const Real t, RealVec &v, TNBBasis &tnb) const |
| Compute the comoving TNB frame for the gas. | |
Public Member Functions inherited from criptic::gas::Gas | |
| virtual | ~Gas () |
| Empty virtual destructor. | |
| virtual Real | dxGhost () const |
| Size of the ghost region in the gas data. | |
| virtual void | updateState (const Real t, Real &tNext) |
| Update the gas data. | |
Private Attributes | |
| Real | r0 |
| Real | rFlat |
| Real | rho0 |
| Real | krho |
| Real | chi |
| Real | B0 |
A class to describe a gas with a split monopole field.
This class represents a spherically-symmetric gas containing a split-monopole magnetic field. The properties of the gas and field are read from the input deck. The monopole splits along the z = 0 plane, and for positive B0, the field points radially outward at z > 0 and radially inward at z < 0.
|
inline |
Construct a split monopole gas from the input deck.
| pp | criptic::ParmParser containing the input deck |
|
inlinevirtual |
Virtual destructor – does nothing.
|
inlinevirtual |
Compute the comoving TNB frame for the gas.
| x | Position |
| t | Time |
| v | Comoving velocity at specified position and time |
| tnb | The TNBBasis at the specified position and time |
This function computes the comoving TNB frame for the gas at a specified position and time.
Reimplemented from criptic::gas::Gas.
|
inlinevirtual |
Return background gas state.
| x | Position |
| t | Time |
Implements criptic::gas::Gas.
|
private |
|B| = B0 (r/r0)^-2
|
private |
Ionization fraction in gas
|
private |
Density obeys rho ~ rho0 * (r/r0)**krho
|
private |
Scale radius
|
private |
Radius of flat inner region
|
private |
Density obeys rho ~ rho0 * (r/r0)**krho