32 template<
class MomentumTransportModel,
class ThermoModel>
41 momentumTransport_(momentumTransport),
48 template<
class MomentumTransportModel,
class ThermoModel>
61 momentumTransport.
lookup(
"simulationType")
65 <<
"Selecting thermophysical transport type " << modelType <<
endl;
67 typename dictionaryConstructorTable::iterator cstrIter =
68 dictionaryConstructorTablePtr_->find(modelType);
70 if (cstrIter == dictionaryConstructorTablePtr_->end())
73 <<
"Unknown thermophysical transport type "
74 << modelType <<
nl <<
nl
75 <<
"Available types:" <<
endl
76 << dictionaryConstructorTablePtr_->sortedToc()
80 printDictionary print(momentumTransport.
path(
true)/
typeName);
82 return cstrIter()(momentumTransport,
thermo);
Templated abstract base class for thermophysical transport models.
static autoPtr< ThermophysicalTransportModel > New(const momentumTransportModel &transport, const thermoModel &thermo)
Return a reference to the selected thermophysical transport model.
ThermophysicalTransportModel(const momentumTransportModel &momentumTransport, const thermoModel &thermo)
Construct.
MomentumTransportModel momentumTransportModel
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.
Abstract base class for fluid thermophysical transport models RAS, LES and laminar.
Abstract base class for momentum transport models (RAS, LES and laminar).
fileName path() const
Return complete path.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indentOrNl(Ostream &os)
Indent stream or add newline if indent level == 0.
fluidMulticomponentThermo & thermo