41 #ifndef Foam_topoSetSource_H 42 #define Foam_topoSetSource_H 294 const word sourceTypeName(is);
301 static const string&
usage(
const word&
name)
322 autoPtr<topoSetSource>
clone()
const 334 const word& topoSetSourceType,
342 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".
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.
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.
vectorField pointField
pointField is a vectorField.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::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.
bool hasTransform() const noexcept
True if coordinate transform is active.
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.
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...
List< word > wordList
List of word.
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
autoPtr< solidBodyMotionFunction > transformPtr_
Optional transformation for geometric data.
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.
tmp< pointField > transform(const pointField &points) const
Coordinate transform (optionally) coordinates. Returns reference to input data if no transform is act...
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...
static bool readNames(const dictionary &dict, wordList &names)
Helper: extract wordList of patches/zones from dictionary. Returns.
Mesh consisting of general polyhedral cells.
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".