|
criptic v1
Cosmic Ray Interstellar Propagation Tool using Itô Calculus
|
A class to hold all relevant data from a GIZMO snapshot file. More...
#include <GizmoGas.H>
Public Member Functions | |
| GizmoReader (std::string filename) | |
| Construct a GizmoReader object from a GIZMO file. | |
Static Public Member Functions | |
| template<typename T > | |
| static void | giveUnits (std::vector< T > &unscaled, Real unit) |
| Multiply all elements of a vector by a unit to scale. | |
Public Attributes | |
| std::string | file |
| std::vector< double > | smooth |
| std::vector< double > | density |
| std::vector< double > | ionDensity |
| std::vector< double > | hIfrac |
| std::vector< double > | hIIfrac |
| std::vector< double > | heIfrac |
| std::vector< double > | heIIfrac |
| std::vector< double > | heIIIfrac |
| std::vector< double > | elAbundance |
| std::vector< double > | metals |
| std::vector< RealVec > | velocity |
| std::vector< RealVec > | position |
| std::vector< RealVec > | magField |
A class to hold all relevant data from a GIZMO snapshot file.
This class stores the total data from a GIZMO snapshot files as vectors of Reals and RealVecs. This is a member of the GizmoGas class, which is a Gas class used to initiate gas for simulations.
| GizmoReader::GizmoReader | ( | std::string | filename | ) |
Construct a GizmoReader object from a GIZMO file.
| filename | string to represent file name and path from root |
|
inlinestatic |
Multiply all elements of a vector by a unit to scale.
| T | The type of data to be scaled: must have multiplication defined |
| unscaled | vector<T> of data to scale |
| unit | Real number to scale units by |
This function is a shortcut to supply units to data when reading in a GIZMO file. The implementation does not check the data itself to find units so units must be set manually for the gas simulation used
| std::vector<double> criptic::GizmoReader::density |
Mass Density
| std::vector<double> criptic::GizmoReader::elAbundance |
Electron abundance per hydrogen
| std::string criptic::GizmoReader::file |
Snapshot file name
| std::vector<double> criptic::GizmoReader::heIfrac |
Fraction of HeI
| std::vector<double> criptic::GizmoReader::heIIfrac |
Fraction of HeII
| std::vector<double> criptic::GizmoReader::heIIIfrac |
Fraction of HeIII
| std::vector<double> criptic::GizmoReader::hIfrac |
Fraction of HI
| std::vector<double> criptic::GizmoReader::hIIfrac |
Fraction of HII
| std::vector<double> criptic::GizmoReader::ionDensity |
Ionised mass density
| std::vector<RealVec> criptic::GizmoReader::magField |
3D Particle magnetic fields
| std::vector<double> criptic::GizmoReader::metals |
Metals per unit mass
| std::vector<RealVec> criptic::GizmoReader::position |
3D Particle position co-ordinates
| std::vector<double> criptic::GizmoReader::smooth |
Smoothing lengths
| std::vector<RealVec> criptic::GizmoReader::velocity |
3D Particle velocities