30 template<
class MixtureType>
33 const scalarField& hCells = this->h_.internalField();
34 const scalarField& pCells = this->p_.internalField();
40 scalarField& alphaCells = this->alpha_.internalField();
44 const typename MixtureType::thermoType& mixture_ =
45 this->cellMixture(celli);
47 TCells[celli] = mixture_.TH(hCells[celli], TCells[celli]);
48 psiCells[celli] = mixture_.psi(pCells[celli], TCells[celli]);
49 rhoCells[celli] = mixture_.rho(pCells[celli], TCells[celli]);
51 muCells[celli] = mixture_.mu(TCells[celli]);
52 alphaCells[celli] = mixture_.alpha(TCells[celli]);
71 const typename MixtureType::thermoType& mixture_ =
72 this->patchFaceMixture(
patchi, facei);
74 ph[facei] = mixture_.H(pT[facei]);
76 ppsi[facei] = mixture_.psi(pp[facei], pT[facei]);
77 prho[facei] = mixture_.rho(pp[facei], pT[facei]);
78 pmu[facei] = mixture_.mu(pT[facei]);
79 palpha[facei] = mixture_.alpha(pT[facei]);
86 const typename MixtureType::thermoType& mixture_ =
87 this->patchFaceMixture(
patchi, facei);
89 pT[facei] = mixture_.TH(ph[facei], pT[facei]);
91 ppsi[facei] = mixture_.psi(pp[facei], pT[facei]);
92 prho[facei] = mixture_.rho(pp[facei], pT[facei]);
93 pmu[facei] = mixture_.mu(pT[facei]);
94 palpha[facei] = mixture_.alpha(pT[facei]);
103 template<
class MixtureType>
107 MixtureType(*this, mesh),
121 this->hBoundaryTypes()
129 hCells[celli] = this->cellMixture(celli).H(TCells[celli]);
146 template<
class MixtureType>
153 template<
class MixtureType>
158 Info<<
"entering hRhoThermo<MixtureType>::correct()" <<
endl;
165 Info<<
"exiting hRhoThermo<MixtureType>::correct()" <<
endl;
170 template<
class MixtureType>
182 h[celli] = this->cellMixture(cells[celli]).H(T[celli]);
189 template<
class MixtureType>
201 h[facei] = this->patchFaceMixture(patchi, facei).H(T[facei]);
208 template<
class MixtureType>
220 cp[facei] = this->patchFaceMixture(patchi, facei).Cp(T[facei]);
227 template<
class MixtureType>
253 cp[celli] = this->cellMixture(celli).Cp(this->T_[celli]);
263 pCp[facei] = this->patchFaceMixture(patchi, facei).Cp(pT[facei]);
271 template<
class MixtureType>
283 cv[facei] = this->patchFaceMixture(patchi, facei).Cv(T[facei]);
290 template<
class MixtureType>
316 cv[celli] = this->cellMixture(celli).Cv(this->T_[celli]);
329 template<
class MixtureType>
334 MixtureType::read(*
this);