29 #include "cavitationModel.H"
46 void Foam::fv::multiphaseEulerCavitation::readCoeffs
48 const dictionary&
dict
51 cavitationModel_.reset
57 interface_.
index(liquid_)
68 const word& modelType,
75 liquid_(fluid_.phases()[phaseNames().
first()]),
76 vapour_(fluid_.phases()[phaseNames().
second()]),
77 interface_(liquid_, vapour_),
80 mesh().lookupObject<solvers::multiphaseEuler>(
solver::typeName).p_rgh
96 name() +
":Lfraction",
108 cavitationModel_->mDot12P()
119 coeffs[0]*(
p - pSat1) - coeffs[1]*(
p - pSat2)
135 && (&
rho == &liquid_.rho() || &
rho == &vapour_.rho())
136 && &eqn.
psi() == &p_rgh_
141 cavitationModel_->mDot12P()
156 readCoeffs(coeffs(
dict));
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...
static tmp< DimensionedField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Mesh &mesh, const dimensionSet &, const PrimitiveField< Type > &)
Return a temporary field constructed from name, mesh,.
Generic GeometricField class.
An ordered pair of two objects of type <Type> with first() and second() elements.
static autoPtr< cavitationModel > New(const dictionary &dict, const compressibleTwoPhases &phases, const label liquidIndex=-1)
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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.
static const dictionary & coeffs(const word &modelType, const dictionary &)
Return the coefficients sub-dictionary for a given model type.
virtual void addSup(fvMatrix< scalar > &eqn) const
Add a source term to a field-less proxy equation.
Model for cavitation phase change between two phases.
virtual tmp< DimensionedField< scalar, volMesh > > Lfraction() const
Return the fraction of the latent heat that is transferred into.
virtual tmp< DimensionedField< scalar, volMesh > > mDot() const
Return the mass transfer rate.
virtual bool read(const dictionary &dict)
Read source dictionary.
void addSup(const volScalarField &alpha, const volScalarField &rho, const volScalarField &heOrYi, fvMatrix< scalar > &eqn) const
Use phaseChange's source functions.
multiphaseEulerCavitation(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from explicit source name and mesh.
Base class for phase change models.
virtual bool read(const dictionary &dict)
Read source dictionary.
label index(const phaseModel &phase) const
Return the index of the given phase. Generates a FatalError if.
Class to represent a system of phases.
Abstract base class for run-time selectable region solvers.
A class for managing temporary objects.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Calculate the matrix for implicit and explicit sources.
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)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
const dimensionSet dimless
labelList second(const UList< labelPair > &p)
labelList first(const UList< labelPair > &p)
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.