Loading...
Searching...
No Matches
EEqn.H
Go to the documentation of this file.
1{
3
4 fvScalarMatrix EEqn
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
24 {
25 fvMatrixAssemblyPtr->addFvMatrix(EEqn);
26 }
27 else
28 {
29 EEqn.solve();
30
31 fvOptions.correct(he);
32
33 thermo.correct();
34 rad.correct();
35
36 Info<< "Min/max T:" << min(thermo.T()).value() << ' '
37 << max(thermo.T()).value() << endl;
38 }
39}
volScalarField & he
Definition YEEqn.H:52
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+radiation->Sh(thermo, he)+parcels.Sh(he)+surfaceFilm.Sh()+fvOptions(rho, he))
const uniformDimensionedVectorField & g
fv::options & fvOptions
radiation::radiationModel & rad
compressible::turbulenceModel & turb
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
GeometricField< scalar, fvPatchField, volMesh > volScalarField