31 #include "addToRunTimeSelectionTable.H"
53 const dictionary& dict
56 QGDCoeffs(io, mesh, dict)
58 scalar ScQGD = 1.0, PrQGD = 1.0;
60 dict.lookup(
"ScQGD") >> ScQGD;
61 dict.lookup(
"PrQGD") >> PrQGD;
63 ScQGD_.primitiveFieldRef() = ScQGD;
66 ScQGD_.boundaryFieldRef() = ScQGD;
67 PrQGD_.boundaryFieldRef() = PrQGD;
78 const volScalarField& cSound = qgdThermo.
c();
79 const volScalarField&
p = qgdThermo.
p();
80 const volScalarField& mu = qgdThermo.
mu();
82 this->tauQGDf_= linearInterpolate(this->aQGD_ / cSound) * hQGDf_;
83 this->tauQGD_ = this->aQGD_ * this->hQGD_ / cSound;
85 forAll(p.primitiveField(), celli)
87 muQGD_.primitiveFieldRef()[celli] =
88 p.primitiveField()[celli] *
89 ScQGD_.primitiveField()[celli] *
90 tauQGD_.primitiveField()[celli];
92 alphauQGD_.primitiveFieldRef()[celli] = muQGD_.primitiveField()[celli] /
93 PrQGD_.primitiveField()[celli];
96 forAll(p.boundaryField(), patchi)
98 forAll(p.boundaryField()[patchi], facei)
100 muQGD_.boundaryFieldRef()[patchi][facei] =
101 p.boundaryField()[patchi][facei] *
102 ScQGD_.boundaryField()[patchi][facei] *
103 tauQGD_.boundaryField()[patchi][facei];
105 alphauQGD_.boundaryFieldRef()[patchi][facei] =
106 muQGD_.boundaryFieldRef()[patchi][facei] /
107 PrQGD_.boundaryField()[patchi][facei];
112 this->tauQGD_ += mu / (p * this->ScQGD_);
virtual const volScalarField & c() const =0
virtual tmp< volScalarField > mu() const =0
void correct(const QGDThermo &)
Abstract base class for classes implementing thermophysical properties of gases and fluids governed b...
constScPrModel2(const IOobject &io, const fvMesh &mesh, const dictionary &dict)
virtual const volScalarField & p() const =0
addToRunTimeSelectionTable(QGDCoeffs, constScPrModel1, dictionary)
defineTypeNameAndDebug(constScPrModel1, 0)