EaEqn.H
Go to the documentation of this file.
1 {
2  volScalarField& hea = thermo.he();
3 
5  (
6  betav*fvm::ddt(rho, hea) + mvConvection->fvmDiv(phi, hea)
8  + (
9  hea.name() == "ea"
10  ? fvc::div
11  (
13  p,
14  "div(phiv,p)"
15  )
16  : -betav*dpdt
17  )
18  - fvm::laplacian(Db, hea)
19  + betav*fvOptions(rho, hea)
20  );
21 
22  EaEqn.relax();
23 
24  fvOptions.constrain(EaEqn);
25 
26  EaEqn.solve();
27 
28  fvOptions.correct(hea);
29 
30  thermo.correct();
31 }
p
volScalarField & p
Definition: createFieldRefs.H:8
thermo
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
EaEqn
fvScalarMatrix EaEqn(betav *fvm::ddt(rho, hea)+mvConvection->fvmDiv(phi, hea)+betav *fvc::ddt(rho, K)+fvc::div(phi, K)+(hea.name()=="ea" ? fvc::div(phi/fvc::interpolate(rho), p, "div(phiv,p)") :-betav *dpdt) - fvm::laplacian(Db, hea)+betav *fvOptions(rho, hea))
Foam::fac::div
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facDiv.C:50
rho
rho
Definition: readInitialConditions.H:88
K
CGAL::Exact_predicates_exact_constructions_kernel K
Definition: CGALTriangulation3DKernel.H:58
Foam::fvScalarMatrix
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:44
fvOptions
fv::options & fvOptions
Definition: setRegionFluidFields.H:23
mvConvection
tmp< fv::convectionScheme< scalar > > mvConvection(fv::convectionScheme< scalar >::New(mesh, fields, phi, mesh.divScheme("div(phi,Yi_h)")))
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
Db
volScalarField Db("Db", turbulence->muEff())
betav
const volScalarField & betav
Definition: setRegionSolidFields.H:35
Foam::fac::ddt
tmp< GeometricField< Type, faPatchField, areaMesh > > ddt(const dimensioned< Type > dt, const faMesh &mesh)
Definition: facDdt.C:47
dpdt
volScalarField & dpdt
Definition: setRegionFluidFields.H:32
Foam::fac::laplacian
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
Definition: facLaplacian.C:47
Foam::fac::interpolate
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.