Go to the documentation of this file.
36 class BasicTurbulenceModel,
48 const word& propertiesName
70 class BasicTurbulenceModel,
79 const alphaField&
alpha,
85 const word& propertiesName
96 IOobject::groupName(propertiesName,
U.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()
121 return autoPtr<TurbulenceModel>
123 cstrIter()(
alpha,
rho,
U, alphaRhoPhi,
phi, transport, propertiesName)
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
TurbulenceModel(const TurbulenceModel &)
Disallow default bitwise copy construct.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
Templated abstract base class for turbulence models.
TransportModel transportModel
errorManipArg< error, int > exit(error &err, const int errNo=1)
Base-class for all transport models used by the incompressible turbulence models.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Generic GeometricField class.