EEqn.H
Go to the documentation of this file.
1 {
2  volScalarField& he = thermo.he();
3 
5  (
6  fvm::ddt(rho, he) + mvConvection->fvmDiv(phi, he)
7  + fvc::ddt(rho, K) + fvc::div(phi, K)
8  + (
9  he.name() == "e"
10  ? fvc::div
11  (
13  p,
14  "div(phiv,p)"
15  )
16  : -dpdt
17  )
18  - fvm::laplacian(turbulence->alphaEff(), he)
19  ==
20  rho*(U&g)
21  + parcels.Sh(he)
22  + radiation->Sh(thermo)
23  + combustion->Sh()
24  + fvOptions(rho, he)
25  );
26 
27  EEqn.relax();
28 
29  fvOptions.constrain(EEqn);
30 
31  EEqn.solve();
32 
33  fvOptions.correct(he);
34 
35  thermo.correct();
36  radiation->correct();
37 
38  Info<< "T gas min/max = " << min(T).value() << ", "
39  << max(T).value() << endl;
40 }
autoPtr< compressible::turbulenceModel > turbulence
Definition: createFields.H:23
surfaceScalarField & phi
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
U
Definition: pEqn.H:83
Info<< "Creating combustion model\n"<< endl;autoPtr< combustionModels::psiCombustionModel > combustion(combustionModels::psiCombustionModel::New(mesh))
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
scalar Sh
Definition: solveChemistry.H:2
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
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)==reaction->Sh()+fvOptions(rho, he))
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:253
tmp< surfaceScalarField > interpolate(const RhoType &rho)
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
fv::options & fvOptions
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:52
psiReactionThermo & thermo
Definition: createFields.H:31
volScalarField & dpdt
virtual void correct()
Main update/correction routine.
const dimensionedVector & g
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
const volScalarField & T
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &tphi, const volVectorField &U)
Return the given relative flux in absolute form.
Definition: fvcMeshPhi.C:188
tmp< fv::convectionScheme< scalar > > mvConvection(fv::convectionScheme< scalar >::New(mesh, fields, phi, mesh.divScheme("div(phi,Yi_h)")))
messageStream Info
volScalarField alphaEff("alphaEff", turbulence->nu()/Pr+alphat)
volScalarField & p
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))