49 setToFaceZone::typeName,
50 "\n Usage: setToFaceZone <faceSet>\n\n"
51 " Select all faces in the faceSet."
81 <<
"Ignoring entry 'cellSet' - maybe use setsToFaceZone instead ?"
106 if (!isA<faceZoneSet>(set))
109 <<
"Operation only allowed on a faceZoneSet." <<
endl;
120 Info<<
" Adding all faces from faceSet " << setName_
125 faceSet loadedSet(mesh_, setName_);
132 for (
const label facei : faceLabels)
134 if (!zoneSet.
found(facei))
136 newAddressing.
append(facei);
149 Info<<
" Removing all faces from faceSet " << setName_
154 faceSet loadedSet(mesh_, setName_);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void append(const T &val)
Copy append an element to the end of this list.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void transfer(List< T > &list)
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
Like faceSet but -reads data from faceZone -updates faceZone when writing.
const boolList & flipMap() const noexcept
const labelList & addressing() const noexcept
void updateSet()
Sort addressing and make faceSet part consistent with addressing.
Mesh consisting of general polyhedral cells.
A topoSetSource to convert a faceSet to a faceZone (and associated faceSet).
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
The topoSetFaceZoneSource is a intermediate class for handling topoSet sources for selecting face zon...
Class with constructor to add usage string to table.
Base class of a source for a topoSet.
setAction
Enumeration defining various actions.
@ SUBTRACT
Subtract elements from current set.
@ ADD
Add elements to current set.
@ NEW
Create a new set and ADD elements to it.
General set of labels of mesh quantity (points, cells, faces).
virtual bool found(const label id) const
Has the given index?
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define IOWarningInFunction(ios)
Report an IO warning using Foam::Warning.
#define WarningInFunction
Report a warning using Foam::Warning.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.