55 Foam::cellToFace::cellActionNames_;
60 void Foam::cellToFace::combine(
topoSet&
set,
const bool add)
const 69 cellSet loadedSet(mesh_, setName_);
76 const label celli = iter.key();
77 const labelList& cFaces = mesh_.cells()[celli];
81 addOrDelete(
set, cFaces[cFacei], add);
85 else if (option_ == BOTH)
89 const label nInt = mesh_.nInternalFaces();
91 const labelList& nei = mesh_.faceNeighbour();
96 for (
label facei = 0; facei < nInt; facei++)
98 if (loadedSet.
found(own[facei]) && loadedSet.
found(nei[facei]))
100 addOrDelete(
set, facei, add);
106 boolList neiInSet(mesh_.nFaces()-nInt,
false);
117 neiInSet[facei-nInt] = loadedSet.
found(own[facei]);
135 if (loadedSet.
found(own[facei]) && neiInSet[facei-nInt])
137 addOrDelete(
set, facei, add);
169 setName_(dict.
lookup(
"set")),
170 option_(cellActionNames_.read(dict.
lookup(
"option")))
190 Info<<
" Adding faces according to cellSet " << setName_
197 Info<<
" Removing faces according to cellSet " << setName_
const fvPatchList & patches
bool exists(const fileName &, const bool checkVariants=true, const bool followLink=true)
Does the name exist (as directory or file) in the file system?
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
static fileName localPath(const polyMesh &mesh, const word &name)
Name of file set will use.
cellAction
Enumeration defining the valid options.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Initialise the NamedEnum HashTable from the static list of names.
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
messageStream SeriousError
bool found(const Key &) const
Return true if hashedEntry is found in table.
A class for handling words, derived from string.
setAction
Enumeration defining the valid actions.
virtual ~cellToFace()
Destructor.
cellToFace(const polyMesh &mesh, const word &setName, const cellAction option)
Construct from components.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
A collection of cell labels.
label start() const
Return start label of this patch in the polyMesh face list.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.