36 namespace phaseChangeTwoPhaseMixtures
51 phaseChangeTwoPhaseMixture(typeName,
U,
phi),
53 UInf_(
"UInf",
dimVelocity, phaseChangeTwoPhaseMixtureCoeffs_),
54 tInf_(
"tInf",
dimTime, phaseChangeTwoPhaseMixtureCoeffs_),
55 Cc_(
"Cc",
dimless, phaseChangeTwoPhaseMixtureCoeffs_),
56 Cv_(
"Cv",
dimless, phaseChangeTwoPhaseMixtureCoeffs_),
58 p0_(pSat().dimensions(),
Zero),
60 mcCoeff_(Cc_*
rho2()/tInf_),
75 return Pair<tmp<volScalarField>>
77 mcCoeff_*
sqr(limitedAlpha1)
90 return Pair<tmp<volScalarField>>
92 mcCoeff_*
sqr(limitedAlpha1)*(1.0 - limitedAlpha1)
93 *
pos0(
p - pSat())/
max(
p - pSat(), 0.01*pSat()),
95 (-mvCoeff_)*limitedAlpha1*
neg(
p - pSat())
108 phaseChangeTwoPhaseMixtureCoeffs_ = optionalSubDict(
type() +
"Coeffs");
110 phaseChangeTwoPhaseMixtureCoeffs_.readEntry(
"UInf", UInf_);
111 phaseChangeTwoPhaseMixtureCoeffs_.readEntry(
"tInf", tInf_);
112 phaseChangeTwoPhaseMixtureCoeffs_.readEntry(
"Cc", Cc_);
113 phaseChangeTwoPhaseMixtureCoeffs_.readEntry(
"Cv", Cv_);
115 mcCoeff_ = Cc_*
rho2()/tInf_;
116 mvCoeff_ = Cv_*
rho2()/(0.5*
rho1()*
sqr(UInf_)*tInf_);
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
virtual bool read()=0
Read the transportProperties dictionary and update.
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionSet dimless
Dimensionless.
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensionedScalar neg(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
An ordered pair of two objects of type <T> with first() and second() elements.
const objectRegistry & db() const noexcept
Return the local objectRegistry.
const dimensionedScalar & pSat() const
Return const-access to the saturation vapour pressure.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
dimensionedScalar pos0(const dimensionedScalar &ds)
Kunz(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(psi *p+alphal *rhol0+((alphav *psiv+alphal *psil) - psi) *pSat, rhoMin);# 1 "/home/chef2/andy/OpenFOAM/release/v2312/OpenFOAM-v2312/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H" 1{ alphav=clamp((rho - rholSat)/(rhovSat - rholSat), zero_one{});alphal=1.0 - alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
defineTypeNameAndDebug(combustionModel, 0)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
virtual void correct()
Correct the Kunz phaseChange model.
virtual bool read()
Read the transportProperties dictionary and update.
dimensionSet clamp(const dimensionSet &a, const dimensionSet &range)
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
static constexpr const zero Zero
Global zero (0)
const dimensionSet dimVelocity