Go to the documentation of this file.
46 setToFaceZone::typeName,
47 "\n Usage: setToFaceZone <faceSet>\n\n"
48 " Select all faces in the faceSet."
75 if (
dict.found(
"cellSet"))
78 <<
"Ignoring entry 'cellSet' - maybe use setsToFaceZone instead ?"
103 if (!isA<faceZoneSet>(set))
106 <<
"Operation only allowed on a faceZoneSet." <<
endl;
112 if (action == topoSetSource::ADD || action == topoSetSource::NEW)
116 Info<<
" Adding all faces from faceSet " << setName_
121 faceSet loadedSet(mesh_, setName_);
128 for (
const label facei : faceLabels)
130 if (!zoneSet.
found(facei))
132 newAddressing.
append(facei);
133 newFlipMap.append(
false);
141 else if (action == topoSetSource::SUBTRACT)
145 Info<<
" Removing all faces from faceSet " << setName_
150 faceSet loadedSet(mesh_, setName_);
160 newAddressing.append(zoneSet.
addressing()[i]);
161 newFlipMap.append(zoneSet.
flipMap()[i]);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
const labelList & addressing() const
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
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.
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?
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (uses stdout - output is on the master only)
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.
Base class of a source for a topoSet.
#define IOWarningInFunction(ios)
Report an IO warning using Foam::Warning.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
setToFaceZone(const polyMesh &mesh, const word &setName)
Construct from components.