34 namespace phaseChangeTwoPhaseMixtures
39 phaseChangeTwoPhaseMixture,
55 phaseChangeTwoPhaseMixture(typeName, U, phi),
57 n_(phaseChangeTwoPhaseMixtureCoeffs_.
lookup(
"n")),
58 dNuc_(phaseChangeTwoPhaseMixtureCoeffs_.
lookup(
"dNuc")),
59 Cc_(phaseChangeTwoPhaseMixtureCoeffs_.
lookup(
"Cc")),
60 Cv_(phaseChangeTwoPhaseMixtureCoeffs_.
lookup(
"Cv")),
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)*
pos(p -
pSat())*apCoeff,
141 (-Cv_)*(1.0 + alphaNuc() - limitedAlpha1)*
neg(p -
pSat())*apCoeff
dictionary phaseChangeTwoPhaseMixtureCoeffs_
virtual bool read()=0
Read the transportProperties dictionary and update.
virtual void correct()
Correct the SchnerrSauer phaseChange model.
const objectRegistry & db() const
Return the local objectRegistry.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual void correct()=0
Correct the phaseChange model.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Generic dimensioned Type class.
GeometricField< vector, fvPatchField, volMesh > volVectorField
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.
virtual bool read()
Read the transportProperties dictionary and update.
dimensionedScalar neg(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
const dimensionedScalar & rho2() const
Return const-access to phase2 density.
const dimensionedScalar & pSat() const
Return const-access to the saturation vapour pressure.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar pos(const dimensionedScalar &ds)
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
stressControl lookup("compactNormalStress") >> compactNormalStress
An ordered pair of two objects of type <T> with first() and second() elements.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar pow3(const dimensionedScalar &ds)
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionedScalar & rho1() const
Return const-access to phase1 density.
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
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.