EEqn.H
Go to the documentation of this file.
1 {
2  volScalarField& he = thermo.he();
3 
5  (
6  fvm::ddt(rho, he) + fvm::div(phi, he)
7  + fvc::ddt(rho, K) + fvc::div(phi, K)
8  + (
9  he.name() == "e"
11  : -dpdt
12  )
13  + thermophysicalTransport->divq(he)
14  ==
15  rho*(U&g)
16  + fvModels.source(rho, he)
17  );
18 
19  EEqn.relax();
20 
22 
23  EEqn.solve();
24 
26 
27  thermo.correct();
28 }
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
fluidReactionThermo & thermo
Definition: createFields.H:28
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
CGAL::Exact_predicates_exact_constructions_kernel K
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition: fvcDdt.C:45
fvScalarMatrix EEqn(fvm::ddt(rho, he)+mvConvection->fvmDiv(phi, he)+fvc::ddt(rho, K)+fvc::div(phi, K)+(he.name()=="e" ? mvConvection->fvcDiv(fvc::absolute(phi, rho, U), p/rho) :-dpdt)+thermophysicalTransport->divq(he)==reaction->Qdot()+fvModels.source(rho, he))
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
volScalarField & dpdt
Foam::fvConstraints & fvConstraints
phi
Definition: correctPhi.H:3
fluidReactionThermophysicalTransportModel & thermophysicalTransport
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
Foam::fvModels & fvModels
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &tphi, const volVectorField &U)
Return the given relative flux in absolute form.
Definition: fvcMeshPhi.C:188
U
Definition: pEqn.H:72
fvModels source(alpha1, mixture.thermo1().rho())
volScalarField & p
const dimensionedVector & g