EauEqn.H
Go to the documentation of this file.
1 if (ign.ignited())
2 {
3  volScalarField& heau = thermo.heu();
4 
5  fvScalarMatrix heauEqn
6  (
7  betav*fvm::ddt(rho, heau) + mvConvection->fvmDiv(phi, heau)
8  + (betav*fvc::ddt(rho, K) + fvc::div(phi, K))*rho/thermo.rhou()
9  + (
10  heau.name() == "eau"
11  ? fvc::div
12  (
14  p,
15  "div(phiv,p)"
16  )*rho/thermo.rhou()
17  : -betav*dpdt*rho/thermo.rhou()
18  )
19  - fvm::laplacian(Db, heau)
20 
21  // These terms cannot be used in partially-premixed combustion due to
22  // the resultant inconsistency between ft and heau transport.
23  // A possible solution would be to solve for ftu as well as ft.
24  //- fvm::div(muEff*fvc::grad(b)/(b + 0.001), heau)
25  //+ fvm::Sp(fvc::div(muEff*fvc::grad(b)/(b + 0.001)), heau)
26  ==
27  betav*fvOptions(rho, heau)
28  );
29 
30  fvOptions.constrain(heauEqn);
31 
32  heauEqn.solve();
33 
34  fvOptions.correct(heau);
35 }
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:37
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.
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facDiv.C:43
tmp< GeometricField< Type, faPatchField, areaMesh > > ddt(const dimensioned< Type > dt, const faMesh &mesh)
Definition: facDdt.C:40
CGAL::Exact_predicates_exact_constructions_kernel K
fv::options & fvOptions
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:72
psiReactionThermo & thermo
Definition: createFields.H:28
Info<< "Min/max T:"<< min(thermo.T()).value()<< ' '<< max(thermo.T()).value()<< endl;}}# 10 "/home/chef2/andy/OpenFOAM/release/v2606/OpenFOAM-v2606/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/solveFluid.H" 2}else{ if(oCorr==0) { }# 1 "/home/chef2/andy/OpenFOAM/release/v2606/OpenFOAM-v2606/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/UEqn.H" 1 MRF.correctBoundaryVelocity(U);UEqn=(fvm::ddt(rho, U)+fvm::div(phi, U)+MRF.DDt(rho, U)+turbulence.divDevRhoReff(U)==fvOptions(rho, U));UEqn.relax();fvOptions.constrain(UEqn);if(momentumPredictor) { solve(UEqn==fvc::reconstruct((- ghf *fvc::snGrad(rho) - fvc::snGrad(p_rgh)) *mesh.magSf()), U.select(finalIter));fvOptions.correct(U);K=0.5 *magSqr(U);}# 19 "/home/chef2/andy/OpenFOAM/release/v2606/OpenFOAM-v2606/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/solveFluid.H" 2# 1 "/home/chef2/andy/OpenFOAM/release/v2606/OpenFOAM-v2606/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/YEqn.H" 1tmp< fv::convectionScheme< scalar > > mvConvection(nullptr)
Definition: solveFluid.H:104
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
Definition: facLaplacian.C:40
const volScalarField & betav
volScalarField & dpdt
volScalarField Db("Db", turbulence->muEff())
volScalarField & p