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))
#define forAll(list, i)
Loop across all elements in list.
tmp< fv::convectionScheme< scalar > > mvConvection(fv::convectionScheme< scalar >::New(mesh, fields, phi, mesh.schemes().div("div(phi,ft_b_ha_hau)")))
Generic GeometricField class.
void correctBoundaryConditions()
Correct boundary field.
virtual void correct()=0
Update properties.
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....
void relax(const scalar alpha)
Relax matrix (for steady-state solution).
SolverPerformance< Type > solve(const dictionary &)
Solve segregated or coupled returning the solution statistics.
const fvSchemes & schemes() const
Return the fvSchemes.
ITstream & div(const word &name) const
Abstract base class for convection schemes.
bool solveSpecie(const label speciei) const
Should the given specie be solved for? I.e., is it active and.
void normaliseY()
Normalise the mass fractions by clipping positive and deriving.
Reaction base-class holding the specie names and coefficients.
Foam::fvConstraints & fvConstraints() const
Return the fvConstraints that are created on demand.
const fvMesh & mesh
Region mesh.
Buoyancy related data for the Foam::solvers::isothermalFluid solver module when solving buoyant cases...
uniformDimensionedVectorField g
Gravitational acceleration.
const surfaceScalarField & phi
Mass-flux field.
volScalarField K
Kinetic energy field.
const volVectorField & U
Velocity field.
tmp< volScalarField::Internal > pressureWork(const tmp< volScalarField::Internal > &) const
Adds the mesh-motion work to the pressure work term provided.
const volScalarField & rho
Reference to the continuity density field.
volScalarField::Internal dpdt
Rate of change of the pressure.
const volScalarField & p
Reference to the pressure field.
virtual void thermophysicalPredictor()
Construct and solve the energy equation,.
const PtrList< volScalarField > & Y
Reference to the composition.
fluidMulticomponentThermo & thermo_
PtrList< volScalarField > & Y_
autoPtr< fluidMulticomponentThermophysicalTransportModel > thermophysicalTransport
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
A class for managing temporary objects.
Calculate 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)