48 "\n Usage: zoneToFace zone\n\n" 49 " Select all faces in the faceZone." 50 " Note:accepts wildcards for zone.\n\n" 56 void Foam::zoneToFace::combine(topoSet&
set,
const bool add)
const 58 bool hasMatched =
false;
60 forAll(mesh_.faceZones(), i)
62 const faceZone& zone = mesh_.faceZones()[i];
64 if (zoneName_.match(zone.name()))
66 const labelList& faceLabels = mesh_.faceZones()[i];
68 Info<<
" Found matching zone " << zone.name()
69 <<
" with " << faceLabels.size() <<
" faces." <<
endl;
76 if (faceLabels[i] < mesh_.nFaces())
78 addOrDelete(
set, faceLabels[i], add);
87 <<
"Cannot find any faceZone named " << zoneName_ <<
endl 88 <<
"Valid names are " << mesh_.faceZones().names() <<
endl;
115 zoneName_(dict.
lookup(
"name"))
127 zoneName_(checkIs(is))
147 Info<<
" Adding all faces of faceZone " << zoneName_ <<
" ..." 154 Info<<
" Removing all faces of faceZone " << zoneName_ <<
" ..." #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...
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.
virtual ~zoneToFace()
Destructor.
zoneToFace(const polyMesh &mesh, const word &zoneName)
Construct from components.
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
A class for handling words, derived from string.
setAction
Enumeration defining the valid actions.
List< label > labelList
A List of labels.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
#define WarningInFunction
Report a warning using Foam::Warning.
Class with constructor to add usage string to table.
Mesh consisting of general polyhedral cells.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.