48 pointToCell::typeName,
49 "\n Usage: pointToCell <pointSet> any|edge\n\n" 50 " Select all cells with any point ('any') or any edge ('edge')" 51 " in the pointSet\n\n" 58 Foam::pointToCell::pointActionNames_
60 { pointAction::ANY,
"any" },
61 { pointAction::EDGE,
"edge" },
67 template<
class Selector>
68 void Foam::pointToCell::combineImpl
85 else if (option_ ==
EDGE)
91 const face&
f = faces[facei];
113 void Foam::pointToCell::combine
141 const polyMesh&
mesh,
143 const pointAction option
146 topoSetCellSource(
mesh),
155 const polyMesh&
mesh,
156 const dictionary&
dict 162 option_(pointActionNames_.
get(
"option",
dict))
173 names_(
Foam::
one{}, word(checkIs(is))),
175 option_(pointActionNames_.read(checkIs(is)))
191 Info<<
" Adding cells according to point " 192 << (isZone_ ?
"zones: " :
"sets: ")
196 for (
const word& setName : names_)
205 Info<<
" Removing cells according to point " 206 << (isZone_ ?
"zones: " :
"sets: ")
210 for (
const word& setName : names_)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
labelList pointLabels(nPoints, -1)
virtual const labelList & faceNeighbour() const
Return face neighbour.
Create a new set and ADD elements to it.
Add elements to current set.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells...
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
Macros for easy insertion into run-time selection tables.
bool isInternalFace(const label faceIndex) const noexcept
Return true if given face label is internal to the mesh.
Base class of a source for a topoSet.
#define forAll(list, i)
Loop across all elements in list.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
List< face > faceList
List of faces.
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
setAction
Enumeration defining various actions.
virtual const labelList & faceOwner() const
Return face owner.
virtual const faceList & faces() const
Return raw faces.
pointAction
Enumeration defining the valid options.
const labelListList & pointCells() const
const polyMesh & mesh_
Reference to the mesh.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
Subtract elements from current set.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
Class with constructor to add usage string to table.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.
Do not request registration (bool: false)
pointToCell(const polyMesh &mesh, const word &setName, const pointAction option)
Construct from components.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to b...
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.