49 void Foam::pointToCell::combine(topoSet& set,
const bool add)
const
52 pointSet loadedSet(
mesh_, setName_);
60 const label pointi = iter.key();
69 else if (option_ ==
EDGE)
74 const face&
f = faces[facei];
78 if (loadedSet.found(
f[fp]) && loadedSet.found(
f.nextLabel(fp)))
98 const pointAction option
109 const polyMesh&
mesh,
110 const dictionary&
dict
135 Info<<
" Adding cells according to pointSet " << setName_
142 Info<<
" Removing cells according to pointSet " << setName_
#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.
pointToCell(const polyMesh &mesh, const word &setName, const pointAction option)
Construct from components.
virtual ~pointToCell()
Destructor.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
static const NamedEnum< pointAction, 2 > pointActionNames_
Names of the valid options.
virtual const faceList & faces() const
Return raw faces.
virtual const labelList & faceOwner() const
Return face owner.
virtual const labelList & faceNeighbour() const
Return face neighbour.
const labelListList & pointCells() const
bool isInternalFace(const label faceIndex) const
Return true if given face label is internal to the mesh.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
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.
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)