52 void Foam::cellToFace::combine(topoSet& set,
const bool add)
const
61 cellSet loadedSet(
mesh_, setName_);
68 const label celli = iter.key();
77 else if (option_ ==
BOTH)
88 for (
label facei = 0; facei < nInt; facei++)
90 if (loadedSet.found(own[facei]) && loadedSet.found(nei[facei]))
106 label facei = pp.start();
109 neiInSet[facei-nInt] = loadedSet.found(own[facei]);
124 label facei = pp.start();
127 if (loadedSet.found(own[facei]) && neiInSet[facei-nInt])
143 const polyMesh&
mesh,
145 const cellAction option
156 const polyMesh&
mesh,
157 const dictionary&
dict
182 Info<<
" Adding faces according to cellSet " << setName_
189 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.
virtual ~cellToFace()
Destructor.
cellToFace(const polyMesh &mesh, const word &setName, const cellAction option)
Construct from components.
static const NamedEnum< cellAction, 2 > cellActionNames_
Names of the valid options.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
const Time & time() const
Return time.
const polyBoundaryMesh & boundary() const
Return boundary mesh.
virtual const labelList & faceOwner() const
Return face owner.
virtual const labelList & faceNeighbour() const
Return face neighbour.
label nInternalFaces() const
const cellList & cells() const
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.
static fileName localPath(const polyMesh &mesh, const word &name)
Name of file set will use.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const fvPatchList & patches
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
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.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
void add(GeometricField< typename typeOfSum< Type1, Type2 >::type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type1, GeoMesh, PrimitiveField2 > &gf1, const GeometricField< Type2, GeoMesh, PrimitiveField3 > &gf2)
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
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)