Go to the documentation of this file.
44 topoSetFaceZoneSource,
45 setAndNormalToFaceZone,
50 topoSetFaceZoneSource,
51 setAndNormalToFaceZone,
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;
122 if (action == topoSetSource::ADD || action == topoSetSource::NEW)
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)
154 newFlipMap.append(
true);
163 else if (action == topoSetSource::SUBTRACT)
167 Info<<
" Removing all faces from faceSet " << setName_
172 faceSet loadedSet(mesh_, setName_);
182 newAddressing.append(zoneSet.
addressing()[i]);
183 newFlipMap.append(zoneSet.
flipMap()[i]);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
const labelList & addressing() const
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
A class for handling words, derived from Foam::string.
void updateSet()
Sort addressing and make faceSet part consistent with addressing.
Class with constructor to add usage string to table.
The topoSetFaceZoneSource is a intermediate class for handling topoSet sources for selecting face zon...
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
const boolList & flipMap() const
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
virtual bool found(const label id) const
Has the given index?
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (stdout output on master, null elsewhere)
DynamicList< T, SizeMin > & append(const T &val)
Append an element to the end of this list.
void transfer(List< T > &list)
Like faceSet but -reads data from faceZone -updates faceZone when writing.
General set of labels of mesh quantity (points, cells, faces).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
setAndNormalToFaceZone(const polyMesh &mesh, const word &setName, const vector &normal)
Construct from components.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.