37 const word& modelType,
42 option(name, modelType, dict, mesh),
43 fieldName_(coeffs_.lookup(
"field")),
44 rateName_(coeffs_.lookup(
"rate")),
45 residualAlpha_(
readScalar(coeffs_.lookup(
"residualAlpha")))
47 fieldNames_.setSize(1, fieldName_);
48 applied_.setSize(1,
false);
68 eqn -=
fvm::Sp(
max(residualAlpha_ - alpha, scalar(0))*rho*rate, psi);
77 coeffs_.lookup(
"residualAlpha") >> residualAlpha_;
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
const GeometricField< Type, fvPatchField, volMesh > & psi() const
virtual void addSup(const volScalarField &alpha, const volScalarField &rho, fvMatrix< Type > &eqn, const label fieldi)
Source term to compressible phase equation.
A class for handling words, derived from string.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
Stabilization source for phase transport equations.
virtual bool read(const dictionary &dict)
Read dictionary.
Mesh data needed to do the Finite Volume discretisation.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
const volScalarField & psi
Calculate the matrix for implicit and explicit sources.
Finite volume options abstract base class. Provides a base set of controls, e.g.: ...