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)
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
virtual bool read(const dictionary &dict)
Read dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual bool read(const dictionary &dict)
Read source dictionary.
Finite volume model abstract base class.
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.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
static const word null
An empty word.
virtual bool movePoints()
Update for mesh motion.
addToRunTimeSelectionTable(fvConstraint, fixedTemperatureConstraint, dictionary)
List< word > wordList
A List of words.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
Mesh data needed to do the Finite Volume discretisation.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
FOR_ALL_FIELD_TYPES(DefineFvWallInfoType)
Stabilisation source for phase transport equations.
Class containing mesh-to-mesh mapping information.
Calculate the matrix for implicit and explicit sources.