61 Foam::topoSetSource::actionNames_;
66 "Illegal topoSetSource name" 75 const word& topoSetSourceType,
80 wordConstructorTable::iterator cstrIter =
81 wordConstructorTablePtr_->find(topoSetSourceType);
83 if (cstrIter == wordConstructorTablePtr_->end())
87 "topoSetSource::New(const word&, " 88 "const polyMesh&, const dictionary&)" 89 ) <<
"Unknown topoSetSource type " << topoSetSourceType
91 <<
"Valid topoSetSource types : " <<
endl 92 << wordConstructorTablePtr_->sortedToc()
102 const word& topoSetSourceType,
107 istreamConstructorTable::iterator cstrIter =
108 istreamConstructorTablePtr_->find(topoSetSourceType);
110 if (cstrIter == istreamConstructorTablePtr_->end())
114 "topoSetSource::New(const word&, " 115 "const polyMesh&, Istream&)" 116 ) <<
"Unknown topoSetSource type " << topoSetSourceType
118 <<
"Valid topoSetSource types : " <<
endl 119 << istreamConstructorTablePtr_->sortedToc()
135 FatalErrorIn(
"cellToFace::cellToFace") <<
"Istream not good" 165 Foam::topoSetSource::topoSetSource(
const polyMesh& mesh)
static autoPtr< topoSetSource > New(const word &topoSetSourceType, const polyMesh &mesh, const dictionary &dict)
Return a reference to the selected topoSetSource.
General set of labels of mesh quantity (points, cells, faces).
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling character strings derived from std::string.
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...
bool eof() const
Return true if end of input seen.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool good() const
Return true if next operation might succeed.
setAction
Enumeration defining the valid actions.
static Istream & checkIs(Istream &is)
Check state of stream.
Initialise the NamedEnum HashTable from the static list of names.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
Mesh consisting of general polyhedral cells.
virtual ~topoSetSource()
Destructor.
void addOrDelete(topoSet &set, const label cellI, const bool) const
Add (if bool) cellI to set or delete cellI from set.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
defineTypeNameAndDebug(combustionModel, 0)