EaEqn.H
Go to the documentation of this file.
1 {
2  volScalarField& hea = thermo.he();
3 
5  (
6  fvm::ddt(rho, hea) + mvConvection->fvmDiv(phi, hea)
7  + fvc::ddt(rho, K) + fvc::div(phi, K)
8  + (
9  hea.name() == "ea"
10  ? mvConvection->fvcDiv(fvc::absolute(phi, rho, U), p/rho)
11  : -dpdt
12  )
13  - fvm::laplacian(thermophysicalTransport->alphaEff(), hea)
14  + fvModels.source(rho, hea)
15  );
16 
17  EaEqn.relax();
18 
20 
21  EaEqn.solve();
22 
24 
25  thermo.correct();
26 }
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
fluidReactionThermo & thermo
Definition: createFields.H:28
U
Definition: pEqn.H:72
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvcLaplacian.C:45
CGAL::Exact_predicates_exact_constructions_kernel K
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition: fvcDdt.C:45
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:58
fvScalarMatrix EaEqn(fvm::ddt(rho, hea)+mvConvection->fvmDiv(phi, hea)+fvc::ddt(rho, K)+fvc::div(phi, K)+(hea.name()=="ea" ? mvConvection->fvcDiv(fvc::absolute(phi, rho, U), p/rho) :-dpdt) - fvm::laplacian(thermophysicalTransport->alphaEff(), hea)+fvModels.source(rho, hea))
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:202
tmp< fv::convectionScheme< scalar > > mvConvection(fv::convectionScheme< scalar >::New(mesh, fields, phi, mesh.schemes().div("div(phi,Yi_h)")))
volScalarField & p