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