54 { setAction::ADD,
"add" },
55 { setAction::SUBTRACT,
"subtract" },
56 { setAction::NEW,
"new" },
57 { setAction::SUBSET,
"subset" },
58 { setAction::INVERT,
"invert" },
59 { setAction::CLEAR,
"clear" },
60 { setAction::REMOVE,
"remove" },
61 { setAction::LIST,
"list" },
62 { setAction::IGNORE,
"ignore" },
63 { setAction::SUBTRACT,
"delete" },
73 { setAction::NEW,
"use" },
74 { setAction::ADD,
"add" },
75 { setAction::SUBTRACT,
"subtract" },
76 { setAction::SUBSET,
"subset" },
77 { setAction::INVERT,
"invert" },
78 { setAction::IGNORE,
"ignore" },
84 "Illegal topoSetSource name" 92 const label len = list.
size();
96 for (label i=0; i < len; ++i)
98 const label val = list[i];
100 if (val >= 0 && val < maxLabel)
110 const label nReject = (len - nGood);
127 const word& topoSetSourceType,
132 auto* ctorPtr = wordConstructorTable(topoSetSourceType);
141 *wordConstructorTablePtr_
151 const word& topoSetSourceType,
152 const polyMesh&
mesh,
156 auto* ctorPtr = istreamConstructorTable(topoSetSourceType);
164 *istreamConstructorTablePtr_
174 if (!is.good() || is.eof())
225 const bitSet& labels,
231 for (
const label
id : labels)
238 for (
const label
id : labels)
250 const polyMesh&
mesh,
topoSetSource(const topoSetSource &)=delete
No copy construct.
void size(const label n)
Older name for setAddressableSize.
static const Enum< setAction > actionNames
The setActions enum text. Names: "new", add", "subtract", "subset", "invert", "clear", "remove", "list", "ignore".
errorManipArg< error, int > exit(error &err, const int errNo=1)
void resize(const label len)
Adjust allocated size of list.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static Istream & checkIs(Istream &is)
Check state of stream.
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
UList< label > labelUList
A UList of labels.
Base class of a source for a topoSet.
A class for handling words, derived from Foam::string.
setAction
Enumeration defining various actions.
static const string illegalSource_
bool verbose() const noexcept
Get output verbosity.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry if present, and assign to T val. FatalIOError if it is found and the number of tokens i...
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
static autoPtr< topoSetSource > New(const word &topoSetSourceType, const polyMesh &mesh, const dictionary &dict)
Return a reference to the selected topoSetSource.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
static HashTable< string > * usageTablePtr_
A table of usage strings.
static bool check(labelList &list, const label maxLabel)
Detect and remove any values less than 0 or ge maxLabel.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Mesh consisting of general polyhedral cells.
A class for handling character strings derived from std::string.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
static const Enum< setAction > combineNames
The setAction enum text when combining selections. Names: "use", "add", "subtract", "subset", "invert", "ignore".
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...