33template<
class CompType,
class Sol
idThermo>
41template<
class CompType,
class Sol
idThermo>
49template<
class CompType,
class Sol
idThermo>
58template<
class CompType,
class Sol
idThermo>
69template<
class CompType,
class Sol
idThermo>
80 auto& RRs = tRRs.ref();
84 for (label i=0; i < nSolids_; i++)
93template<
class CompType,
class Sol
idThermo>
97 auto tRRsHs = DimensionedField<scalar, volMesh>::New
100 IOobject::NO_REGISTER,
102 dimensionedScalar(dimEnergy/dimVolume/dimTime, Zero)
104 auto& RRs = tRRsHs.ref();
106 if (this->chemistry_)
108 const volScalarField&
T = this->solidThermo().T();
109 const volScalarField&
p = this->solidThermo().p();
111 for (label i=0; i < nSolids_; i++)
116 RRs_[i][cellI]*solidThermo_[i].Hs(
p[cellI],
T[cellI]);
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static tmp< DimensionedField< Type, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const Field< Type > &iField)
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions, copy of internal field....
@ NO_REGISTER
Do not request registration (bool: false).
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
virtual const volScalarField & T() const
Temperature [K].
virtual volScalarField & p()
Pressure [Pa].
const PtrList< Reaction< SolidThermo > > & reactions() const
The reactions.
const PtrList< Reaction< SolidThermo > > & reactions_
Reactions.
label nSolids_
Number of solid components.
tmp< DimensionedField< scalar, volMesh > > RRsHs() const
Return net solid sensible enthalpy.
label nReaction() const
The number of reactions.
PtrList< volScalarField::Internal > RRs_
List of reaction rate per solid [kg/m3/s].
const PtrList< SolidThermo > & solidThermo_
Thermodynamic data of solids.
label nReaction_
Number of solid reactions.
PtrList< volScalarField::Internal > & RRs()
Write access to source terms for solids.
Fundamental solid thermodynamic properties.
A class for managing temporary objects.
const dimensionSet dimEnergy
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static constexpr const zero Zero
Global zero (0).
const dimensionSet dimVolume(pow3(dimLength))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.