Go to the documentation of this file.
57 "\n Usage: cellToFace <cellSet> all|both\n\n"
58 " Select -all : all faces of cells in the cellSet\n"
59 " -both: faces where both neighbours are in the cellSet\n\n"
84 const label cellI = iter.key();
104 for (
label faceI = 0; faceI < nInt; faceI++)
106 if (loadedSet.
found(own[faceI]) && loadedSet.
found(nei[faceI]))
125 neiInSet[faceI-nInt] = loadedSet.
found(own[faceI]);
143 if (loadedSet.
found(own[faceI]) && neiInSet[faceI-nInt])
180 option_(cellActionNames_.read(
dict.
lookup(
"option")))
192 setName_(checkIs(is)),
193 option_(cellActionNames_.read(checkIs(is)))
213 Info<<
" Adding faces according to cellSet " << setName_
220 Info<<
" Removing faces according to cellSet " << setName_
static fileName localPath(const polyMesh &mesh, const word &name)
Name of file set will use.
cellAction
Enumeration defining the valid options.
A class for handling words, derived from string.
bool exists(const fileName &, const bool checkGzip=true)
Does the name exist (as DIRECTORY or FILE) in the file system?
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Class with constructor to add usage string to table.
const Time & time() const
Return time.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const cellList & cells() const
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
word setName_
Name of set to use.
static const NamedEnum< cellAction, 2 > cellActionNames_
Mesh consisting of general polyhedral cells.
static addToUsageTable usage_
Add usage string.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
virtual ~cellToFace()
Destructor.
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)....
A patch is a list of labels that address the faces in the global face list.
virtual const labelList & faceOwner() const
Return face owner.
cellAction option_
Option.
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 nInternalFaces() const
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.
bool found(const Key &) const
Return true if hashedEntry is found in table.
Base class of a source for a topoSet.
A collection of cell labels.
label start() const
Return start label of this patch in the polyMesh face list.
void combine(topoSet &set, const bool add) const
Depending on face to cell option add to or delete from cellSet.
messageStream SeriousError
fileName path() const
Return path.
cellToFace(const polyMesh &mesh, const word &setName, const cellAction option)
Construct from components.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
defineTypeNameAndDebug(combustionModel, 0)
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.