EEqn.H
Go to the documentation of this file.
1{
3
4 fvScalarMatrix EEqn
5 (
6 fvm::ddt(rho, he) + fvm::div(phi, he)
7 + fvc::ddt(rho, K) + fvc::div(phi, K)
8 + (
9 he.name() == "e"
10 ? fvc::div
11 (
12 fvc::absolute(phi/fvc::interpolate(rho), U),
13 p,
14 "div(phiv,p)"
15 )
16 : -dpdt
17 )
18 - fvm::laplacian(turbulence.alphaEff(), he)
19 ==
20 rho*(U&g)
21 + rad.Sh(thermo, he)
22 + Qdot
23 + fvOptions(rho, he)
24 );
25
26 EEqn.relax();
27
28 fvOptions.constrain(EEqn);
29
31 {
32 fvMatrixAssemblyPtr->addFvMatrix(EEqn);
33 }
34 else
35 {
36 EEqn.solve(mesh.solver(he.select(finalIter)));
37 fvOptions.correct(he);
38
39 thermo.correct();
40 rad.correct();
41
42 Info<< "Min/max T:" << min(thermo.T()).value() << ' '
43 << max(thermo.T()).value() << endl;
44 }
45}
CGAL::Exact_predicates_exact_constructions_kernel K
Y[inertIndex] max(0.0)
volScalarField & he
Definition: YEEqn.H:52
const uniformDimensionedVectorField & g
fv::options & fvOptions
surfaceScalarField & phi
radiation::radiationModel & rad
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
U
Definition: pEqn.H:72
volScalarField & p
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))
autoPtr< fvMatrix< scalar > > fvMatrixAssemblyPtr
bool coupled(solutionDict.getOrDefault("coupledEnergyField", false))
dynamicFvMesh & mesh
volScalarField & dpdt
compressible::turbulenceModel & turbulence
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:82
scalar Qdot
Definition: solveChemistry.H:2