36 class BasicTurbulenceModel,
48 const word& propertiesName
70 class BasicTurbulenceModel,
85 const word& propertiesName
96 IOobject::groupName(propertiesName, alphaRhoPhi.
group()),
99 IOobject::MUST_READ_IF_MODIFIED,
103 ).
lookup(
"simulationType")
106 Info<<
"Selecting turbulence model type " << modelType <<
endl;
108 typename dictionaryConstructorTable::iterator cstrIter =
109 dictionaryConstructorTablePtr_->find(modelType);
111 if (cstrIter == dictionaryConstructorTablePtr_->end())
114 <<
"Unknown TurbulenceModel type " 115 << modelType <<
nl <<
nl 116 <<
"Valid TurbulenceModel types:" << endl
117 << dictionaryConstructorTablePtr_->sortedToc()
123 cstrIter()(
alpha,
rho,
U, alphaRhoPhi,
phi, transport, propertiesName)
static word group(const word &name)
Return group (extension part of name)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static autoPtr< TurbulenceModel > New(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName)
Return a reference to the selected turbulence model.
TransportModel transportModel
Templated abstract base class for turbulence models.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
A class for handling words, derived from string.
const word & constant() const
Return constant name.
const Time & time() const
Return time.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const objectRegistry & db() const
Return the local objectRegistry.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.