31 template<
class CloudType>
35 timeScaleModel_(nullptr)
39 template<
class CloudType>
52 this->coeffDict().subDict(TimeScaleModel::typeName)
58 template<
class CloudType>
62 timeScaleModel_(cm.timeScaleModel_)
68 template<
class CloudType>
75 template<
class CloudType>
85 Info<<
"Selecting damping model " << modelType <<
endl;
87 typename dictionaryConstructorTable::iterator cstrIter =
88 dictionaryConstructorTablePtr_->find(modelType);
90 if (cstrIter == dictionaryConstructorTablePtr_->end())
93 <<
"Unknown damping model type " << modelType
94 <<
", constructor not in hash table" <<
nl <<
nl 95 <<
" Valid damping model types are:" <<
nl 96 << dictionaryConstructorTablePtr_->sortedToc()
103 cstrIter()(
dict, owner)
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Base class for cloud sub-models.
A class for handling words, derived from string.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
static autoPtr< DampingModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
DampingModel(CloudType &owner)
Construct null from owner.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual ~DampingModel()
Destructor.
Templated base class for dsmc cloud.
Base class for collisional damping models.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.