138 fvModels().lookupType<fv::bXiIgnition>()
141 bool igniting =
false;
145 if (ignitionModels[i].igniting())
165 ignitionModels[i].XiCorr(tXi.
ref(),
b, mgb);
202 (
b*
c*mgb)().weightedAverage(
mesh.
V())
203 /((
b*
c)().weightedAverage(
mesh.
V()) + small)
212 nfVec /= (
mag(nfVec) + dMgb);
252 if (thermo_.containsSpecie(
"fu"))
339 fvModels().lookupType<fv::bXiIgnition>()
342 bool ignited =
false;
346 if (ignitionModels[i].ignited())
370 if (thermo_.containsSpecie(
"ft"))
382 if (thermo_.containsSpecie(
"fu"))
390 if (thermo_.containsSpecie(
"egr"))
399 thermo_.heu() ==
thermo.he();
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(fvc::absolute(phi, rho, U), p/rho) :-betav *dpdt) - fvm::laplacian(Db, hea)+betav *fvModels.source(rho, hea))
#define forAll(list, i)
Loop across all elements in list.
volScalarField Db("Db", rho *turbulence->nuEff())
tmp< fv::convectionScheme< scalar > > mvConvection(fv::convectionScheme< scalar >::New(mesh, fields, phi, mesh.schemes().div("div(phi,ft_b_ha_hau)")))
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
Generic GeometricField class.
static tmp< GeometricField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Internal &, const PtrList< Patch > &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
const word & name() const
Return name.
Template dictionary class which manages the storage associated with it.
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
void relax(const scalar alpha)
Relax matrix (for steady-state solution).
SolverPerformance< Type > solve(const dictionary &)
Solve segregated or coupled returning the solution statistics.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
const fvSchemes & schemes() const
Return the fvSchemes.
const surfaceVectorField & Sf() const
Return cell face area vectors.
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
ITstream & div(const word &name) const
Abstract base class for convection schemes.
virtual PtrList< volScalarField > & Y()=0
Access the mass-fraction fields.
Foam::fvConstraints & fvConstraints() const
Return the fvConstraints that are created on demand.
virtual void thermophysicalPredictor()
Construct and solve the energy equation,.
psiuMulticomponentThermo & thermo_
void EaSolve(const fv::convectionScheme< scalar > &mvConvection, const volScalarField &Db)
Solve the energy equation.
void EauSolve(const fv::convectionScheme< scalar > &mvConvection, const volScalarField &Db)
Solve the unburnt energy equation.
tmp< volScalarField > XiCorr(const volScalarField &Xi, const surfaceScalarField &nf, const dimensionedScalar &dMgb) const
Apply the early kernel growth correction to the flame-wrinkling Xi.
void egrSolve(const fv::convectionScheme< scalar > &mvConvection, const volScalarField &Db)
Solve the egr mass-fraction equation.
void fuSolve(const fv::convectionScheme< scalar > &mvConvection, const volScalarField &Db, const volScalarField &bSource)
Solve the fu equation for partially- and non- premixed mixtures.
void ftSolve(const fv::convectionScheme< scalar > &mvConvection, const volScalarField &Db)
Solve the ft equation for partially-premixed mixtures.
void bSolve(const fv::convectionScheme< scalar > &mvConvection, const volScalarField &Db)
Solve the Xi and regress variable equations.
Buoyancy related data for the Foam::solvers::isothermalFluid solver module when solving buoyant cases...
uniformDimensionedVectorField g
Gravitational acceleration.
const surfaceScalarField & phi
Mass-flux field.
const volScalarField & rho
Reference to the continuity density field.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
Foam::fvConstraints & fvConstraints(Foam::fvConstraints::New(mesh))
Foam::fvModels & fvModels(Foam::fvModels::New(mesh))
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Calculate the first temporal derivative.
Calculate the field for explicit evaluation of implicit and explicit sources.
Calculate the matrix for the divergence of the given field and flux.
Info<< "Creating thermophysical transport model\n"<< endl;turbulenceThermophysicalTransportModels::unityLewisEddyDiffusivity< RASThermophysicalTransportModel< ThermophysicalTransportModel< compressibleMomentumTransportModel, fluidThermo > >> thermophysicalTransport(turbulence(), thermo, true)
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
const dimensionedScalar c
Speed of light in a vacuum.
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< VolField< Type > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
tmp< VolField< Type > > Su(const VolField< Type > &su, const VolField< Type > &vf)
tmp< VolField< typename outerProduct< vector, Type >::type > > grad(const SurfaceField< Type > &ssf)
tmp< VolField< Type > > div(const SurfaceField< Type > &ssf)
tmp< SurfaceField< Type > > snGrad(const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > laplacian(const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
tmp< fvMatrix< Type > > ddt(const VolField< Type > &vf)
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
fluidMulticomponentThermo & thermo