43 zoneToPoint::typeName,
44 "\n Usage: zoneToPoint zone\n\n" 45 " Select all points in the pointZone." 46 " Note:accepts wildcards for zone.\n\n" 52 void Foam::zoneToPoint::combine(topoSet&
set,
const bool add)
const 54 bool hasMatched =
false;
56 forAll(mesh_.pointZones(), i)
58 const pointZone& zone = mesh_.pointZones()[i];
60 if (zoneName_.match(zone.name()))
62 const labelList& pointLabels = mesh_.pointZones()[i];
64 Info<<
" Found matching zone " << zone.name()
65 <<
" with " <<
returnReduce(pointLabels.size(), sumOp<label>())
66 <<
" points." <<
endl;
73 if (pointLabels[i] < mesh_.nPoints())
75 addOrDelete(
set, pointLabels[i], add);
84 <<
"Cannot find any pointZone named " << zoneName_ <<
endl 85 <<
"Valid names are " << mesh_.pointZones().names() <<
endl;
110 zoneName_(dict.
lookup(
"name"))
121 zoneName_(checkIs(is))
141 Info<<
" Adding all points of pointZone " << zoneName_ <<
" ..." 148 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.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
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.