48 setAndNormalToFaceZone::typeName,
49 "\n Usage: setAndNormalToFaceZone <faceSet> <normal>\n\n" 50 " Select all faces in the faceSet and orient using normal.\n\n" 76 setName_(dict.
lookup(
"faceSet")),
77 normal_(dict.
lookup(
"normal"))
88 setName_(checkIs(is)),
107 if (!isA<faceZoneSet>(
set))
111 "setAndNormalToFaceZone::applyToSet" 113 "const topoSetSource::setAction, " 116 ) <<
"Operation only allowed on a faceZoneSet." <<
endl;
124 Info<<
" Adding all faces from faceSet " << setName_
134 const faceList& faces = mesh_.faces();
139 label faceI = iter.key();
141 if (!fzSet.
found(faceI))
143 newAddressing.append(faceI);
145 vector n = faces[faceI].normal(points);
146 if ((n & normal_) > 0)
152 newFlipMap.append(
true);
163 Info<<
" Removing all faces from faceSet " << setName_
167 faceSet loadedSet(mesh_, setName_);
178 newFlipMap.append(fzSet.
flipMap()[i]);
const pointField & points
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
setAndNormalToFaceZone(const polyMesh &mesh, const word &setName, const vector &normal)
Construct from components.
General set of labels of mesh quantity (points, cells, faces).
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
virtual ~setAndNormalToFaceZone()
Destructor.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
const labelList & addressing() const
A list of keyword definitions, which are a keyword followed by any number of values (e...
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define WarningIn(functionName)
Report a warning using Foam::Warning.
setAction
Enumeration defining the valid actions.
Macros for easy insertion into run-time selection tables.
Like faceSet but updates faceZone when writing.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
Mesh consisting of general polyhedral cells.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Base class of a source for a topoSet.
const boolList & flipMap() const
Class with constructor to add usage string to table.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
bool found(const Key &) const
Return true if hashedEntry is found in table.
defineTypeNameAndDebug(combustionModel, 0)
void updateSet()
Sort addressing and make faceSet part consistent with addressing.