31 template<
class DimensionedFieldType>
35 DimensionedFieldType& field
42 template<
class DimensionedFieldType>
46 DimensionedFieldType& field
55 template<
class DimensionedFieldType>
60 DimensionedFieldType& field
69 dictionaryConstructorTablePtr_
72 typename dictionaryConstructorTable::iterator cstrIter =
73 dictionaryConstructorTablePtr_->find(
type);
75 if (cstrIter == dictionaryConstructorTablePtr_->end())
78 <<
"Unknown DimensionedFieldFunction type " <<
type
79 <<
" for field " << field.name() <<
nl <<
nl
80 <<
"Valid DimensionedFieldFunction types are:" <<
nl
81 << dictionaryConstructorTablePtr_->sortedToc() <<
nl
85 return cstrIter()(
dict, field);
91 template<
class DimensionedFieldType>
Base class for run-time selectable internal and patch field initialisation evaluation and update with...
DimensionedFieldFunction(const dictionary &dict, DimensionedFieldType &field)
Construct with dictionary to initialise given field.
static autoPtr< DimensionedFieldFunction< DimensionedFieldType > > New(const dictionary &dict, DimensionedFieldType &field)
Select null constructed.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
bool open(const fileName &libName, const bool verbose=true)
Open the named library, optionally with warnings if problems occur.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dlLibraryTable libs
Table of loaded dynamic libraries.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Ostream & writeKeyword(Foam::Ostream &os, const keyType &kw)
Write the keyword to the Ostream with the current level of indentation.
Ostream & indent(Ostream &os)
Indent stream.
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.