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  ? fvc::div
11  (
13  p,
14  "div(phiv,p)"
15  )
16  : -dpdt
17  )
18  - fvm::laplacian(turbulence->alphaEff(), hea)
19  + fvOptions(rho, hea)
20  );
21 
22  EaEqn.relax();
23 
24  fvOptions.constrain(EaEqn);
25 
26  EaEqn.solve();
27 
28  fvOptions.correct(hea);
29 
30  thermo.correct();
31 }
volScalarField & dpdt
CGAL::Exact_predicates_exact_constructions_kernel K
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvcLaplacian.C:45
tmp< surfaceScalarField > interpolate(const RhoType &rho)
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition: fvcDdt.C:45
fv::IOoptionList & fvOptions
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &tphi, const volVectorField &U)
Return the given relative flux in absolute form.
Definition: fvcMeshPhi.C:187
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
volScalarField & p
Definition: createFields.H:51
surfaceScalarField & phi
tmp< fv::convectionScheme< scalar > > mvConvection(fv::convectionScheme< scalar >::New( mesh, fields, phi, mesh.divScheme("div(phi,Yi_h)") ))
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
psiReactionThermo & thermo
Definition: createFields.H:32
const volScalarField & alphaEff
Definition: setAlphaEff.H:49
U
Definition: pEqn.H:82
fvScalarMatrix EaEqn(fvm::ddt(rho, hea)+mvConvection->fvmDiv(phi, hea)+fvc::ddt(rho, K)+fvc::div(phi, K)+( hea.name()=="ea" ?fvc::div ( fvc::absolute(phi/fvc::interpolate(rho), U), p, "div(phiv,p)" ) :-dpdt )-fvm::laplacian(turbulence->alphaEff(), hea)+fvOptions(rho, hea))