31 template<
class ParcelType>
36 pMin_(this->dict_, 0.0),
37 constantVolume_(this->dict_, false),
38 volUpdateType_(this->dict_, mUndefined)
42 template<
class ParcelType>
50 constantVolume_(
cp.constantVolume_),
51 volUpdateType_(
cp.volUpdateType_)
55 template<
class ParcelType>
62 pMin_(this->dict_,
"pMin", 1000.0),
63 constantVolume_(this->dict_,
"constantVolume", false),
64 volUpdateType_(this->dict_,
"volumeUpdateMethod")
69 if (this->dict_.found(
"constantVolume"))
73 else if (this->dict_.readIfPresent(
"volumeUpdateMethod", updateName))
76 if (updateName ==
"constantRho")
80 else if (updateName ==
"constantVolume")
84 else if (updateName ==
"updateRhoAndVol")
93 <<
"Unknown volumeUpdateMethod type " << updateName
94 <<
"\n\nValid volumeUpdateMethod types :\n" 95 <<
"(constantRho constantVolume updateRhoAndVol)" <<
nl 106 template<
class ParcelType>
109 const polyMesh&
mesh,
112 const label tetFacei,
122 template<
class ParcelType>
130 ParcelType(
mesh, position, celli),
136 template<
class ParcelType>
142 const label tetFacei,
145 const scalar nParticle0,
147 const scalar dTarget0,
150 const vector& angularMomentum0,
153 const constantProperties& constProps
183 template<
class ParcelType>
187 return pMin_.value();
191 template<
class ParcelType>
195 return constantVolume_.value();
199 template<
class ParcelType>
203 return volUpdateType_.value();
209 template<
class ParcelType>
216 template<
class ParcelType>
223 template<
class ParcelType>
230 template<
class ParcelType>
238 template<
class ParcelType>
246 template<
class ParcelType>
253 template<
class ParcelType>
Class to hold reacting parcel constant properties.
scalarList Y0(nSpecie, Zero)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
scalarField Y_
Mass fractions of mixture [].
ReactingParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from mesh, coordinates and topology.
bool constantVolume() const
Return const access to the constant volume flag.
Barycentric< scalar > barycentric
A scalar version of the templated Barycentric.
A class for handling words, derived from Foam::string.
scalar pMin() const
Return const access to the minimum pressure.
label volUpdateType() const
Return const access to the constant volume flag.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const volScalarField & cp
const scalarField & YSolid() const
Return const access to mass fractions of solids.
const scalarField & YLiquid() const
Return const access to mass fractions of liquids.
PtrList< coordinateSystem > coordinates(solidRegions.size())
void setValue(const Type &value)
Set the value.
scalar mass0() const
Return const access to initial mass [kg].
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
const scalarField & YGas() const
Return const access to mass fractions of gases.
constantProperties()
Null constructor.
Mesh consisting of general polyhedral cells.
scalar mass0_
Initial mass [kg].
const scalarField & Y() const
Return const access to mass fractions of mixture [].
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...