31 template<
class BasicThermophysicalTransportModel>
34 BasicThermophysicalTransportModel
39 Info<< coeffDict_.dictName() << coeffDict_ <<
endl;
46 template<
class BasicThermophysicalTransportModel>
49 BasicThermophysicalTransportModel
57 BasicThermophysicalTransportModel(momentumTransport,
thermo),
58 laminarDict_(this->subOrEmptyDict(
"laminar")),
59 printCoeffs_(laminarDict_.lookupOrDefault<
Switch>(
"printCoeffs", false)),
60 coeffDict_(laminarDict_.optionalSubDict(
type +
"Coeffs"))
66 template<
class BasicThermophysicalTransportModel>
71 BasicThermophysicalTransportModel
76 BasicThermophysicalTransportModel
87 thermophysicalTransportModel::typeName,
91 momentumTransport.
mesh(),
97 if (header.headerOk())
101 const word modelType(modelDict.subDict(
"laminar").lookup(
"model"));
103 Info<<
"Selecting laminar thermophysical transport model "
104 << modelType <<
endl;
106 typename dictionaryConstructorTable::iterator cstrIter =
107 dictionaryConstructorTablePtr_->find(modelType);
109 if (cstrIter == dictionaryConstructorTablePtr_->end())
112 <<
"Unknown laminar thermophysical transport model "
113 << modelType <<
nl <<
nl
114 <<
"Available models:" <<
endl
115 << dictionaryConstructorTablePtr_->sortedToc()
119 return autoPtr<laminarThermophysicalTransportModel>
121 cstrIter()(momentumTransport,
thermo)
126 Info<<
"Selecting default laminar thermophysical transport model "
127 << laminarThermophysicalTransportModels::unityLewisFourier<
128 BasicThermophysicalTransportModel>::typeName <<
endl;
130 return autoPtr<laminarThermophysicalTransportModel>
132 new laminarThermophysicalTransportModels::unityLewisFourier
134 BasicThermophysicalTransportModel
135 >(momentumTransport,
thermo)
143 template<
class BasicThermophysicalTransportModel>
146 BasicThermophysicalTransportModel
151 laminarDict_ <<= this->subDict(
"laminar");
153 coeffDict_ <<= laminarDict_.optionalSubDict(
type() +
"Coeffs");
164 template<
class BasicThermophysicalTransportModel>
167 BasicThermophysicalTransportModel
170 BasicThermophysicalTransportModel::predict();
174 template<
class BasicThermophysicalTransportModel>
177 BasicThermophysicalTransportModel
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
static word group(const word &name)
Return group (extension part of name)
static word groupName(Name name, const word &group)
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
static const word & constant()
Return constant name.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Templated abstract base class for laminar thermophysical transport models.
BasicThermophysicalTransportModel::thermoModel thermoModel
BasicThermophysicalTransportModel::momentumTransportModel momentumTransportModel
Abstract base class for turbulence models (RAS, LES and laminar).
const Time & time() const
const fvMesh & mesh() const
const surfaceScalarField & alphaRhoPhi() const
Access function to phase flux field.
Templated form of IOobject providing type information for file reading and header type checking.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void correct(const RdeltaTType &rDeltaT, const RhoType &rho, volScalarField &psi, const surfaceScalarField &phiCorr, const SpType &Sp, const SuType &Su)
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool read(const char *, int32_t &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
fluidMulticomponentThermo & thermo