Go to the documentation of this file.
61 zoneToPoint::typeName,
62 "\n Usage: zoneToPoint zone\n\n"
63 " Select all points in the pointZone."
64 " Note:accepts wildcards for zone.\n\n"
70 void Foam::zoneToPoint::combine(topoSet& set,
const bool add)
const
72 bool hasMatched =
false;
76 if (selectedZones_.
match(zone.name()))
84 Info<<
" Found matching zone " << zone.name()
102 <<
"Cannot find any pointZone matching "
119 selectedZones_(
one(), zoneName)
135 selectedZones_.resize(1);
136 selectedZones_.first() =
149 selectedZones_(
one(),
wordRe(checkIs(is)))
165 Info<<
" Adding all points of point zones "
175 Info<<
" Removing all points of point zones "
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
List< label > labelList
A List of labels.
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), which can be used to avoid manipulating objects that are...
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.
bool match(const std::string &text, bool literal=false) const
Smart match as literal or regex, stopping on the first match.
zoneToPoint(const polyMesh &mesh, const wordRe &zoneName)
Construct from components.
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.
const pointZoneMesh & pointZones() const
Return point zone mesh.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
General set of labels of mesh quantity (points, cells, faces).
Base class of a topoSet source for selecting points.
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.
wordList names() const
A list of the zone names.
FlatOutput< Container > flatOutput(const Container &obj, label len=0)
Global flatOutput function.
label nPoints() const
Number of mesh points.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
const polyMesh & mesh_
Reference to the mesh.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
labelList pointLabels(nPoints, -1)
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const