49 setToFaceZone::typeName,
50 "\n Usage: setToFaceZone <faceSet>\n\n" 51 " Select all faces in the faceSet." 78 if (
dict.found(
"cellSet"))
81 <<
"Ignoring entry 'cellSet' - maybe use setsToFaceZone instead ?" 93 topoSetFaceZoneSource(
mesh),
106 if (!isA<faceZoneSet>(
set))
109 <<
"Operation only allowed on a faceZoneSet." <<
endl;
114 faceZoneSet& zoneSet = refCast<faceZoneSet>(
set);
120 Info<<
" Adding all faces from face set: " 121 << setName_ <<
" ..." <<
endl;
129 DynamicList<label> newAddressing(zoneSet.addressing());
130 DynamicList<bool> newFlipMap(zoneSet.flipMap());
134 if (!zoneSet.found(facei))
136 newAddressing.
append(facei);
137 newFlipMap.append(
false);
141 zoneSet.addressing().transfer(newAddressing);
142 zoneSet.flipMap().transfer(newFlipMap);
149 Info<<
" Removing all faces from face set: " 150 << setName_ <<
" ..." <<
endl;
157 DynamicList<label> newAddressing(zoneSet.addressing().size());
158 DynamicList<bool> newFlipMap(zoneSet.flipMap().size());
160 forAll(zoneSet.addressing(), i)
162 if (!loadedSet.found(zoneSet.addressing()[i]))
164 newAddressing.append(zoneSet.addressing()[i]);
165 newFlipMap.append(zoneSet.flipMap()[i]);
168 zoneSet.addressing().transfer(newAddressing);
169 zoneSet.flipMap().transfer(newFlipMap);
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void append(const T &val)
Append an element at the end of the list.
Create a new set and ADD elements to it.
Add elements to current set.
Ostream & endl(Ostream &os)
Add newline and flush stream.
labelList faceLabels(nFaceLabels)
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
A class for handling words, derived from Foam::string.
setAction
Enumeration defining various actions.
defineTypeNameAndDebug(combustionModel, 0)
setToFaceZone(const polyMesh &mesh, const word &setName)
Construct from components.
General set of labels of mesh quantity (points, cells, faces).
Subtract elements from current set.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
#define WarningInFunction
Report a warning using Foam::Warning.
Class with constructor to add usage string to table.
messageStream Info
Information stream (stdout output on master, null elsewhere)
#define IOWarningInFunction(ios)
Report an IO warning using Foam::Warning.
The topoSetFaceZoneSource is a intermediate class for handling topoSet sources for selecting face zon...
Mesh consisting of general polyhedral cells.
Do not request registration (bool: false)
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)