33 namespace twoPhaseChangeModels
49 UInf_(
"UInf",
dimVelocity, twoPhaseChangeModelCoeffs_),
50 tInf_(
"tInf",
dimTime, twoPhaseChangeModelCoeffs_),
51 Cc_(
"Cc",
dimless, twoPhaseChangeModelCoeffs_),
52 Cv_(
"Cv",
dimless, twoPhaseChangeModelCoeffs_),
54 p0_(
"0", pSat().dimensions(), 0.0),
56 mcCoeff_(Cc_/(0.5*
sqr(UInf_)*tInf_)),
57 mvCoeff_(Cv_*mixture_.rho1()/(0.5*
sqr(UInf_)*tInf_*mixture_.rho2()))
73 mcCoeff_*
max(p - pSat(), p0_),
74 mvCoeff_*
min(p - pSat(), p0_)
87 min(
max(mixture_.alpha1(), scalar(0)), scalar(1))
92 mcCoeff_*(1.0 - limitedAlpha1)*
pos0(p - pSat()),
93 (-mvCoeff_)*limitedAlpha1*
neg(p - pSat())
108 twoPhaseChangeModelCoeffs_ = optionalSubDict(
type() +
"Coeffs");
110 twoPhaseChangeModelCoeffs_.lookup(
"UInf") >> UInf_;
111 twoPhaseChangeModelCoeffs_.lookup(
"tInf") >> tInf_;
112 twoPhaseChangeModelCoeffs_.lookup(
"Cc") >> Cc_;
113 twoPhaseChangeModelCoeffs_.lookup(
"Cv") >> Cv_;
115 mcCoeff_ = Cc_/(0.5*
sqr(UInf_)*tInf_);
116 mvCoeff_ = Cv_*mixture_.rho1()/(0.5*
sqr(UInf_)*tInf_*mixture_.rho2());
defineTypeNameAndDebug(cavitationModel, 0)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Abstract base class for cavitation models.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimless
dimensionedScalar neg(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
const dimensionSet dimTime
An ordered pair of two objects of type <T> with first() and second() elements.
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.
virtual bool read()
Read the transportProperties dictionary and update.
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-9/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()
virtual void correct()=0
Correct the phaseChange model.
dimensionedScalar pos0(const dimensionedScalar &ds)
const dimensionSet dimVelocity
addToRunTimeSelectionTable(cavitationModel, Kunz, dictionary)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
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.
Merkle(const immiscibleIncompressibleTwoPhaseMixture &mixture)
Construct for mixture.
virtual void correct()
Correct the Merkle phaseChange model.
virtual bool read()
Read the transportProperties dictionary and update.