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(turb.alphaEff(), he)
13  ==
14  rho*(U&g)
15  + rad.Sh(thermo, he)
16  + fvOptions(rho, he)
17  );
18 
19  EEqn.relax();
20 
21  fvOptions.constrain(EEqn);
22 
23  solvPerfE = EEqn.solve();
24 
25  fvOptions.correct(he);
26 
27  thermo.correct();
28  rad.correct();
29 
30  Info<< "Min/max T:" << min(thermo.T()).value() << ' '
31  << max(thermo.T()).value() << endl;
32 }
surfaceScalarField & phi
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
U
Definition: pEqn.H:83
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
compressible::turbulenceModel & turb
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:253
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvcLaplacian.C:45
fv::options & fvOptions
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
psiReactionThermo & thermo
Definition: createFields.H:31
solvPerfE
Definition: EEqn.H:23
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)==Qdot+fvOptions(rho, he))
dimensioned< scalar > magSqr(const dimensioned< Type > &)
const dimensionedVector & g
radiation::radiationModel & rad
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
messageStream Info
volScalarField alphaEff("alphaEff", turbulence->nu()/Pr+alphat)
volScalarField & p