30 template<
class CloudType>
41 typename dictionaryConstructorTable::iterator cstrIter =
42 dictionaryConstructorTablePtr_->find(forceType);
44 if (cstrIter == dictionaryConstructorTablePtr_->end() && dict.
found(
"type"))
47 cstrIter = dictionaryConstructorTablePtr_->find(forceType);
50 Info<<
" Selecting particle force " << forceType <<
endl;
52 if (cstrIter == dictionaryConstructorTablePtr_->end())
55 <<
"Unknown particle force type " 57 <<
", constructor not in hash table" <<
nl <<
nl 58 <<
" Valid particle force types are:" <<
nl 59 << dictionaryConstructorTablePtr_->sortedToc()
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
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...
static autoPtr< ParticleForce< CloudType > > New(CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType)
Selector.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A class for handling words, derived from string.
word name(const complex &)
Return a string representation of a complex.
Mesh data needed to do the Finite Volume discretisation.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Templated base class for dsmc cloud.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.