37 template<
class BasicPsiThermo,
class MixtureType>
40 const scalarField& hCells = this->he_;
41 const scalarField& pCells = this->p_;
43 scalarField& TCells = this->T_.primitiveFieldRef();
44 scalarField& psiCells = this->psi_.primitiveFieldRef();
45 scalarField& muCells = this->mu_.primitiveFieldRef();
46 scalarField& alphaCells = this->alpha_.primitiveFieldRef();
50 const typename MixtureType::thermoType& mixture_ =
51 this->cellMixture(celli);
53 TCells[celli] = mixture_.THE
60 psiCells[celli] = mixture_.psi(pCells[celli], TCells[celli]);
62 muCells[celli] = mixture_.mu(pCells[celli], TCells[celli]);
63 alphaCells[celli] = mixture_.alphah(pCells[celli], TCells[celli]);
66 volScalarField::Boundary& pBf =
67 this->p_.boundaryFieldRef();
69 volScalarField::Boundary& TBf =
70 this->T_.boundaryFieldRef();
72 volScalarField::Boundary& psiBf =
73 this->psi_.boundaryFieldRef();
75 volScalarField::Boundary& heBf =
76 this->he().boundaryFieldRef();
78 volScalarField::Boundary& muBf =
79 this->mu_.boundaryFieldRef();
81 volScalarField::Boundary& alphaBf =
82 this->alpha_.boundaryFieldRef();
84 forAll(this->T_.boundaryField(), patchi)
86 fvPatchScalarField& pp = pBf[patchi];
87 fvPatchScalarField& pT = TBf[patchi];
88 fvPatchScalarField& ppsi = psiBf[patchi];
89 fvPatchScalarField& phe = heBf[patchi];
90 fvPatchScalarField& pmu = muBf[patchi];
91 fvPatchScalarField& palpha = alphaBf[patchi];
97 const typename MixtureType::thermoType& mixture_ =
98 this->patchFaceMixture(patchi, facei);
100 phe[facei] = mixture_.HE(pp[facei], pT[facei]);
102 ppsi[facei] = mixture_.psi(pp[facei], pT[facei]);
103 pmu[facei] = mixture_.mu(pp[facei], pT[facei]);
104 palpha[facei] = mixture_.alphah(pp[facei], pT[facei]);
111 const typename MixtureType::thermoType& mixture_ =
112 this->patchFaceMixture(patchi, facei);
114 pT[facei] = mixture_.THE(phe[facei], pp[facei], pT[facei]);
116 ppsi[facei] = mixture_.psi(pp[facei], pT[facei]);
117 pmu[facei] = mixture_.mu(pp[facei], pT[facei]);
118 palpha[facei] = mixture_.alphah(pp[facei], pT[facei]);
123 this->gamma_ == (this->Cp() / this->Cv());
124 this->c_ = sqrt(this->gamma_ / this->
psi());
125 this->correctQGD(this->mu_, this->alpha_);
131 template<
class BasicPsiThermo,
class MixtureType>
135 const word& phaseName
138 heThermo<BasicPsiThermo, MixtureType>(mesh, phaseName)
143 this->psi_.oldTime();
147 template<
class BasicPsiThermo,
class MixtureType>
151 const word& phaseName,
152 const word& dictionaryName
155 heThermo<BasicPsiThermo, MixtureType>(mesh, phaseName, dictionaryName)
160 this->psi_.oldTime();
166 template<
class BasicPsiThermo,
class MixtureType>
173 template<
class BasicPsiThermo,
class MixtureType>
178 InfoInFunction << endl;
182 this->psi_.oldTime();
188 Info<<
" Finished" << endl;
192 template<
class BasicPsiThermo,
class MixtureType>
virtual ~hePsiQGDThermo()
Destructor.
const volScalarField & psi
virtual void correct()
Update properties.
virtual tmp< volScalarField > gamma() const
Energy for a perfect gas mixture with QGD equations.