38 template<
class BasicPsiThermo,
class MixtureType>
41 const scalarField& hCells = this->he();
42 const scalarField& pCells = this->p_;
44 scalarField& TCells = this->T_.primitiveFieldRef();
45 scalarField& psiCells = this->psi_.primitiveFieldRef();
46 scalarField& rhoCells = this->rho_.primitiveFieldRef();
47 scalarField& muCells = this->mu_.primitiveFieldRef();
48 scalarField& alphaCells = this->alpha_.primitiveFieldRef();
52 const typename MixtureType::thermoType& mixture_ =
53 this->cellMixture(celli);
55 TCells[celli] = mixture_.THE
62 psiCells[celli] = mixture_.psi(pCells[celli], TCells[celli]);
63 rhoCells[celli] = mixture_.rho(pCells[celli], TCells[celli]);
65 muCells[celli] = mixture_.mu(pCells[celli], TCells[celli]);
66 alphaCells[celli] = mixture_.alphah(pCells[celli], TCells[celli]);
69 volScalarField::Boundary& pBf =
70 this->p_.boundaryFieldRef();
72 volScalarField::Boundary& TBf =
73 this->T_.boundaryFieldRef();
75 volScalarField::Boundary& psiBf =
76 this->psi_.boundaryFieldRef();
78 volScalarField::Boundary& rhoBf =
79 this->rho_.boundaryFieldRef();
81 volScalarField::Boundary& heBf =
82 this->he().boundaryFieldRef();
84 volScalarField::Boundary& muBf =
85 this->mu_.boundaryFieldRef();
87 volScalarField::Boundary& alphaBf =
88 this->alpha_.boundaryFieldRef();
91 forAll(this->T_.boundaryField(), patchi)
93 fvPatchScalarField& pp = pBf[patchi];
94 fvPatchScalarField& pT = TBf[patchi];
95 fvPatchScalarField& ppsi = psiBf[patchi];
96 fvPatchScalarField& prho = rhoBf[patchi];
97 fvPatchScalarField& phe = heBf[patchi];
98 fvPatchScalarField& pmu = muBf[patchi];
99 fvPatchScalarField& palpha = alphaBf[patchi];
105 const typename MixtureType::thermoType& mixture_ =
106 this->patchFaceMixture(patchi, facei);
108 phe[facei] = mixture_.HE(pp[facei], pT[facei]);
110 ppsi[facei] = mixture_.psi(pp[facei], pT[facei]);
111 prho[facei] = mixture_.rho(pp[facei], pT[facei]);
112 pmu[facei] = mixture_.mu(pp[facei], pT[facei]);
113 palpha[facei] = mixture_.alphah(pp[facei], pT[facei]);
120 const typename MixtureType::thermoType& mixture_ =
121 this->patchFaceMixture(patchi, facei);
123 pT[facei] = mixture_.THE(phe[facei], pp[facei], pT[facei]);
125 ppsi[facei] = mixture_.psi(pp[facei], pT[facei]);
126 prho[facei] = mixture_.rho(pp[facei], pT[facei]);
127 pmu[facei] = mixture_.mu(pp[facei], pT[facei]);
128 palpha[facei] = mixture_.alphah(pp[facei], pT[facei]);
133 if (!this->isochoric())
135 this->gamma_ == (this->Cp() / this->Cv());
136 this->c_ = sqrt(this->gamma_ / this->
psi());
138 this->correctQGD(this->mu_, this->alpha_);
144 template<
class BasicPsiThermo,
class MixtureType>
148 const word& phaseName
151 heThermo<BasicPsiThermo, MixtureType>(mesh, phaseName)
155 this->psi_.oldTime();
158 template<
class BasicPsiThermo,
class MixtureType>
162 const word& phaseName,
163 const word& dictionaryName
166 heThermo<BasicPsiThermo, MixtureType>(mesh, phaseName, dictionaryName)
170 this->psi_.oldTime();
176 template<
class BasicPsiThermo,
class MixtureType>
183 template<
class BasicPsiThermo,
class MixtureType>
188 InfoInFunction << endl;
192 this->psi_.oldTime();
198 Info<<
" Finished" << endl;
virtual ~heRhoQGDThermo()
Destructor.
const volScalarField & psi
virtual void correct()
Update properties.