42 patchToFace::typeName,
43 "\n Usage: patchToFace patch\n\n" 44 " Select all faces in the patch. Note:accepts wildcards for patch.\n\n" 50 void Foam::patchToFace::combine(topoSet&
set,
const bool add)
const 54 List<wordRe>(1, patchName_),
61 label patchi = iter.key();
63 const polyPatch& pp = mesh_.boundaryMesh()[
patchi];
65 Info<<
" Found matching patch " << pp.name()
66 <<
" with " << pp.size() <<
" faces." <<
endl;
70 label facei = pp.start();
71 facei < pp.start() + pp.size();
75 addOrDelete(
set, facei, add);
82 <<
"Cannot find any patch named " << patchName_ <<
endl 83 <<
"Valid names are " << mesh_.boundaryMesh().names() <<
endl;
108 patchName_(dict.
lookup(
"name"))
119 patchName_(checkIs(is))
139 Info<<
" Adding all faces of patch " << patchName_ <<
" ..." <<
endl;
145 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.