30 template<
class BasicRhoThermo,
class MixtureType>
37 scalarField& CpCells = this->Cp_.primitiveFieldRef();
38 scalarField& CvCells = this->Cv_.primitiveFieldRef();
39 scalarField& psiCells = this->psi_.primitiveFieldRef();
40 scalarField& rhoCells = this->rho_.primitiveFieldRef();
41 scalarField& muCells = this->mu_.primitiveFieldRef();
42 scalarField& kappaCells = this->kappa_.primitiveFieldRef();
46 const typename MixtureType::thermoMixtureType& thermoMixture =
47 this->cellThermoMixture(celli);
49 const typename MixtureType::transportMixtureType& transportMixture =
50 this->cellTransportMixture(celli, thermoMixture);
52 TCells[celli] = thermoMixture.THE
59 CpCells[celli] = thermoMixture.Cp(pCells[celli], TCells[celli]);
60 CvCells[celli] = thermoMixture.Cv(pCells[celli], TCells[celli]);
61 psiCells[celli] = thermoMixture.psi(pCells[celli], TCells[celli]);
62 rhoCells[celli] = thermoMixture.rho(pCells[celli], TCells[celli]);
64 muCells[celli] = transportMixture.mu(pCells[celli], TCells[celli]);
66 transportMixture.kappa(pCells[celli], TCells[celli]);
69 volScalarField::Boundary& pBf =
70 this->p_.boundaryFieldRef();
72 volScalarField::Boundary& TBf =
73 this->T_.boundaryFieldRef();
75 volScalarField::Boundary& CpBf =
76 this->Cp_.boundaryFieldRef();
78 volScalarField::Boundary& CvBf =
79 this->Cv_.boundaryFieldRef();
81 volScalarField::Boundary& psiBf =
82 this->psi_.boundaryFieldRef();
84 volScalarField::Boundary& rhoBf =
85 this->rho_.boundaryFieldRef();
87 volScalarField::Boundary& heBf =
88 this->
he().boundaryFieldRef();
90 volScalarField::Boundary& muBf =
91 this->mu_.boundaryFieldRef();
93 volScalarField::Boundary& kappaBf =
94 this->kappa_.boundaryFieldRef();
112 const typename MixtureType::thermoMixtureType& thermoMixture =
113 this->patchFaceThermoMixture(
patchi, facei);
115 const typename MixtureType::transportMixtureType&
117 this->patchFaceTransportMixture
118 (
patchi, facei, thermoMixture);
120 phe[facei] = thermoMixture.HE(pp[facei], pT[facei]);
122 pCp[facei] = thermoMixture.Cp(pp[facei], pT[facei]);
123 pCv[facei] = thermoMixture.Cv(pp[facei], pT[facei]);
124 ppsi[facei] = thermoMixture.psi(pp[facei], pT[facei]);
125 prho[facei] = thermoMixture.rho(pp[facei], pT[facei]);
127 pmu[facei] = transportMixture.mu(pp[facei], pT[facei]);
128 pkappa[facei] = transportMixture.kappa(pp[facei], pT[facei]);
135 const typename MixtureType::thermoMixtureType& thermoMixture =
136 this->patchFaceThermoMixture(
patchi, facei);
138 const typename MixtureType::transportMixtureType&
140 this->patchFaceTransportMixture
141 (
patchi, facei, thermoMixture);
143 pT[facei] = thermoMixture.THE(phe[facei], pp[facei], pT[facei]);
145 pCp[facei] = thermoMixture.Cp(pp[facei], pT[facei]);
146 pCv[facei] = thermoMixture.Cv(pp[facei], pT[facei]);
147 ppsi[facei] = thermoMixture.psi(pp[facei], pT[facei]);
148 prho[facei] = thermoMixture.rho(pp[facei], pT[facei]);
150 pmu[facei] = transportMixture.mu(pp[facei], pT[facei]);
151 pkappa[facei] = transportMixture.kappa(pp[facei], pT[facei]);
160 template<
class BasicRhoThermo,
class MixtureType>
164 const word& phaseName
175 template<
class BasicRhoThermo,
class MixtureType>
182 template<
class BasicRhoThermo,
class MixtureType>
#define forAll(list, i)
Loop across all elements in list.
heRhoThermo(const fvMesh &, const word &phaseName)
Construct from mesh and phase name.
virtual ~heRhoThermo()
Destructor.
virtual void correct()
Update properties.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label calculate(const fvMesh &mesh, const labelHashSet &patchIDs, const scalar minFaceFraction, GeometricField< scalar, PatchField, GeoMesh > &distance)
Calculate distance data from patches.
fvPatchField< scalar > fvPatchScalarField
A class for handling words, derived from string.
volScalarField scalarField(fieldObject, mesh)
Mesh data needed to do the Finite Volume discretisation.
Energy for a mixture based on density.
#define InfoInFunction
Report an information message using Foam::Info.