Go to the documentation of this file.
48 cellToPoint::typeName,
49 "\n Usage: cellToPoint <cellSet> all\n\n"
50 " Select all points of cells in the cellSet\n\n"
57 Foam::cellToPoint::cellActionNames_
59 { cellAction::ALL,
"all" },
65 void Foam::cellToPoint::combine
73 cellSet loadedSet(
mesh_, setName);
77 for (
const label celli : cellLabels)
81 for (
const label facei : cFaces)
101 names_(
one{}, setName),
114 option_(cellActionNames_.get(
"option",
dict))
132 names_(
one{},
word(checkIs(is))),
133 option_(cellActionNames_.read(checkIs(is)))
149 Info<<
" Adding points in cellSet "
153 for (
const word& setName : names_)
162 Info<<
" Removing points in cellSet "
166 for (
const word& setName : names_)
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
List< label > labelList
A List of labels.
Add elements to current set.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
A class for handling words, derived from Foam::string.
Class with constructor to add usage string to table.
const cellList & cells() const
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
setAction
Enumeration defining the valid actions.
Create a new set and ADD elements to it.
Mesh consisting of general polyhedral cells.
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.
cellAction
Enumeration defining the valid options.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
General set of labels of mesh quantity (points, cells, faces).
The topoSetPointSource is a intermediate class for handling topoSet sources 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 current set.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
virtual const faceList & faces() const
Return raw faces.
cellToPoint(const polyMesh &mesh, const word &setName, const cellAction option)
Construct from components.
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.
const polyMesh & mesh_
Reference to the mesh.
defineTypeNameAndDebug(combustionModel, 0)
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const