34 namespace phaseChangeTwoPhaseMixtures
39 phaseChangeTwoPhaseMixture,
55 phaseChangeTwoPhaseMixture(typeName, U, phi),
58 dNuc_(
"dNuc",
dimLength, phaseChangeTwoPhaseMixtureCoeffs_),
59 Cc_(
"Cc",
dimless, phaseChangeTwoPhaseMixtureCoeffs_),
60 Cv_(
"Cv",
dimless, phaseChangeTwoPhaseMixtureCoeffs_),
62 p0_(
"0", pSat().dimensions(), 0.0)
71 Foam::phaseChangeTwoPhaseMixtures::SchnerrSauer::rRb
79 *limitedAlpha1/(1.0 + alphaNuc() - limitedAlpha1),
86 Foam::phaseChangeTwoPhaseMixtures::SchnerrSauer::alphaNuc()
const 89 return Vnuc/(1 + Vnuc);
94 Foam::phaseChangeTwoPhaseMixtures::SchnerrSauer::pCoeff
102 limitedAlpha1*
rho1() + (scalar(1) - limitedAlpha1)*
rho2()
119 return Pair<tmp<volScalarField>>
121 Cc_*limitedAlpha1*pCoeff*
max(p -
pSat(), p0_),
123 Cv_*(1.0 + alphaNuc() - limitedAlpha1)*pCoeff*
min(p -
pSat(), p0_)
137 return Pair<tmp<volScalarField>>
139 Cc_*(1.0 - limitedAlpha1)*
pos0(p -
pSat())*apCoeff,
141 (-Cv_)*(1.0 + alphaNuc() - limitedAlpha1)*
neg(p -
pSat())*apCoeff
dictionary phaseChangeTwoPhaseMixtureCoeffs_
const dimensionedScalar & rho2() const
Return const-access to phase2 density.
virtual bool read()=0
Read the transportProperties dictionary and update.
virtual void correct()
Correct the SchnerrSauer phaseChange model.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual void correct()=0
Correct the phaseChange model.
dimensionedScalar sqrt(const dimensionedScalar &ds)
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.
Generic dimensioned Type class.
GeometricField< vector, fvPatchField, volMesh > volVectorField
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
virtual bool read()
Read the transportProperties dictionary and update.
dimensionedScalar neg(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimVolume(pow3(dimLength))
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.
const dimensionedScalar & pSat() const
Return const-access to the saturation vapour pressure.
dimensionedScalar pos0(const dimensionedScalar &ds)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar pow3(const dimensionedScalar &ds)
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const objectRegistry & db() const
Return the local objectRegistry.
SchnerrSauer(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const dimensionedScalar & rho1() const
Return const-access to phase1 density.