55 { setAction::ADD,
"add" },
56 { setAction::SUBTRACT,
"subtract" },
57 { setAction::NEW,
"new" },
58 { setAction::SUBSET,
"subset" },
59 { setAction::INVERT,
"invert" },
60 { setAction::CLEAR,
"clear" },
61 { setAction::REMOVE,
"remove" },
62 { setAction::LIST,
"list" },
63 { setAction::IGNORE,
"ignore" },
64 { setAction::SUBTRACT,
"delete" },
74 { setAction::NEW,
"use" },
75 { setAction::ADD,
"add" },
76 { setAction::SUBTRACT,
"subtract" },
77 { setAction::SUBSET,
"subset" },
78 { setAction::INVERT,
"invert" },
79 { setAction::IGNORE,
"ignore" },
85 "Illegal topoSetSource name" 93 const label len = list.
size();
97 for (label i=0; i < len; ++i)
99 const label val = list[i];
101 if (val >= 0 && val < maxLabel)
111 const label nReject = (len - nGood);
128 const word& topoSetSourceType,
133 auto* ctorPtr = wordConstructorTable(topoSetSourceType);
142 *wordConstructorTablePtr_
152 const word& topoSetSourceType,
153 const polyMesh&
mesh,
157 auto* ctorPtr = istreamConstructorTable(topoSetSourceType);
165 *istreamConstructorTablePtr_
175 if (!is.good() || is.eof())
226 const bitSet& labels,
232 for (
const label
id : labels)
239 for (
const label
id : labels)
251 const polyMesh&
mesh,
257 transformPtr_(nullptr)
268 verbose_(
dict.getOrDefault<bool>(
"verbose", true)),
309 const dictionary&
dict,
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".
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
List of names generated by calling name() for each list item and filtered for matches.
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.
void transformPoints(vectorField &, const septernion &, const vectorField &)
Transform given vectorField of coordinates with the given septernion.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
T & front()
Access first element of the list, position [0].
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.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect...
vectorField pointField
pointField is a vectorField.
Base class for defining solid-body motions.
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.
List< word > wordList
List of word.
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.
tmp< pointField > transform(const pointField &points) const
Coordinate transform (optionally) coordinates. Returns reference to input data if no transform is act...
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...
static bool readNames(const dictionary &dict, wordList &names)
Helper: extract wordList of patches/zones from dictionary. Returns.
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
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 ...