47 faceToPoint::typeName,
48 "\n Usage: faceToPoint <faceSet> all\n\n" 49 " Select all points of faces in the faceSet\n\n" 56 Foam::faceToPoint::faceActionNames_
58 { faceAction::ALL,
"all" },
64 void Foam::faceToPoint::combine
104 const polyMesh&
mesh,
106 const faceAction option
109 topoSetPointSource(
mesh),
118 const polyMesh&
mesh,
119 const dictionary&
dict 125 option_(faceActionNames_.
get(
"option",
dict))
136 names_(
Foam::
one{}, word(checkIs(is))),
138 option_(faceActionNames_.read(checkIs(is)))
154 Info<<
" Adding face points in face " 155 << (isZone_ ?
"zones: " :
"sets: ")
159 for (
const word& setName : names_)
168 Info<<
" Removing face points in face " 169 << (isZone_ ?
"zones: " :
"sets: ")
173 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.
The topoSetPointSource is a intermediate class for handling topoSet sources for selecting points...
faceToPoint(const polyMesh &mesh, const word &setName, const faceAction option)
Construct from components.
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)
labelList faceLabels(nFaceLabels)
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.
Base class of a source for a topoSet.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
AccessType combine(const UList< T > &lists, AccessOp aop=accessOp< T >())
Combines sub-lists into a single list.
faceAction
Enumeration defining the valid options.
setAction
Enumeration defining various actions.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
virtual const faceList & faces() const
Return raw faces.
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)
const faceZoneMesh & faceZones() const noexcept
Return face zone mesh.
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.
Do not request registration (bool: false)
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.