10#include "../Definitions.H"
11#include "../Core/FieldQty.H"
12#include "../MPI/MPIUtil.H"
13#include "../Utils/Constants.H"
14#include "../Utils/Units.H"
15#include "../Core/CRTree.H"
16#include "../Losses/Losses.H"
17#include "../Prob/Prob.H"
18#include "../Propagation/Propagation.H"
19#include "../Utils/Types.H"
20#include "../Gas/Gas.H"
57 for (
IdxType i = 0; i<len; i++) {
174 const IdxType nBB_,
const int nGhost_ = 1) {
179 pp.
get(
"gas.tree.maxH", hMax);
180 pp.
get(
"gas.tree.leafSize", lSize);
182 std::cout <<
"GizmoGas: reading " <<
filename.c_str() << std::endl;
Class to create 3d trees for gas particles.
A class to manage Gas packets for Lagrangian gas descriptions.
Definition GasTree.H:75
A class that describes the geometry of a calculation.
Definition Geometry.H:32
A class to hold all relevant data from a GIZMO snapshot file.
Definition GizmoGas.H:36
std::vector< double > hIfrac
Definition GizmoGas.H:71
std::vector< RealVec > velocity
Definition GizmoGas.H:78
std::vector< double > heIIfrac
Definition GizmoGas.H:74
std::vector< double > density
Definition GizmoGas.H:68
std::vector< double > heIIIfrac
Definition GizmoGas.H:75
static void giveUnits(std::vector< T > &unscaled, Real unit)
Multiply all elements of a vector by a unit to scale.
Definition GizmoGas.H:55
std::vector< double > heIfrac
Definition GizmoGas.H:73
std::string file
Definition GizmoGas.H:66
std::vector< double > metals
Definition GizmoGas.H:77
std::vector< double > hIIfrac
Definition GizmoGas.H:72
std::vector< double > smooth
Definition GizmoGas.H:67
std::vector< RealVec > magField
Definition GizmoGas.H:80
std::vector< RealVec > position
Definition GizmoGas.H:79
std::vector< double > elAbundance
Definition GizmoGas.H:76
std::vector< double > ionDensity
Definition GizmoGas.H:69
Class to parse the criptic input deck.
Definition ParmParser.H:37
void get(const std::string &name, int &val) const
Return an integer-valued keyword.
Definition ParmParser.cpp:129
Trivial class to hold gas data.
Definition GasData.H:29
Interface class to describe background gas.
Definition Gas.H:44
Gas class derived from a GIZMO snapshot.
Definition GizmoGas.H:92
int verbosity
Definition GizmoGas.H:200
static GizmoGas * loadData(const std::string filename, Real hLimit=0, int leafSize=32)
Loads a GizmoGas object from just a filename.
Definition GizmoGas.H:157
static Real loadTime(std::string filename)
Loads the snapshot time of a snapshot.
Definition GizmoGas.cpp:242
Real hLim
Definition GizmoGas.H:198
~GizmoGas()
Destructor.
Definition GizmoGas.H:131
GasTree * particleTree
Definition GizmoGas.H:202
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.
Definition GizmoGas.H:172
std::string filename
Definition GizmoGas.H:197
virtual GasData gasData(const RealVec &x, const Real t) const override
Returns a gasData object describing the gas at the input point.
Definition GizmoGas.cpp:258
GizmoReader * data
Definition GizmoGas.H:201
int leafSize
Definition GizmoGas.H:199
bool IOProc
Definition MPIUtil.cpp:18
The primary namespace for criptic objects.
Definition AdvancePacket.H:25
std::vector< Real >::size_type IdxType
Definition Types.H:45
double Real
Definition Types.H:38