55 const word& sourceName,
56 const word& modelType,
73 alphaName_(mixture_.alpha1().
name())
81 return {alphaName_,
"p_rgh",
"U"};
96 if (fieldName == alphaName_)
101 - mixture_.alpha1()()*(1.0/mixture_.rho1() - 1.0/mixture_.rho2())
106 cavitation_->mDot12Alpha()
112 eqn +=
fvm::Sp(-vDot2Alpha - vDot1Alpha, eqn.
psi()) + vDot1Alpha;
121 const word& fieldName
129 if (fieldName ==
"p_rgh")
139 1.0/mixture_.rho1() - 1.0/mixture_.rho2()
144 cavitation_->mDot12P()
151 (vDot2P - vDot1P)*(cavitation_->pSat() -
rho*gh)
161 const word& fieldName
169 if (fieldName ==
"U")
199 cavitation_->correct();
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.
An ordered pair of two objects of type <T> with first() and second() elements.
Abstract base class for cavitation models.
A list of keyword definitions, which are a keyword followed by any number of values (e....
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.
virtual bool movePoints()
Update for mesh motion.
virtual wordList addSupFields() const
Return the list of fields for which the option adds source term.
virtual void correct()
Correct the cavitation model.
virtual void addSup(fvMatrix< scalar > &eqn, const word &fieldName) const
Add implicit/explicit contributions to VoF phase-fraction 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.
VoFCavitation(const word &sourceName, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
Class to represent a mixture of two constant density phases.
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 handling words, derived from string.
Calculate the first temporal derivative.
Calculate the divergence of the given field.
Calculate the matrix for implicit and explicit sources.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
tmp< VolField< Type > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
tmp< VolField< Type > > div(const SurfaceField< Type > &ssf)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const complex &)
Return a string representation of a complex.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.