30 template<
class BasicPsiThermo,
class MixtureType>
37 scalarField& psiCells = this->psi_.primitiveFieldRef();
38 scalarField& muCells = this->mu_.primitiveFieldRef();
39 scalarField& alphaCells = this->alpha_.primitiveFieldRef();
43 const typename MixtureType::thermoType& mixture_ =
44 this->cellMixture(celli);
46 TCells[celli] = mixture_.THE
53 psiCells[celli] = mixture_.psi(pCells[celli], TCells[celli]);
55 muCells[celli] = mixture_.mu(pCells[celli], TCells[celli]);
56 alphaCells[celli] = mixture_.alphah(pCells[celli], TCells[celli]);
59 volScalarField::Boundary& pBf =
60 this->p_.boundaryFieldRef();
62 volScalarField::Boundary& TBf =
63 this->T_.boundaryFieldRef();
65 volScalarField::Boundary& psiBf =
66 this->psi_.boundaryFieldRef();
68 volScalarField::Boundary& heBf =
69 this->
he().boundaryFieldRef();
71 volScalarField::Boundary& muBf =
72 this->mu_.boundaryFieldRef();
74 volScalarField::Boundary& alphaBf =
75 this->alpha_.boundaryFieldRef();
90 const typename MixtureType::thermoType& mixture_ =
91 this->patchFaceMixture(
patchi, facei);
93 phe[facei] = mixture_.HE(pp[facei], pT[facei]);
95 ppsi[facei] = mixture_.psi(pp[facei], pT[facei]);
96 pmu[facei] = mixture_.mu(pp[facei], pT[facei]);
97 palpha[facei] = mixture_.alphah(pp[facei], pT[facei]);
104 const typename MixtureType::thermoType& mixture_ =
105 this->patchFaceMixture(
patchi, facei);
107 pT[facei] = mixture_.THE(phe[facei], pp[facei], pT[facei]);
109 ppsi[facei] = mixture_.psi(pp[facei], pT[facei]);
110 pmu[facei] = mixture_.mu(pp[facei], pT[facei]);
111 palpha[facei] = mixture_.alphah(pp[facei], pT[facei]);
120 template<
class BasicPsiThermo,
class MixtureType>
124 const word& phaseName
132 this->psi_.oldTime();
138 template<
class BasicPsiThermo,
class MixtureType>
145 template<
class BasicPsiThermo,
class MixtureType>
154 this->psi_.oldTime();
#define forAll(list, i)
Loop across all elements in list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
fvPatchField< scalar > fvPatchScalarField
A class for handling words, derived from string.
volScalarField scalarField(fieldObject, mesh)
virtual ~hePsiThermo()
Destructor.
Mesh data needed to do the Finite Volume discretisation.
Energy for a mixture based on compressibility.
virtual void correct()
Update properties.
#define InfoInFunction
Report an information message using Foam::Info.