All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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  )
13  ==
15  );
16 
17  EEqn.relax();
18 
20 
21  EEqn.solve();
22 
24 
25  thermo.correct();
26 }
fvScalarMatrix EEqn(fvm::div(phi, he)+(he.name()=="e" ? fvc::div(phi, volScalarField("Ekp", 0.5 *magSqr(U)+p/rho)) :fvc::div(phi, volScalarField("K", 0.5 *magSqr(U))))+thermophysicalTransport->divq(he)==fvModels.source(rho, he))
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
tmp< fvMatrix< Type > > source(const VolField< Type > &field) const
Return source for an equation.
Foam::fvConstraints & fvConstraints(Foam::fvConstraints::New(mesh))
Foam::fvModels & fvModels(Foam::fvModels::New(mesh))
Info<< "Creating thermophysical transport model\n"<< endl;turbulenceThermophysicalTransportModels::unityLewisEddyDiffusivity< RASThermophysicalTransportModel< ThermophysicalTransportModel< compressibleMomentumTransportModel, fluidThermo > >> thermophysicalTransport(turbulence(), thermo, true)
U
Definition: pEqn.H:72
tmp< VolField< Type > > div(const SurfaceField< Type > &ssf)
Definition: fvcDiv.C:47
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
VolField< scalar > volScalarField
Definition: volFieldsFwd.H:64
dimensioned< scalar > magSqr(const dimensioned< Type > &)
thermo he()
volScalarField & p
fluidMulticomponentThermo & thermo
Definition: createFields.H:31