Go to the documentation of this file.
60 patchToCell::typeName,
61 "\n Usage: patchToCell patch\n\n"
62 " Select cells attached to patch. Note:accepts wildcards for patch.\n\n"
68 void Foam::patchToCell::combine(topoSet& set,
const bool add)
const
77 for (
const label patchi : patchIDs)
83 Info<<
" Found matching patch " << pp.name()
84 <<
" with " << pp.size() <<
" faces." <<
endl;
89 label facei = pp.start();
90 facei < pp.start() + pp.size();
101 <<
"Cannot find any patches matching "
118 selectedPatches_(
one(), patchName)
134 selectedPatches_.resize(1);
135 selectedPatches_.first() =
148 selectedPatches_(
one(),
wordRe(checkIs(is)))
164 Info<<
" Adding cells associated with patches "
174 Info<<
" Removing cells associated with patches "
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
patchToCell(const polyMesh &mesh, const wordRe &patchName)
Construct from components.
Class with constructor to add usage string to table.
A class representing the concept of 1 (one), which can be used to avoid manipulating objects that are...
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool verbose_
Verbosity (default: true)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
messageStream Info
Information stream (uses stdout - output is on the master only)
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
virtual const labelList & faceOwner() const
Return face owner.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
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 the set.
FlatOutput< Container > flatOutput(const Container &obj, label len=0)
Global flatOutput function.
const std::string patch
OpenFOAM patch number as a std::string.
Base class of a topoSet source for selecting cells.
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 with label keys and label hasher.
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