53 faceToPoint::typeName,
54 "\n Usage: faceToPoint <faceSet> all\n\n" 55 " Select all points of faces in the faceSet\n\n" 59 Foam::faceToPoint::faceActionNames_;
64 void Foam::faceToPoint::combine(
topoSet&
set,
const bool add)
const 67 faceSet loadedSet(mesh_, setName_);
72 const face&
f = mesh_.faces()[iter.key()];
76 addOrDelete(
set, f[fp], add);
104 setName_(dict.
lookup(
"set")),
105 option_(faceActionNames_.read(dict.
lookup(
"option")))
116 setName_(checkIs(is)),
117 option_(faceActionNames_.read(checkIs(is)))
137 Info<<
" Adding points from face in faceSet " << setName_
144 Info<<
" Removing points from face in faceSet " << setName_
#define forAll(list, i)
Loop across all elements in list.
faceToPoint(const polyMesh &mesh, const word &setName, const faceAction option)
Construct from components.
A face is a list of labels corresponding to mesh vertices.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
Initialise the NamedEnum HashTable from the static list of names.
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
faceAction
Enumeration defining the valid options.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
A class for handling words, derived from string.
virtual ~faceToPoint()
Destructor.
setAction
Enumeration defining the valid actions.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
Class with constructor to add usage string to table.
Mesh consisting of general polyhedral cells.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.