EEqn.H
Go to the documentation of this file.
1 {
2  volScalarField& he = thermo.he();
3 
5  (
6  fvm::div(phi, he)
7  + (
8  he.name() == "e"
9  ? fvc::div(phi, volScalarField("Ekp", 0.5*magSqr(U) + p/rho))
10  : fvc::div(phi, volScalarField("K", 0.5*magSqr(U)))
11  )
12  - fvm::laplacian(turbulence->alphaEff(), he)
13  ==
14  fvOptions(rho, he)
15  );
16 
17  EEqn.relax();
18 
19  fvOptions.constrain(EEqn);
20 
21  EEqn.solve();
22 
23  fvOptions.correct(he);
24 
25  thermo.correct();
26 }
dimensioned< scalar > magSqr(const dimensioned< Type > &)
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvcLaplacian.C:45
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
fv::IOoptionList & fvOptions
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
volScalarField & p
Definition: createFields.H:51
surfaceScalarField & phi
fvScalarMatrix EEqn(fvm::ddt(rho, he)+mvConvection->fvmDiv(phi, he)+fvc::ddt(rho, K)+fvc::div(phi, K)+( he.name()=="e" ?fvc::div ( fvc::absolute(phi/fvc::interpolate(rho), U), p, "div(phiv,p)" ) :-dpdt )-fvm::laplacian(turbulence->alphaEff(), he)==rho *(U &g)+reaction->Sh()+fvOptions(rho, he))
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