37 namespace phaseChangeTwoPhaseMixtures
42 phaseChangeTwoPhaseMixture,
58 phaseChangeTwoPhaseMixture(typeName,
U,
phi),
61 dNuc_(
"dNuc",
dimLength, phaseChangeTwoPhaseMixtureCoeffs_),
62 Cc_(
"Cc",
dimless, phaseChangeTwoPhaseMixtureCoeffs_),
63 Cv_(
"Cv",
dimless, phaseChangeTwoPhaseMixtureCoeffs_),
65 p0_(pSat().dimensions(),
Zero)
74 Foam::phaseChangeTwoPhaseMixtures::SchnerrSauer::rRb
82 *limitedAlpha1/(1.0 + alphaNuc() - limitedAlpha1),
89 Foam::phaseChangeTwoPhaseMixtures::SchnerrSauer::alphaNuc()
const
92 return Vnuc/(1 + Vnuc);
97 Foam::phaseChangeTwoPhaseMixtures::SchnerrSauer::pCoeff
105 limitedAlpha1*
rho1() + (scalar(1) - limitedAlpha1)*
rho2()
110 *rRb(limitedAlpha1)/(
rho*
sqrt(
mag(
p - pSat()) + 0.01*pSat()));
122 return Pair<tmp<volScalarField>>
124 Cc_*limitedAlpha1*pCoeff*
max(
p - pSat(), p0_),
126 Cv_*(1.0 + alphaNuc() - limitedAlpha1)*pCoeff*
min(
p - pSat(), p0_)
140 return Pair<tmp<volScalarField>>
142 Cc_*(1.0 - limitedAlpha1)*
pos0(
p - pSat())*apCoeff,
144 (-Cv_)*(1.0 + alphaNuc() - limitedAlpha1)*
neg(
p - pSat())*apCoeff
157 phaseChangeTwoPhaseMixtureCoeffs_ = optionalSubDict(
type() +
"Coeffs");
159 phaseChangeTwoPhaseMixtureCoeffs_.readEntry(
"n", n_);
160 phaseChangeTwoPhaseMixtureCoeffs_.readEntry(
"dNuc", dNuc_);
161 phaseChangeTwoPhaseMixtureCoeffs_.readEntry(
"Cc", Cc_);
162 phaseChangeTwoPhaseMixtureCoeffs_.readEntry(
"Cv", Cv_);