59 setAndNormalToFaceZone::typeName,
60 "\n Usage: setAndNormalToFaceZone <faceSet> <normal>\n\n"
61 " Select all faces in the faceSet and orient using normal.\n\n"
99 setName_(checkIs(is)),
112 if (!isA<faceZoneSet>(set))
115 <<
"Operation only allowed on a faceZoneSet." <<
endl;
126 Info<<
" Adding all faces from faceSet " << setName_
131 faceSet loadedSet(mesh_, setName_);
138 const faceList& faces = mesh_.faces();
141 for (
const label facei : faceIds)
143 if (!zoneSet.
found(facei))
145 newAddressing.
append(facei);
148 if ((
n & normal_) > 0)
167 Info<<
" Removing all faces from faceSet " << setName_
172 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,...
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 select faces based on usage in a faceSet, where the normal vector is used to orien...
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 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.