33 #include "addToRunTimeSelectionTable.H"
57 const dictionary& dict
60 QGDCoeffs(io, mesh, dict)
62 scalar ScQGD = 0.0, PrQGD = 1.0;
64 ScQGD_.primitiveFieldRef() = ScQGD;
65 PrQGD_.primitiveFieldRef() = PrQGD;
66 muQGD_.primitiveFieldRef() = 0.0;
70 PrQGD_.boundaryFieldRef() = PrQGD;
71 muQGD_.boundaryFieldRef() = 0.0;
83 const volScalarField nu = qgdThermo.
mu()/qgdThermo.
rho();
84 if (isA<twoPhaseIcoQGDThermo>(qgdThermo))
87 refCast<const twoPhaseIcoQGDThermo>(qgdThermo);
89 const dimensionedScalar& Tau1 = refThermo.
Tau1();
90 const dimensionedScalar& Tau2 = refThermo.
Tau2();
91 const volScalarField& alpha1 = refThermo.alpha1();
92 this->tauQGD_ = alpha1*Tau1 + (1.0 - alpha1)*Tau2;
93 Info <<
"max/min tauQGD: " << max(tauQGD_).value() <<
"/" << min(tauQGD_).value() << endl;
98 <<
"twoPhaseConstTau::correct(const QGDThermo& qgdThermo)"
99 <<
"MUST be only with two-phase solver interQHDFoam"
103 this->tauQGDf_= linearInterpolate(this->tauQGD_);
void correct(const QGDThermo &)
Thermodynamics and mechanics class for incompressible two-phase mixture of immiscible components...
const dimensionedScalar & Tau1() const
volScalarField alphauQGD_
virtual tmp< volScalarField > rho() const =0
const dimensionedScalar & Tau2() const
virtual tmp< volScalarField > mu() const =0
Abstract base class for classes implementing thermophysical properties of gases and fluids governed b...
twoPhaseConstTau(const IOobject &io, const fvMesh &mesh, const dictionary &dict)
addToRunTimeSelectionTable(QGDCoeffs, constScPrModel1, dictionary)
defineTypeNameAndDebug(constScPrModel1, 0)