Go to the documentation of this file.
58 "\n Usage: faceToCell <faceSet> neighbour|owner|any|all\n\n"
59 " Select cells that are the owner|neighbour|any"
60 " of the faces in the faceSet or where all faces are in the faceSet\n\n"
78 const label faceI = iter.key();
107 const label faceI = iter.key();
112 if (fndOwn == facesPerCell.end())
114 facesPerCell.insert(own, 1);
127 if (fndNei == facesPerCell.end())
129 facesPerCell.insert(nei, 1);
142 const label cellI = iter.key();
178 option_(faceActionNames_.read(
dict.
lookup(
"option")))
190 setName_(checkIs(is)),
191 option_(faceActionNames_.read(checkIs(is)))
211 Info<<
" Adding cells according to faceSet " << setName_
218 Info<<
" Removing cells according to faceSet " << setName_
faceAction
Enumeration defining the valid options.
A class for handling words, derived from string.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
faceAction option_
Option.
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Class with constructor to add usage string to table.
virtual ~faceToCell()
Destructor.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const cellList & cells() const
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
Mesh consisting of general polyhedral cells.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
static addToUsageTable usage_
Add usage string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual const labelList & faceOwner() const
Return face owner.
General set of labels of mesh quantity (points, cells, faces).
A list of keyword definitions, which are a keyword followed by any number of values (e....
label size() const
Return number of elements in table.
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.
Base class of a source for a topoSet.
faceToCell(const polyMesh &mesh, const word &setName, const faceAction option)
Construct from components.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
bool isInternalFace(const label faceIndex) const
Return true if given face label is internal to the mesh.
void size(const label)
Override size to be inconsistent with allocated storage.
word setName_
Name of set to use.
void combine(topoSet &set, const bool add) const
Depending on face to cell option add to or delete from cellSet.
defineTypeNameAndDebug(combustionModel, 0)
static const NamedEnum< faceAction, 4 > faceActionNames_
virtual const labelList & faceNeighbour() const
Return face neighbour.
void addOrDelete(topoSet &set, const label cellI, const bool) const
Add (if bool) cellI to set or delete cellI from set.
Initialise the NamedEnum HashTable from the static list of names.