31template<
class ParcelType>
36 pMin_(this->dict_, 0.0),
37 constantVolume_(this->dict_, false),
42template<
class ParcelType>
50 constantVolume_(
cp.constantVolume_),
51 volUpdateType_(
cp.volUpdateType_)
55template<
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"))
71 volUpdateType_.setValue(mUndefined);
73 else if (this->dict_.readIfPresent(
"volumeUpdateMethod", updateName))
76 if (updateName ==
"constantRho")
78 volUpdateType_.setValue(mConstRho);
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
101 constantVolume_.setValue(
false);
106template<
class ParcelType>
109 const polyMesh&
mesh,
112 const label tetFacei,
122template<
class ParcelType>
136template<
class ParcelType>
142 const label tetFacei,
145 const scalar nParticle0,
147 const scalar dTarget0,
150 const vector& angularMomentum0,
183template<
class ParcelType>
187 return pMin_.value();
191template<
class ParcelType>
195 return constantVolume_.value();
199template<
class ParcelType>
203 return volUpdateType_.value();
209template<
class ParcelType>
216template<
class ParcelType>
223template<
class ParcelType>
230template<
class ParcelType>
238template<
class ParcelType>
246template<
class ParcelType>
253template<
class ParcelType>
Class to hold reacting parcel constant properties.
label volUpdateType() const
Return const access to the constant volume flag.
bool constantVolume() const
Return const access to the constant volume flag.
scalar pMin() const
Return const access to the minimum pressure.
constantProperties()
Null constructor.
ReactingParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from mesh, coordinates and topology.
const scalarField & Y() const
Return const access to mass fractions of mixture [].
scalarField Y_
Mass fractions of mixture [].
const scalarField & YGas() const
Return const access to mass fractions of gases.
scalar mass0() const
Return const access to initial mass [kg].
scalar mass0_
Initial mass [kg].
const scalarField & YSolid() const
Return const access to mass fractions of solids.
const scalarField & YLiquid() const
Return const access to mass fractions of liquids.
void setValue(const Type &value)
Set the value.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
vector position() const
Return current particle position.
const polyMesh & mesh() const noexcept
Return the mesh database.
const barycentric & coordinates() const noexcept
Return current particle coordinates.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from Foam::string.
PtrList< coordinateSystem > coordinates(solidRegions.size())
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
Copy the source to the destination (recursively if necessary).
Barycentric< scalar > barycentric
A scalar version of the templated Barycentric.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).
scalarList Y0(nSpecie, Zero)