40 template<
class BasePhaseModel>
44 const word& phaseName,
45 const bool referencePhase,
49 BasePhaseModel(fluid, phaseName, referencePhase, index)
55 template<
class BasePhaseModel>
62 template<
class BasePhaseModel>
65 this->thermo_->normaliseY();
66 BasePhaseModel::correctSpecies();
70 template<
class BasePhaseModel>
77 template<
class BasePhaseModel>
90 +
fvm::div(alphaRhoPhi, Yi,
"div(" + alphaRhoPhi.
name() +
",Yi)")
100 /this->mesh().time().deltaT(),
108 template<
class BasePhaseModel>
112 return this->thermo_->Y();
116 template<
class BasePhaseModel>
120 return this->thermo_->Y(
name);
124 template<
class BasePhaseModel>
128 return this->thermo_->Y();
132 template<
class BasePhaseModel>
138 return this->thermo_->solveSpecie(speciei);
Generic GeometricField class.
const word & name() const
Return name.
virtual void correctSpecies()
Correct the species fractions.
virtual bool solveSpecie(const label speciei) const
Should the given specie be solved for? I.e., is it active and.
MulticomponentPhaseModel(const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index)
virtual PtrList< volScalarField > & YRef()
Access the species mass fractions.
virtual tmp< fvScalarMatrix > YiEqn(volScalarField &Yi)
Return the species fraction equation.
virtual bool pure() const
Return whether the phase is pure (i.e., not multi-component)
virtual ~MulticomponentPhaseModel()
Destructor.
virtual const PtrList< volScalarField > & Y() const
Return the species mass fractions.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Class to represent a system of phases and model interfacial transfers between them.
A class for managing temporary objects.
A class for handling words, derived from string.
Calculate the first temporal derivative.
Calculate the divergence of the given field.
Calculate the matrix for the first temporal derivative.
Calculate the matrix for the divergence of the given field and flux.
Calculate the matrix for the laplacian of the field.
Calculate the matrix for implicit and explicit sources.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
tmp< fvMatrix< Type > > ddt(const VolField< Type > &vf)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.