Go to the documentation of this file.
71 const label start = boundaries[patchI].patchStart();
72 const label size = boundaries[patchI].patchSize();
74 for(
label fI=0;fI<size;++fI)
76 const label faceI = start + fI;
77 const face& bf = faces[faceI];
80 origFaceLabel.
append(faceI);
90 patchTypes[ptchI] = surfPatches[ptchI].geometricType();
96 patchNames[bottomEmptyId] =
"bottomEmptyFaces";
105 # pragma omp parallel for schedule(dynamic, 50)
109 const label faceI = origFaceLabel[bfI];
110 const face&
f = faces[faceI];
112 bndFaceOwner[bfI] = owner[faceI];
114 if( !activeFace[faceI] )
116 if( zMinPoint[
f[0]] )
118 bndFacePatch[bfI] = bottomEmptyId;
120 else if( zMaxPoint[
f[0]] )
122 bndFacePatch[bfI] = topEmptyId;
136 bndFacePatch[bfI] = patchI;
154 modBnd[patchI].patchType() =
patchTypes[patchI];
const labelList & owner() const
owner and neighbour cells for faces
void append(const T &e)
Append an element at the end of the list.
#define forAll(list, i)
Loop across all elements in list.
const boolList & activeFace() const
const access to active faces
Template functions to aid in the implementation of demand driven data.
void findNearestSurfacePoint(point &nearest, scalar &distSq, label &nearestTriangle, label ®ion, const point &p) const
find nearest surface point for vertex and its region
void replaceBoundary(const wordList &patchNames, const VRWGraph &boundaryFaces, const labelLongList &faceOwners, const labelLongList &facePatches)
replace the boundary with new boundary faces
const pointFieldPMG & points() const
access to points
const boolList & zMinPoints() const
const faceListPMG & faces() const
access to faces
wordList patchTypes(nPatches)
PtrList< boundaryPatch > & boundariesAccess()
access to boundary data
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const geometricSurfacePatchList & patches() const
access to patches
label size() const
Returns the number of rows.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
wordList patchNames(nPatches)
const boolList & zMaxPoints() const
void mapVerticesOntoSurfacePatches()
void appendList(const ListType &l)
Append a list as a row at the end of the graph.
const PtrList< boundaryPatch > & boundaries() const
ordinary boundaries
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const dimensionedScalar c
Speed of light in a vacuum.
A face is a list of labels corresponding to mesh vertices.
void size(const label)
Override size to be inconsistent with allocated storage.
const triSurf & surface() const
return a reference to the surface
void adjustZCoordinates()
adjust z coordinates of the mesh to the ones in the surface mesh