68 normal_(dict.
lookup(
"normal"))
86 if (!isA<faceZoneSet>(
set))
89 <<
"Operation only allowed on a faceZoneSet." <<
endl;
97 Info<<
" Adding all faces from faceSet " << setName_
107 const faceList& faces = mesh_.faces();
112 label facei = iter.key();
114 if (!fzSet.
found(facei))
116 newAddressing.append(facei);
118 const vector a = faces[facei].area(points);
119 if ((a & normal_) > 0)
125 newFlipMap.append(
true);
136 Info<<
" Removing all faces from faceSet " << setName_
140 faceSet loadedSet(mesh_, setName_);
151 newFlipMap.append(fzSet.
flipMap()[i]);
setAndNormalToFaceZone(const polyMesh &mesh, const word &setName, const vector &normal)
Construct from components.
const boolList & flipMap() const
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
bool found(const Key &) const
Return true if hashedEntry is found in table.
A class for handling words, derived from string.
setAction
Enumeration defining the valid actions.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
void updateSet()
Sort addressing and make faceSet part consistent with addressing.
Like faceSet but -reads data from faceZone -updates faceZone when writing.
General set of labels of mesh quantity (points, cells, faces).
#define WarningInFunction
Report a warning using Foam::Warning.
Mesh consisting of general polyhedral cells.
const labelList & addressing() const
virtual ~setAndNormalToFaceZone()
Destructor.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
ITstream & lookupBackwardsCompatible(const wordList &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream, trying a list of keywords.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.