47 zoneToPoint::typeName,
48 "\n Usage: zoneToPoint zone\n\n" 49 " Select all points in the pointZone." 50 " Note:accepts wildcards for zone.\n\n" 56 void Foam::zoneToPoint::combine(topoSet&
set,
const bool add)
const 58 bool hasMatched =
false;
60 forAll(mesh_.pointZones(), i)
62 const pointZone& zone = mesh_.pointZones()[i];
64 if (zoneName_.match(zone.name()))
66 const labelList& pointLabels = mesh_.pointZones()[i];
68 Info<<
" Found matching zone " << zone.name()
69 <<
" with " << pointLabels.size() <<
" points." <<
endl;
76 if (pointLabels[i] < mesh_.nPoints())
78 addOrDelete(
set, pointLabels[i], add);
87 <<
"Cannot find any pointZone named " << zoneName_ <<
endl 88 <<
"Valid names are " << mesh_.pointZones().names() <<
endl;
115 zoneName_(dict.
lookup(
"name"))
127 zoneName_(checkIs(is))
147 Info<<
" Adding all points of pointZone " << zoneName_ <<
" ..." 154 Info<<
" Removing all points of pointZone " << 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.
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.
virtual ~zoneToPoint()
Destructor.
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).
#define WarningInFunction
Report a warning using Foam::Warning.
Class with constructor to add usage string to table.
zoneToPoint(const polyMesh &mesh, const word &zoneName)
Construct from components.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
Mesh consisting of general polyhedral cells.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.