Go to the documentation of this file.
19 (
b*
c*mgb)().weightedAverage(
mesh.V())
20 /((
b*
c)().weightedAverage(
mesh.V()) + SMALL)
28 nfVec /= (
mag(nfVec) + dMgb);
41 mesh.surfaceInterpolation::deltaCoeffs()
43 ).value()*
runTime.deltaTValue();
45 Info<<
"Max St-Courant Number = " << StCoNum <<
endl;
123 )*(Xi + scalar(1))/(2*Xi)
136 if (SuModel ==
"unstrained")
140 else if (SuModel ==
"equilibrium")
144 else if (SuModel ==
"transport")
151 (sigmas*SuInf*(Su0 - SuInf) +
sqr(SuMin)*sigmaExt)
152 /(
sqr(Su0 - SuInf) +
sqr(SuMin))
190 if (XiModel ==
"fixed")
194 else if (XiModel ==
"algebraic")
200 (scalar(1) + (2*XiShapeCoef)*(scalar(0.5) -
b))
201 *XiCoef*
sqrt(up/(
Su + SuMin))*Reta;
203 else if (XiModel ==
"transport")
212 scalar(1.001) + XiCoef*
sqrt(up/(
Su + SuMin))*Reta
221 *(scalar(0.5) -
min(
max(
b, scalar(0)), scalar(1)))
222 )*(XiEqStar - scalar(1.001))
265 Info<<
"max(XiEq) = " <<
max(XiEq).value() <<
endl;
274 Info<<
"Combustion progress = "
275 << 100*(scalar(1) -
b)().weightedAverage(
mesh.V()).value() <<
"%"
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\n"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
const dimensionedScalar G
Newtonian constant of gravitation.
static constexpr const zero Zero
Global zero (0)
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
tmp< fv::convectionScheme< scalar > > mvConvection(fv::convectionScheme< scalar >::New(mesh, fields, phi, mesh.divScheme("div(phi,ft_b_ha_hau)")))
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
tmp< faMatrix< Type > > SuSp(const areaScalarField &sp, const GeometricField< Type, faPatchField, areaMesh > &vf)
#define R(A, B, C, D, E, F, K, M)
fvMatrix< scalar > fvScalarMatrix
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
messageStream Info
Information stream (stdout output on master, null elsewhere)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
errorManip< error > abort(error &err)
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar StCorr("StCorr", dimless, 1.0)
const word & executable() const noexcept
Name of executable without the path.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Info<< "Creating the unstrained laminar flame speed\n"<< endl;autoPtr< laminarFlameSpeed > unstrainedLaminarFlameSpeed(laminarFlameSpeed::New(thermo))
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
tmp< GeometricField< Type, faPatchField, areaMesh > > ddt(const dimensioned< Type > dt, const faMesh &mesh)
const dimensionedScalar e
Elementary charge.
const dimensionedScalar c
Speed of light in a vacuum.
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
Foam::argList args(argc, argv)
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.