33 namespace combustionModels
45 const word& modelType,
48 const word& combustionProperties
51 laminar(modelType, thermo, turb, combustionProperties),
52 Cmix_(this->coeffs().
template lookup<scalar>(
"Cmix")),
58 this->
mesh().time().timeName(),
96 Cmix_*
sqrt(
max(muEff[i]/rho[i]/(epsilon[i] + small), 0));
100 kappa_[i] = tc[i]/(tc[i] + tk);
122 this->
thermo().phasePropertyName(typeName +
":Qdot"),
132 this->coeffs().lookup(
"Cmix") >> Cmix_;
virtual void correct()
Correct combustion rate.
#define forAll(list, i)
Loop across all elements in list.
fluidReactionThermo & thermo
static word phasePropertyName(const word &name, const word &phaseName)
Return the name of a property for a given phase.
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s^3].
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual bool read()
Update properties from given dictionary.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
dimensionedScalar sqrt(const dimensionedScalar &ds)
tmp< volScalarField > trho
Base-class for multi-component fluid thermodynamic properties.
const dimensionSet dimless
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s^3].
Macros for easy insertion into run-time selection tables.
Laminar combustion model.
A class for handling words, derived from string.
Info<< "Reading field U\"<< 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(dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::momentumTransportModel > turbulence(compressible::momentumTransportModel::New(rho, U, phi, thermo))
virtual void correct()
Correct combustion rate.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
PtrList< volScalarField > & Y
virtual ~PaSR()
Destructor.
PaSR(const word &modelType, const fluidReactionThermo &thermo, const compressibleMomentumTransportModel &turb, const word &combustionProperties)
Construct from components.
A class for managing temporary objects.
defineTypeNameAndDebug(diffusion, 0)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Abstract base class for turbulence models (RAS, LES and laminar).
addToRunTimeSelectionTable(combustionModel, diffusion, dictionary)
virtual bool read()
Update properties from given dictionary.