32 template<
class MomentumTransportModel,
class ThermoModel>
41 momentumTransport_(momentumTransport),
48 template<
class MomentumTransportModel,
class ThermoModel>
61 momentumTransport.
lookup(
"simulationType")
64 Info<<
"Selecting thermophysical transport type " << modelType <<
endl;
66 typename dictionaryConstructorTable::iterator cstrIter =
67 dictionaryConstructorTablePtr_->find(modelType);
69 if (cstrIter == dictionaryConstructorTablePtr_->end())
72 <<
"Unknown thermophysical transport type "
73 << modelType <<
nl <<
nl
74 <<
"Available types:" <<
endl
75 << dictionaryConstructorTablePtr_->sortedToc()
79 return autoPtr<ThermophysicalTransportModel>
81 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 turbulence models (RAS, LES and laminar).
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.
fluidMulticomponentThermo & thermo