44 topoSetFaceZoneSource,
50 topoSetFaceZoneSource,
59 faceZoneToFaceZone::typeName,
60 "\n Usage: faceZoneToFaceZone <faceZone>\n\n" 61 " Select all faces in the faceZone\n\n" 108 if (!isA<faceZoneSet>(
set))
111 <<
"Operation only allowed on a faceZoneSet." <<
endl;
116 faceZoneSet& zoneSet = refCast<faceZoneSet>(
set);
122 Info<<
" Adding all faces from faceZone " << setName_
127 faceZoneSet loadedSet(
mesh_, setName_);
129 DynamicList<label> newAddressing(zoneSet.addressing());
130 DynamicList<bool> newFlipMap(zoneSet.flipMap());
132 forAll(loadedSet.addressing(), i)
134 if (!zoneSet.found(loadedSet.addressing()[i]))
136 newAddressing.append(loadedSet.addressing()[i]);
137 newFlipMap.append(loadedSet.flipMap()[i]);
140 zoneSet.addressing().transfer(newAddressing);
141 zoneSet.flipMap().transfer(newFlipMap);
148 Info<<
" Removing all faces from faceZone " << setName_
153 faceZoneSet loadedSet(
mesh_, setName_);
155 DynamicList<label> newAddressing(zoneSet.addressing().size());
156 DynamicList<bool> newFlipMap(zoneSet.flipMap().size());
158 forAll(zoneSet.addressing(), i)
160 if (!loadedSet.found(zoneSet.addressing()[i]))
162 newAddressing.append(zoneSet.addressing()[i]);
163 newFlipMap.append(zoneSet.flipMap()[i]);
166 zoneSet.addressing().transfer(newAddressing);
167 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.
faceZoneToFaceZone(const polyMesh &mesh, const word &setName)
Construct from components.
bool verbose_
Output verbosity (default: true)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
Create a new set and ADD elements to it.
Add elements to current set.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
A class for handling words, derived from Foam::string.
setAction
Enumeration defining various actions.
const polyMesh & mesh_
Reference to the mesh.
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Subtract elements from current set.
#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)
The topoSetFaceZoneSource is a intermediate class for handling topoSet sources for selecting face zon...
Mesh consisting of general polyhedral cells.