Go to the documentation of this file.
61 patchToFace::typeName,
62 "\n Usage: patchToFace patch\n\n"
63 " Select all faces in the patch. Note:accepts wildcards for patch.\n\n"
69 void Foam::patchToFace::combine(topoSet&
set,
const bool add)
const
78 for (
const label patchi : patchIDs)
84 Info<<
" Found matching patch " << pp.name()
85 <<
" with " << pp.size() <<
" faces." <<
endl;
90 label facei = pp.start();
91 facei < pp.start() + pp.size();
102 <<
"Cannot find any patches matching "
119 selectedPatches_(
one{}, patchName)
135 selectedPatches_.resize(1);
136 selectedPatches_.first() =
149 selectedPatches_(
one{},
wordRe(checkIs(is)))
165 Info<<
" Adding all faces of patches "
175 Info<<
" Removing all faces of patches "
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Add elements to current set.
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
Class with constructor to add usage string to table.
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
The topoSetFaceSource is a intermediate class for handling topoSet sources for selecting faces.
T getCompat(const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, enum keyType::option=keyType::REGEX) const
Create a new set and ADD elements to it.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
Mesh consisting of general polyhedral cells.
wordList names() const
Return a list of patch names.
bool verbose_
Output verbosity (default: true)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (stdout output on master, null elsewhere)
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
General set of labels of mesh quantity (points, cells, faces).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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.
Subtract elements from current set.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
const std::string patch
OpenFOAM patch number as a std::string.
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool useGroups=true) const
Return the set of patch IDs corresponding to the given names.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
patchToFace(const polyMesh &mesh, const wordRe &patchName)
Construct from components.
const polyMesh & mesh_
Reference to the mesh.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const