34 namespace twoPhaseChangeModels
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
100 min(
max(mixture_.alpha1(), scalar(0)), scalar(1))
105 limitedAlpha1*mixture_.rho1()
106 + (scalar(1) - limitedAlpha1)*mixture_.rho2()
110 (3*mixture_.rho1()*mixture_.rho2())*
sqrt(2/(3*mixture_.rho1()))
111 *rRb(limitedAlpha1)/(
rho*
sqrt(
mag(p - pSat()) + 0.01*pSat()));
125 min(
max(mixture_.alpha1(), scalar(0)), scalar(1))
130 Cc_*limitedAlpha1*pCoeff*
max(p - pSat(), p0_),
132 Cv_*(1.0 + alphaNuc() - limitedAlpha1)*pCoeff*
min(p - pSat(), p0_)
147 min(
max(mixture_.alpha1(), scalar(0)), scalar(1))
154 Cc_*(1.0 - limitedAlpha1)*
pos0(p - pSat())*apCoeff,
156 (-Cv_)*(1.0 + alphaNuc() - limitedAlpha1)*
neg(p - pSat())*apCoeff
171 twoPhaseChangeModelCoeffs_ = optionalSubDict(
type() +
"Coeffs");
173 twoPhaseChangeModelCoeffs_.lookup(
"n") >> n_;
174 twoPhaseChangeModelCoeffs_.lookup(
"dNuc") >> dNuc_;
175 twoPhaseChangeModelCoeffs_.lookup(
"Cc") >> Cc_;
176 twoPhaseChangeModelCoeffs_.lookup(
"Cv") >> Cv_;
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.
Abstract base class for cavitation models.
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-10/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H" 1{ alphav=max(min((rho - rholSat)/(rhovSat - rholSat), scalar(1)), scalar(0));alphal=1.0 - alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
dimensionedScalar sqrt(const dimensionedScalar &ds)
const dimensionSet dimless
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
An ordered pair of two objects of type <T> with first() and second() elements.
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)
An immiscible incompressible two-phase mixture transport model.
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.
virtual bool read()
Read the phaseProperties dictionary and update.
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.