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)
268 verbose_(
dict.getOrDefault<bool>(
"verbose", true)),
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A HashTable similar to std::unordered_map.
bool good() const noexcept
True if next operation might succeed.
bool eof() const noexcept
True if end of input seen.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void resize(const label len)
Adjust allocated size of list.
void size(const label n)
Older name for setAddressableSize.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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,...
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...
Mesh consisting of general polyhedral cells.
Base class for defining solid-body motions.
A class for handling character strings derived from std::string.
A class for managing temporary objects.
Base class of a source for a topoSet.
static const string illegalSource_
tmp< pointField > transform(const pointField &points) const
Coordinate transform (optionally) coordinates. Returns reference to input data if no transform is act...
static bool readNames(const dictionary &dict, wordList &names)
Helper: extract wordList of patches/zones from dictionary. Returns.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
static bool check(labelList &list, const label maxLabel)
Detect and remove any values less than 0 or ge maxLabel.
topoSetSource(const topoSetSource &)=delete
No copy construct.
autoPtr< solidBodyMotionFunction > transformPtr_
Optional transformation for geometric data.
setAction
Enumeration defining various actions.
static HashTable< string > * usageTablePtr_
A table of usage strings.
bool verbose_
Output verbosity (default: true).
bool verbose() const noexcept
Get output verbosity.
const polyMesh & mesh() const noexcept
Reference to the mesh.
static autoPtr< topoSetSource > New(const word &topoSetSourceType, const polyMesh &mesh, const dictionary &dict)
Return a reference to the selected topoSetSource.
const polyMesh & mesh_
Reference to the mesh.
static Istream & checkIs(Istream &is)
Check state of stream.
static const Enum< setAction > actionNames
The setActions enum text. Names: "new", add", "subtract", "subset", "invert","clear",...
static const Enum< setAction > combineNames
The setAction enum text when combining selections. Names: "use", "add", "subtract",...
General set of labels of mesh quantity (points, cells, faces).
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void set(List< bool > &bools, const labelUList &locations)
Set the listed locations (assign 'true').
List< word > wordList
List of word.
List< label > labelList
A List of labels.
void add(DimensionedField< scalar, GeoMesh > &result, const dimensioned< scalar > &dt1, const DimensionedField< scalar, GeoMesh > &f2)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
vectorField pointField
pointField is a vectorField.
void transformPoints(vectorField &, const septernion &, const vectorField &)
Transform given vectorField of coordinates with the given septernion.
errorManipArg< error, int > exit(error &err, const int errNo=1)
UList< label > labelUList
A UList of labels.
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
dict add("bounds", meshBb)