38 #include "volFields.H"
39 #include "surfaceFields.H"
48 Foam::QGDThermo::QGDThermo(
const fvMesh& mesh,
const dictionary& dict)
54 Foam::qgd::QGDCoeffs::New
56 dict_.subDict(
"QGD").get<word>(
"QGDCoeffs"),
61 implicitDiffusion_(true)
72 if (dict_.subDict(
"QGD").found(
"implicitDiffusion"))
74 dict_.subDict(
"QGD").lookup(
"implicitDiffusion") >> implicitDiffusion_;
78 implicitDiffusion_ =
true;
86 qgdCoeffsPtr_->correct(*
this);
88 const volScalarField& muQGD = this->muQGD();
89 const volScalarField& alphauQGD = this->alphauQGD();
91 forAll(mu.primitiveField(), celli)
93 mu.primitiveFieldRef()[celli] +=
94 muQGD.primitiveField()[celli];
96 alphau.primitiveFieldRef()[celli] +=
97 alphauQGD.primitiveField()[celli];
100 forAll(mu.boundaryField(), patchi)
102 forAll(mu.boundaryField()[patchi], facei)
104 mu.boundaryFieldRef()[patchi][facei] +=
105 muQGD.boundaryField()[patchi][facei];
107 alphau.boundaryFieldRef()[patchi][facei] +=
108 alphauQGD.boundaryField()[patchi][facei];
115 return qgdCoeffsPtr_->hQGD();
120 return qgdCoeffsPtr_->tauQGD();
125 return qgdCoeffsPtr_->hQGDf();
130 return qgdCoeffsPtr_->tauQGDf();
135 return qgdCoeffsPtr_->muQGD();
140 return qgdCoeffsPtr_->alphauQGD();
145 return implicitDiffusion_;
150 return qgdCoeffsPtr_();
const volScalarField & tauQGD() const
const surfaceScalarField & hQGDf() const
Base class for all classes describing QGD model coefficients. Provides interfaces for accessing QGD/Q...
Switch implicitDiffusion() const
const volScalarField & muQGD() const
const volScalarField & alphauQGD() const
qgd::QGDCoeffs & qgdCoeffs()
Abstract base class for classes implementing thermophysical properties of gases and fluids governed b...
defineTypeNameAndDebug(psiQGDReactionThermo, 0)
const volScalarField & hQGD() const
void correctQGD(volScalarField &mu, volScalarField &alphau)
const surfaceScalarField & tauQGDf() const