31 #include "addToRunTimeSelectionTable.H"
53 const dictionary& dict
56 QGDCoeffs(io, mesh, dict)
59 if (dict.found(
"PrQGD"))
61 dict.lookup(
"PrQGD") >> PrQGD;
63 PrQGD_.primitiveFieldRef() = PrQGD;
64 PrQGD_.boundaryFieldRef() = PrQGD;
69 mesh.time().timeName(),
71 IOobject::READ_IF_PRESENT,
75 if (ScHeader.typeHeaderOk<volScalarField>())
78 ScQGD_.writeOpt() = IOobject::AUTO_WRITE;
83 if (dict.found(
"ScQGD"))
85 dict.lookup(
"ScQGD") >> ScQGD;
87 ScQGD_.primitiveFieldRef() = ScQGD;
88 ScQGD_.boundaryFieldRef() = ScQGD;
100 const volScalarField& cSound = qgdThermo.
c();
101 const volScalarField&
p = qgdThermo.
p();
103 this->tauQGDf_= linearInterpolate(this->aQGD_ / cSound) * hQGDf_;
104 this->tauQGD_ = this->aQGD_ * this->hQGD_ / cSound;
106 forAll(p.primitiveField(), celli)
108 muQGD_.primitiveFieldRef()[celli] =
109 p.primitiveField()[celli] *
110 ScQGD_.primitiveField()[celli] *
111 tauQGD_.primitiveField()[celli];
113 alphauQGD_.primitiveFieldRef()[celli] = muQGD_.primitiveField()[celli] /
114 PrQGD_.primitiveField()[celli];
117 forAll(p.boundaryField(), patchi)
119 forAll(p.boundaryField()[patchi], facei)
121 muQGD_.boundaryFieldRef()[patchi][facei] =
122 p.boundaryField()[patchi][facei] *
123 ScQGD_.boundaryField()[patchi][facei] *
124 tauQGD_.boundaryField()[patchi][facei];
126 alphauQGD_.boundaryFieldRef()[patchi][facei] =
127 muQGD_.boundaryFieldRef()[patchi][facei] /
128 PrQGD_.boundaryField()[patchi][facei];
virtual const volScalarField & c() const =0
Base class for all classes describing QGD model coefficients. Provides interfaces for accessing QGD/Q...
void correct(const QGDThermo &)
constScPrModel1(const IOobject &io, const fvMesh &mesh, const dictionary &dict)
Abstract base class for classes implementing thermophysical properties of gases and fluids governed b...
Class describing QGD model coefficients using constant values for Sc^{QGD}, Pr^{QGD} and specified f...
virtual const volScalarField & p() const =0
addToRunTimeSelectionTable(QGDCoeffs, constScPrModel1, dictionary)
defineTypeNameAndDebug(constScPrModel1, 0)