Go to the documentation of this file.
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)
79 *limitedAlpha1/(1.0 + alphaNuc() - limitedAlpha1),
89 return Vnuc/(1 + Vnuc);
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
154 phaseChangeTwoPhaseMixtureCoeffs_ = subDict(
type() +
"Coeffs");
156 phaseChangeTwoPhaseMixtureCoeffs_.lookup(
"n") >> n_;
157 phaseChangeTwoPhaseMixtureCoeffs_.lookup(
"dNuc") >> dNuc_;
158 phaseChangeTwoPhaseMixtureCoeffs_.lookup(
"Cc") >> Cc_;
159 phaseChangeTwoPhaseMixtureCoeffs_.lookup(
"Cv") >> Cv_;
A class for managing temporary objects.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
SchnerrSauer(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual bool read()=0
Read the transportProperties dictionary and update.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar alphaNuc() const
Nucleation site volume-fraction.
const dimensionedScalar & pSat
virtual bool read()
Read the transportProperties dictionary and update.
Macros for easy insertion into run-time selection tables.
Generic dimensioned Type class.
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.
virtual void correct()
Correct the SchnerrSauer phaseChange model.
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual void correct()=0
Correct the phaseChange model.
An ordered pair of two objects of type <T> with first() and second() elements.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
tmp< volScalarField > pCoeff(const volScalarField &p) const
Part of the condensation and vapourisation rates.
dimensionedScalar sqrt(const dimensionedScalar &ds)
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
tmp< volScalarField > rRb(const volScalarField &limitedAlpha1) const
Reciprocal bubble radius.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar neg(const dimensionedScalar &ds)
stressControl lookup("compactNormalStress") >> compactNormalStress
dimensionedScalar pos(const dimensionedScalar &ds)