30 template<
class MomentumTransportModel>
33 const typename MomentumTransportModel::alphaField&
alpha,
34 const typename MomentumTransportModel::rhoField&
rho,
53 Info<<
"Selecting turbulence model type " << modelType <<
endl;
55 typename MomentumTransportModel::dictionaryConstructorTable::iterator
57 MomentumTransportModel::dictionaryConstructorTablePtr_->find(modelType);
62 == MomentumTransportModel::dictionaryConstructorTablePtr_->
end()
66 <<
"Unknown " << MomentumTransportModel::typeName <<
" type "
67 << modelType <<
nl <<
nl
68 <<
"Valid " << MomentumTransportModel::typeName <<
" types:" <<
endl
69 << MomentumTransportModel::dictionaryConstructorTablePtr_
Generic GeometricField class.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const objectRegistry & db() const
Return the local objectRegistry.
static word group(const word &name)
Return group (extension part of name)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const volVectorField & U() const
Access function to velocity field.
static typeIOobject< IOdictionary > readModelDict(const objectRegistry &obr, const word &group, bool registerObject=false)
static autoPtr< MomentumTransportModel > New(const typename MomentumTransportModel::alphaField &alpha, const typename MomentumTransportModel::rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
virtual tmp< surfaceScalarField > phi() const
Return the volumetric flux field.
const surfaceScalarField & alphaRhoPhi() const
Access function to phase flux field.
Abstract base class for all fluid physical properties.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.