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();
85 else if (option_ ==
BOTH)
96 for (
label facei = 0; facei < nInt; facei++)
98 if (loadedSet.found(own[facei]) && loadedSet.found(nei[facei]))
114 label facei = pp.start();
117 neiInSet[facei-nInt] = loadedSet.found(own[facei]);
132 label facei = pp.start();
135 if (loadedSet.found(own[facei]) && neiInSet[facei-nInt])
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_
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
Initialise the NamedEnum HashTable from the static list of names.
fileName path() const
Explicitly inherit path from TimePaths to disambiguate from.
A topoSetSource to select a faceSet from cells.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
cellToFace(const polyMesh &mesh, const word &setName, const cellAction option)
Construct from components.
cellAction
Enumeration defining the valid options.
virtual ~cellToFace()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const Time & time() const
Return time.
Mesh consisting of general polyhedral cells.
virtual const labelList & faceOwner() const
Return face owner.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
virtual const labelList & faceNeighbour() const
Return face neighbour.
label nInternalFaces() const
const cellList & cells() const
Base class of a source for a topoSet.
void addOrDelete(topoSet &set, const label celli, const bool) const
Add (if bool) celli to set or delete celli from set.
setAction
Enumeration defining the valid actions.
General set of labels of mesh quantity (points, cells, faces).
static fileName localPath(const polyMesh &mesh, const word &name)
Name of file set will use.
A class for handling words, derived from string.
const fvPatchList & patches
bool read(const char *, int32_t &)
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool exists(const fileName &, const bool checkVariants=true, const bool followLink=true)
Does the name exist (as directory or file) in the file system?
List< bool > boolList
Bool container classes.
messageStream SeriousError
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
defineTypeNameAndDebug(combustionModel, 0)
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)