|
criptic v1
Cosmic Ray Interstellar Propagation Tool using Itô Calculus
|
Gas class derived from a GIZMO snapshot. More...
#include <GizmoGas.H>
Public Member Functions | |
| GizmoGas (std::string filename, Real hLimit=0, int leafSize_=32) | |
| Construct a GizmoGas object with a filename. | |
| GizmoGas (const ParmParser &pp, const Geometry &geom_, const IdxType nBB, const int nGhost) | |
| Construct a GizmoGas object with the input deck. | |
| ~GizmoGas () | |
| Destructor. | |
| virtual GasData | gasData (const RealVec &x, const Real t) const override |
| Returns a gasData object describing the gas at the input point. | |
Public Member Functions inherited from criptic::gas::Gas | |
| virtual | ~Gas () |
| Empty virtual destructor. | |
| virtual void | frame (const RealVec &x, const Real t, RealVec &v, TNBBasis &tnb) const |
| Compute the comoving TNB frame for the gas. | |
| 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. | |
Static Public Member Functions | |
| static GizmoGas * | loadData (const std::string filename, Real hLimit=0, int leafSize=32) |
| Loads a GizmoGas object from just a filename. | |
| static GizmoGas * | loadData (const std::string filename, const ParmParser &pp, const Geometry &geom_, const IdxType nBB_, const int nGhost_=1) |
| Loads a GizmoGas object with the input deck and a filename. | |
| static Real | loadTime (std::string filename) |
| Loads the snapshot time of a snapshot. | |
Private Attributes | |
| std::string | filename |
| Real | hLim |
| int | leafSize |
| int | verbosity |
| GizmoReader * | data |
| GasTree * | particleTree |
Gas class derived from a GIZMO snapshot.
This is the gas class to use for initialising gas simulations. The full data is contained in the GizmoReader object, while GizmoGas also contains the particle tree and the necessary gasData function
| GizmoGas::GizmoGas | ( | std::string | filename, |
| Real | hLimit = 0, |
||
| int | leafSize_ = 32 |
||
| ) |
Construct a GizmoGas object with a filename.
| filename | String of GIZMO snapshot location from root |
| hLimit | Real number to limit smoothing lengths in the tree. Use zero for no limit on h |
| leafSize_ | int for leaf size in the tree |
This constructor requires only a filename, which fully defines a snapshot file. Other constructors are necessary to get the requisite filename from the input deck
| GizmoGas::GizmoGas | ( | const ParmParser & | pp, |
| const Geometry & | geom_, | ||
| const IdxType | nBB, | ||
| const int | nGhost | ||
| ) |
Construct a GizmoGas object with the input deck.
| pp | criptic::ParmParser object containing the input deck |
| geom_ | criptic::Geometry object describing problem geometry |
| nBB | Number of blackbody radiation components |
| nGhost | Number of ghost zones to add to grid |
This constructor is used to initialise a TimeInterp<GizmoGas> object such that the constructor inputs match those for a cartesian grid object. Only the ParmParser is used to get a filename to use. This constructor is defined for compatibility purposes with the rest of the code and should not be used for time-dependent runs–loadData should be used instead.
|
inline |
Destructor.
Returns a gasData object describing the gas at the input point.
| x | RealVec of position to get gas quantities for |
| t | Simulation time |
This is the GizmoGas instantiation of the pure virtual Gas::gasData function, working with a single GIZMO snapshot.
Implements criptic::gas::Gas.
|
inlinestatic |
Loads a GizmoGas object with the input deck and a filename.
| filename | String of GIZMO snapshot location from root |
| pp | criptic::ParmParser object containing the input deck |
| geom_ | criptic::Geometry object describing problem geometry |
| nBB_ | Number of blackbody radiation components |
| nGhost_ | Number of ghost zones to add to grid |
Used in timeInterp to load new snapshots, using enough parameters such that timeInterp works with Cartesian gas descriptions.
|
inlinestatic |
Loads a GizmoGas object from just a filename.
| filename | String of GIZMO snapshot location from root |
| hLimit | Real number to limit smoothing lengths in the tree. |
| leafSize | int for leaf size in the tree |
loadData is used in timeInterp to load new snapshots while advancing over time. Functionally identical to the constructor with the same inputs
|
static |
Loads the snapshot time of a snapshot.
| filename | String of filename to check |
|
private |
Pointer to full data
|
private |
Filename of the GIZMO snapshot from root
|
private |
Limit on smoothing lengths for the particle tree
|
private |
Leaf size of the particle tree
|
private |
Pointer to particle tree
|
private |
Verbosity level