32 const dictionary& propDict,
33 const psiuReactionThermo& thermo,
41 const word modelType(propDict.lookup(
"XiModel"));
43 Info<<
"Selecting flame-wrinkling model " << modelType <<
endl;
45 dictionaryConstructorTable::iterator cstrIter =
46 dictionaryConstructorTablePtr_->find(modelType);
48 if (cstrIter == dictionaryConstructorTablePtr_->end())
51 <<
"Unknown XiModel type " 52 << modelType <<
nl <<
nl 53 <<
"Valid XiModels are : " << endl
54 << dictionaryConstructorTablePtr_->sortedToc()
58 return autoPtr<XiModel>
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< XiModel > New(const dictionary &XiProperties, const psiuReactionThermo &thermo, const compressible::RASModel &turbulence, const volScalarField &Su, const volScalarField &rho, const volScalarField &b, const surfaceScalarField &phi)
Return a reference to the selected Xi model.
rhoReactionThermo & thermo
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
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("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\"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField