41 #ifndef Foam_topoSetSource_H 42 #define Foam_topoSetSource_H 291 const word sourceTypeName(is);
298 static const string&
usage(
const word&
name)
319 autoPtr<topoSetSource>
clone()
const 339 const word& topoSetSourceType,
topoSetSource(const topoSetSource &)=delete
No copy construct.
static bool isSetSource(const sourceType t) noexcept
True if a "set" source.
Geometric type is "cell".
void operator=(const topoSetSource &)=delete
No copy assignment.
static const Enum< setAction > actionNames
The setActions enum text. Names: "new", add", "subtract", "subset", "invert", "clear", "remove", "list", "ignore".
static const string & usage(const word &name)
bool verbose_
Output verbosity (default: true)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Create a new set and ADD elements to it.
Add elements to current set.
static bool isPoint(const sourceType t) noexcept
True if "point" geometric type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Clear the set, possibly creating it.
declareRunTimeSelectionTable(autoPtr, topoSetSource, word,(const polyMesh &mesh, const dictionary &dict),(mesh, dict))
Invert the elements in the current set.
static Istream & checkIs(Istream &is)
Check state of stream.
A source based on mesh zone.
Remove the set (from the file system)
virtual sourceType setType() const =0
The source category (cell/face/point combined with set/zone)
Print contents of the set.
virtual ~topoSetSource()=default
Destructor.
iNew(const polyMesh &mesh)
static bool isCell(const sourceType t) noexcept
True if "cell" geometric type.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
Base class of a source for a topoSet.
Geometric type is "point".
Class used for the read-construction of.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
Union of elements with current set.
const polyMesh & mesh() const noexcept
Reference to the mesh.
setAction
Enumeration defining various actions.
static const string illegalSource_
bool verbose() const noexcept
Get output verbosity.
A HashTable similar to std::unordered_map.
TypeName("topoSetSource")
Runtime type information.
const polyMesh & mesh_
Reference to the mesh.
addToUsageTable(const word &name, const string &msg)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
autoPtr< topoSetSource > clone() const
Clone (disallowed)
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.
Subtract elements from current set.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const =0
Apply specified action to the topoSet.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
autoPtr< topoSetSource > operator()(Istream &is) const
Class with constructor to add usage string to table.
static HashTable< string > * usageTablePtr_
A table of usage strings.
sourceType
Enumeration defining the types of sources.
static bool isZoneSource(const sourceType t) noexcept
True if a "zone" source.
static setAction toAction(const word &actionName)
Deprecated(2018-07) convert string to action.
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.
Macros to ease declaration of run-time selection tables.
A source based on topoSet.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
static bool isFace(const sourceType t) noexcept
True if "face" geometric type.
static const Enum< setAction > combineNames
The setAction enum text when combining selections. Names: "use", "add", "subtract", "subset", "invert", "ignore".
Geometric type is "face".