43 phaseLimitStabilisation,
52 void Foam::fv::phaseLimitStabilisation::readCoeffs()
54 fieldName_ = coeffs().lookup<word>(
"field");
55 rateName_ = coeffs().lookup<word>(
"rate");
56 residualAlpha_ = coeffs().lookup<scalar>(
"residualAlpha");
61 void Foam::fv::phaseLimitStabilisation::addSupType
69 const GeometricField<Type, fvPatchField, volMesh>& psi = eqn.psi();
74 eqn -=
fvm::Sp(
max(residualAlpha_ - alpha, scalar(0))*rho*rate, psi);
83 const word& modelType,
88 fvModel(name, modelType, dict, mesh),
#define IMPLEMENT_FV_MODEL_ADD_ALPHA_RHO_SUP(Type, modelType)
defineTypeNameAndDebug(fixedTemperatureConstraint, 0)
virtual bool read(const dictionary &dict)
Read dictionary.
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 > &)
virtual bool read(const dictionary &dict)
Read source dictionary.
Finite volume model abstract base class.
FOR_ALL_FIELD_TYPES(IMPLEMENT_FV_MODEL_ADD_ALPHA_RHO_SUP, fv::phaseLimitStabilisation)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
UniformDimensionedField< scalar > uniformDimensionedScalarField
Macros for easy insertion into run-time selection tables.
phaseLimitStabilisation(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual wordList addSupFields() const
Return the list of fields for which the fvModel adds source term.
A class for handling words, derived from string.
static const word null
An empty word.
addToRunTimeSelectionTable(fvConstraint, fixedTemperatureConstraint, dictionary)
List< word > wordList
A List of words.
Mesh data needed to do the Finite Volume discretisation.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
Stabilisation source for phase transport equations.
Calculate the matrix for implicit and explicit sources.