Go to the documentation of this file.
30 #include "indirectPrimitivePatch.H"
31 #include "PatchTools.H"
52 regionToFace::typeName,
53 "\n Usage: regionToFace <faceSet> (x y z)\n\n"
54 " Select all faces in the connected region of the faceSet"
55 " starting from the point.\n"
77 if (Pstream::myProcNo() == procI)
82 changedEdges.
append(fEdges[i]);
103 forAll(allFaceInfo, faceI)
105 if (allFaceInfo[faceI].region() == zoneI)
115 Info<<
" Loading subset " <<
setName_ <<
" to delimit search region."
144 ni.
first().setPoint(fc);
145 ni.
first().setIndex(i);
152 Info<<
" Found nearest face at " << ni.
first().rawPoint()
153 <<
" on processor " << ni.
second().second()
154 <<
" face " << ni.
first().index()
169 if (faceRegion[faceI] == 0)
184 const point& nearPoint
189 nearPoint_(nearPoint)
214 setName_(checkIs(is)),
215 nearPoint_(checkIs(is))
235 Info<<
" Adding all faces of connected region of set "
237 <<
" starting from point "
238 << nearPoint_ <<
" ..." <<
endl;
244 Info<<
" Removing all cells of connected region of set "
246 <<
" starting from point "
247 << nearPoint_ <<
" ..." <<
endl;
virtual const pointField & points() const
Return raw points.
word setName_
Name of set to use.
A class for handling words, derived from string.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
List< Key > toc() const
Return the table of contents.
#define forAll(list, i)
Loop across all elements in list.
const Type2 & second() const
Return second.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
AccessType combine(const List< T > &, AccessOp aop=accessOp< T >())
Combines sublists into one big list.
Wave propagation of information along patch. Every iteration information goes through one layer of fa...
label nEdges() const
Return number of edges in patch.
Class with constructor to add usage string to table.
PrimitivePatch< face, IndirectList, const pointField & > indirectPrimitivePatch
Foam::indirectPrimitivePatch.
void calc(const argList &args, const Time &runTime, const fvMesh &mesh)
const Type1 & first() const
Return first.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
void combineReduce(const List< UPstream::commsStruct > &comms, T &Value, const CombineOp &cop, const int tag, const label comm)
Ostream & endl(Ostream &os)
Add newline and flush stream.
setAction
Enumeration defining the valid actions.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
const labelListList & faceEdges() const
Return face-edge addressing.
Mesh consisting of general polyhedral cells.
static addToUsageTable usage_
Add usage string.
regionToFace(const polyMesh &mesh, const word &setName, const point &nearPoint)
Construct from components.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A subset of mesh faces organised as a primitive patch.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A List with indirect addressing.
General set of labels of mesh quantity (points, cells, faces).
void markZone(const indirectPrimitivePatch &patch, const label procI, const label faceI, const label zoneI, labelList &faceZone) const
Walk edge-face-edge.
A list of keyword definitions, which are a keyword followed by any number of values (e....
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.
Base class of a source for a topoSet.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
point nearPoint_
Coordinate that is nearest/on connected region.
virtual const faceList & faces() const
Return raw faces.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
PointIndexHit< point > pointIndexHit
virtual ~regionToFace()
Destructor.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensionedScalar sqrt(const dimensionedScalar &ds)
Transport of region for use in PatchEdgeFaceWave.
const Field< PointType > & faceCentres() const
Return face centres for patch.
A 2-tuple for storing two objects of different types.
void combine(topoSet &set, const bool add) const
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
void addOrDelete(topoSet &set, const label cellI, const bool) const
Add (if bool) cellI to set or delete cellI from set.
A list of faces which address into the list of points.