26 #include "SchnerrSauer.H" 34 namespace twoPhaseChangeModels
51 const compressibleTwoPhaseMixture& mixture
54 cavitationModel(typeName, mixture),
57 dNuc_(
"dNuc",
dimLength, twoPhaseChangeModelCoeffs_),
58 Cc_(
"Cc",
dimless, twoPhaseChangeModelCoeffs_),
59 Cv_(
"Cv",
dimless, twoPhaseChangeModelCoeffs_),
61 p0_(
"0", pSat().dimensions(), 0.0)
70 Foam::twoPhaseChangeModels::SchnerrSauer::rRb
78 *limitedAlpha1/(1.0 + alphaNuc() - limitedAlpha1),
85 Foam::twoPhaseChangeModels::SchnerrSauer::alphaNuc()
const 88 return Vnuc/(1 + Vnuc);
93 Foam::twoPhaseChangeModels::SchnerrSauer::pCoeff
106 + (scalar(1) - limitedAlpha1)*
rho2()
128 return Pair<tmp<volScalarField::Internal>>
130 Cc_*limitedAlpha1*pCoeff*
max(p -
pSat(), p0_),
132 Cv_*(1.0 + alphaNuc() - limitedAlpha1)*pCoeff*
min(p -
pSat(), p0_)
152 return Pair<tmp<volScalarField::Internal>>
154 Cc_*(1.0 - limitedAlpha1)*
pos0(p -
pSat())*apCoeff,
156 (-Cv_)*(1.0 + alphaNuc() - limitedAlpha1)*
neg(p -
pSat())*apCoeff
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
defineTypeNameAndDebug(cavitationModel, 0)
virtual bool read()
Read the phaseProperties dictionary and update.
SchnerrSauer(const immiscibleIncompressibleTwoPhaseMixture &mixture)
Construct for mixture.
dictionary twoPhaseChangeModelCoeffs_
Model coefficient dictionary.
dimensionedScalar sqrt(const dimensionedScalar &ds)
const dimensionSet dimless
Generic dimensioned Type class.
const dimensionedScalar & pSat() const
Return const-access to the saturation vapour pressure.
DimensionedField< scalar, volMesh > Internal
Type of the internal field from which this GeometricField is derived.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
dimensionedScalar neg(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
const dimensionSet dimLength
const volScalarField & alpha1() const
Return the phase-fraction of phase 1.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const volScalarField::Internal & rho1() const
Return the internal field of the density of phase 1.
An ordered pair of two objects of type <T> with first() and second() elements.
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
virtual void correct()=0
Correct the phaseChange model.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar pos0(const dimensionedScalar &ds)
addToRunTimeSelectionTable(cavitationModel, Kunz, dictionary)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar pow3(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.
const dimensionSet dimVolume
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual void correct()
Correct the SchnerrSauer phaseChange model.
A class for managing temporary objects.
const objectRegistry & db() const
Return the local objectRegistry.
const volScalarField::Internal & rho2() const
Return the internal field of the density of phase 2.
const immiscibleIncompressibleTwoPhaseMixture & mixture_
Reference to the two-phase mixture.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual bool read()
Read the phaseProperties dictionary and update.
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.