fvScalarMatrix EEqn(fvm::div(phi, he)+(he.name()=="e" ? fvc::div(phi, volScalarField("Ekp", 0.5 *magSqr(U)+p/rho)) :fvc::div(phi, volScalarField("K", 0.5 *magSqr(U))))+thermophysicalTransport->divq(he)==fvModels.source(rho, he))
Generic GeometricField class.
const word & name() const
Return name.
virtual void correct()=0
Update properties.
virtual const volScalarField & T() const =0
Temperature [K].
virtual const volScalarField & he() const =0
Enthalpy/Internal energy [J/kg].
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
const surfaceScalarField & phi() const
Return cell face motion fluxes.
bool moving() const
Is mesh moving.
Foam::fvModels & fvModels() const
Return the fvModels that are created on demand.
Foam::fvConstraints & fvConstraints() const
Return the fvConstraints that are created on demand.
const fvMesh & mesh
Region mesh.
virtual void thermophysicalPredictor()
Construct and solve the energy equation,.
tmp< surfaceVectorField > U_neg
tmp< surfaceVectorField > U_pos
tmp< surfaceVectorField > devTau
tmp< surfaceScalarField > p_neg
tmp< surfaceScalarField > aphiv_pos
tmp< surfaceScalarField > neg
const psiThermo & thermo
Reference to the fluid thermophysical properties.
volScalarField K
Kinetic energy field.
psiThermo & thermo_
Reference to the fluid thermophysical properties.
tmp< surfaceScalarField > p_pos
tmp< surfaceScalarField > rho_neg
tmp< surfaceScalarField > pos
tmp< surfaceScalarField > aSf
tmp< surfaceScalarField > a_pos
autoPtr< fluidThermoThermophysicalTransportModel > thermophysicalTransport
const volScalarField & rho
Reference to the continuity density field.
tmp< surfaceScalarField > a_neg
tmp< surfaceScalarField > rho_pos
tmp< surfaceScalarField > aphiv_neg
Calculate the first temporal derivative.
Calculate the divergence of the given field.
Calculate the matrix for the first temporal derivative.
tmp< VolField< Type > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
tmp< VolField< Type > > div(const SurfaceField< Type > &ssf)
tmp< fvMatrix< Type > > ddt(const VolField< Type > &vf)
dimensioned< scalar > magSqr(const dimensioned< Type > &)