54 const word& sourceName,
55 const word& modelType,
61 phaseName_(
dict.lookupOrDefault(
"phase",
word::null)),
75 betaStar_(
"betaStar",
dimless, 0),
83 fieldName_ = epsilonName;
88 fieldName_ = omegaName;
105 <<
"Cannot find either " << epsilonName <<
" or " << omegaName
132 mixture_.alpha1()()*
sqr(mixture_.nuModel1().nu()()())
133 + mixture_.alpha2()()*
sqr(mixture_.nuModel2().nu()()())
136 if (field.
name() ==
"epsilon")
138 eqn += mixture_.interfaceFraction()*C2_*aSqrnu*turbulence_.k()()
141 else if (field.
name() ==
"omega")
143 eqn += mixture_.interfaceFraction()*beta_*aSqrnu/(
sqr(betaStar_)
149 <<
"Support for field " << field.
name() <<
" is not implemented"
170 if (mixture_.alpha1().name() ==
alpha.name())
172 taSqrnu = mixture_.alpha1()()*
sqr(mixture_.nuModel1().nu()()());
174 else if (mixture_.alpha2().name() ==
alpha.name())
176 taSqrnu = mixture_.alpha2()()*
sqr(mixture_.nuModel2().nu()()());
181 <<
"Unknown phase-fraction " <<
alpha.name()
187 eqn += mixture_.interfaceFraction()*C2_*taSqrnu*turbulence_.k()()
192 eqn += mixture_.interfaceFraction()*beta_*taSqrnu
193 /(
sqr(betaStar_)*
pow4(delta_));
198 <<
"Support for field " << field.
name() <<
" is not implemented"
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
const word & name() const
Return name.
static word groupName(Name name, const word &group)
A list of keyword definitions, which are a keyword followed by any number of values (e....
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
void read(const dictionary &)
Update the value of dimensioned<Type>
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
Finite volume model abstract base class.
const fvMesh & mesh() const
Return const access to the mesh database.
Free-surface turbulence damping function.
virtual bool movePoints()
Update for mesh motion.
virtual wordList addSupFields() const
Return the list of fields for which the option adds source term.
VoFTurbulenceDamping(const word &sourceName, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
virtual void addSup(const volScalarField &field, fvMatrix< scalar > &eqn) const
Add explicit contribution to epsilon or omega equation.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
Base class for single-phase incompressible turbulence models.
Class to represent a mixture of two constant density phases.
virtual const dictionary & coeffDict() const =0
Const access to the coefficients dictionary.
bool foundObject(const word &name) const
Is the named Type in registry.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for managing temporary objects.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
List< word > wordList
A List of words.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimless
const dimensionSet dimLength
dimensionedScalar pow4(const dimensionedScalar &ds)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.