32 template<
class BasicThermo,
class MixtureType>
40 if (isA<gradientEnergyFvPatchScalarField>(hbf[
patchi]))
42 refCast<gradientEnergyFvPatchScalarField>(hbf[
patchi]).gradient()
43 = hbf[
patchi].fvPatchField::snGrad();
45 else if (isA<mixedEnergyFvPatchScalarField>(hbf[
patchi]))
47 refCast<mixedEnergyFvPatchScalarField>(hbf[
patchi]).refGrad()
48 = hbf[
patchi].fvPatchField::snGrad();
54 template<
class BasicThermo,
class MixtureType>
58 const scalarField& pCells = this->p_.internalField();
59 const scalarField& TCells = this->T_.internalField();
64 this->cellMixture(celli).HE(pCells[celli], TCells[celli]);
71 this->p_.boundaryField()[
patchi],
72 this->T_.boundaryField()[
patchi],
77 this->heBoundaryCorrection(he_);
84 template<
class BasicThermo,
class MixtureType>
91 BasicThermo(
mesh, phaseName),
92 MixtureType(*
this,
mesh, phaseName),
98 BasicThermo::phasePropertyName
100 MixtureType::thermoType::heName()
102 mesh.time().timeName(),
109 this->heBoundaryTypes(),
110 this->heBoundaryBaseTypes()
117 template<
class BasicThermo,
class MixtureType>
122 const word& phaseName
126 MixtureType(*
this,
mesh, phaseName),
132 BasicThermo::phasePropertyName
134 MixtureType::thermoType::heName()
136 mesh.time().timeName(),
143 this->heBoundaryTypes(),
144 this->heBoundaryBaseTypes()
153 template<
class BasicThermo,
class MixtureType>
160 template<
class BasicThermo,
class MixtureType>
176 mesh.time().timeName(),
195 this->cellMixture(celli).HE(pCells[celli], TCells[celli]);
207 this->patchFaceMixture(
patchi, facei).HE(pp[facei], Tp[facei]);
215 template<
class BasicThermo,
class MixtureType>
228 he[celli] = this->cellMixture(
cells[celli]).HE(
p[celli],
T[celli]);
235 template<
class BasicThermo,
class MixtureType>
249 this->patchFaceMixture(
patchi, facei).HE(
p[facei],
T[facei]);
256 template<
class BasicThermo,
class MixtureType>
269 mesh.time().timeName(),
285 hcCells[celli] = this->cellMixture(celli).Hc();
294 hcp[facei] = this->patchFaceMixture(
patchi, facei).Hc();
302 template<
class BasicThermo,
class MixtureType>
316 this->patchFaceMixture(
patchi, facei).Cp(
p[facei],
T[facei]);
323 template<
class BasicThermo,
class MixtureType>
336 mesh.time().timeName(),
352 this->cellMixture(celli).Cp(this->p_[celli], this->T_[celli]);
364 this->patchFaceMixture(
patchi, facei).Cp(pp[facei], pT[facei]);
372 template<
class BasicThermo,
class MixtureType>
387 this->patchFaceMixture(
patchi, facei).Cv(
p[facei],
T[facei]);
394 template<
class BasicThermo,
class MixtureType>
407 mesh.time().timeName(),
423 this->cellMixture(celli).Cv(this->p_[celli], this->T_[celli]);
430 this->p_.boundaryField()[
patchi],
431 this->T_.boundaryField()[
patchi],
440 template<
class BasicThermo,
class MixtureType>
454 this->patchFaceMixture(
patchi, facei).gamma(
p[facei],
T[facei]);
461 template<
class BasicThermo,
class MixtureType>
474 mesh.time().timeName(),
490 this->cellMixture(celli).gamma(this->p_[celli], this->T_[celli]);
501 pgamma[facei] = this->patchFaceMixture(
patchi, facei).gamma
513 template<
class BasicThermo,
class MixtureType>
527 this->patchFaceMixture(
patchi, facei).Cpv(
p[facei],
T[facei]);
534 template<
class BasicThermo,
class MixtureType>
547 mesh.time().timeName(),
563 this->cellMixture(celli).Cpv(this->p_[celli], this->T_[celli]);
575 this->patchFaceMixture(
patchi, facei).Cpv(pp[facei], pT[facei]);
583 template<
class BasicThermo,
class MixtureType>
597 this->patchFaceMixture(
patchi, facei).cpBycpv(
p[facei],
T[facei]);
604 template<
class BasicThermo,
class MixtureType>
617 mesh.time().timeName(),
632 cpByCpv[celli] = this->cellMixture(celli).cpBycpv
647 pCpByCpv[facei] = this->patchFaceMixture(
patchi, facei).cpBycpv
659 template<
class BasicThermo,
class MixtureType>
674 this->cellMixture(
cells[celli]).THE(
h[celli],
p[celli], T0[celli]);
681 template<
class BasicThermo,
class MixtureType>
695 T[facei] = this->patchFaceMixture
699 ).THE(
h[facei],
p[facei], T0[facei]);
706 template<
class BasicThermo,
class MixtureType>
711 kappa().rename(
"kappa");
716 template<
class BasicThermo,
class MixtureType>
725 this->p_.boundaryField()[
patchi],
726 this->T_.boundaryField()[
patchi],
728 )*this->alpha_.boundaryField()[
patchi];
732 template<
class BasicThermo,
class MixtureType>
740 kappaEff().rename(
"kappaEff");
745 template<
class BasicThermo,
class MixtureType>
756 this->p_.boundaryField()[
patchi],
757 this->T_.boundaryField()[
patchi],
761 this->alpha_.boundaryField()[
patchi]
767 template<
class BasicThermo,
class MixtureType>
780 template<
class BasicThermo,
class MixtureType>
791 this->p_.boundaryField()[
patchi],
792 this->T_.boundaryField()[
patchi],
796 this->alpha_.boundaryField()[
patchi]
802 template<
class BasicThermo,
class MixtureType>