Go to the documentation of this file.
47 patchToFace::typeName,
48 "\n Usage: patchToFace patch\n\n"
49 " Select all faces in the patch. Note:accepts wildcards for patch.\n\n"
66 label patchI = iter.key();
70 Info<<
" Found matching patch " << pp.
name()
71 <<
" with " << pp.size() <<
" faces." <<
endl;
76 faceI < pp.
start() + pp.size();
103 patchName_(patchName)
127 patchName_(checkIs(is))
147 Info<<
" Adding all faces of patch " << patchName_ <<
" ..." <<
endl;
153 Info<<
" Removing all faces of patch " << patchName_ <<
" ..."
A class for handling words, derived from string.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Class with constructor to add usage string to table.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
wordRe patchName_
Name/regular expression of patch.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
Mesh consisting of general polyhedral cells.
wordList names() const
Return a list of patch names.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool empty() const
Return true if the hash table is empty.
A patch is a list of labels that address the faces in the global face list.
General set of labels of mesh quantity (points, cells, faces).
A list of keyword definitions, which are a keyword followed by any number of values (e....
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
static addToUsageTable usage_
Add usage string.
label start() const
Return start label of this patch in the polyMesh face list.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
void combine(topoSet &set, const bool add) const
virtual ~patchToFace()
Destructor.
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool usePatchGroups=true) const
Return the set of patch IDs corresponding to the given names.
patchToFace(const polyMesh &mesh, const word &patchName)
Construct from components.
defineTypeNameAndDebug(combustionModel, 0)
const word & name() const
Return name.
#define WarningInFunction
Report a warning using Foam::Warning.
void addOrDelete(topoSet &set, const label cellI, const bool) const
Add (if bool) cellI to set or delete cellI from set.