47 patchToFace::typeName,
48 "\n Usage: patchToFace patch\n\n" 49 " Select all faces in the patch. Note:accepts wildcards for patch.\n\n" 55 void Foam::patchToFace::combine(topoSet&
set,
const bool add)
const 59 List<wordRe>(1, patchName_),
66 label patchi = iter.key();
68 const polyPatch& pp = mesh_.boundaryMesh()[
patchi];
70 Info<<
" Found matching patch " << pp.name()
71 <<
" with " << pp.size() <<
" faces." <<
endl;
75 label facei = pp.start();
76 facei < pp.start() + pp.size();
80 addOrDelete(
set, facei, add);
87 <<
"Cannot find any patch named " << patchName_ <<
endl 88 <<
"Valid names are " << mesh_.boundaryMesh().names() <<
endl;
103 patchName_(patchName)
115 patchName_(dict.
lookup(
"name"))
127 patchName_(checkIs(is))
147 Info<<
" Adding all faces of patch " << patchName_ <<
" ..." <<
endl;
153 Info<<
" Removing all faces of patch " << patchName_ <<
" ..." intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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 void applyToSet(const topoSetSource::setAction action, topoSet &) const
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
virtual ~patchToFace()
Destructor.
A class for handling words, derived from string.
setAction
Enumeration defining the valid actions.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
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.
patchToFace(const polyMesh &mesh, const word &patchName)
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.