49 label facei = changedFaces[i];
51 const labelList& fEdges = pp_.faceEdges()[facei];
55 label edgeI = fEdges[fEdgeI];
57 if (!borderEdge_[edgeI] && (edgeRegion[edgeI] == -1))
59 edgeRegion[edgeI] = nZones_;
61 changedEdges[changedI++] = edgeI;
66 changedEdges.setSize(changedI);
79 label edgeI = changedEdges[i];
81 const labelList& eFaces = pp_.edgeFaces()[edgeI];
85 label facei = eFaces[eFacei];
87 if (
operator[](facei) == -1)
89 operator[](facei) = nZones_;
91 changedFaces[changedI++] = facei;
96 changedFaces.setSize(changedI);
102 void Foam::patchZones::markZone(
label facei)
114 changedEdges = faceToEdge(changedFaces, edgeZone);
118 Info<<
"From changedFaces:" << changedFaces.size()
119 <<
" to changedEdges:" << changedEdges.size()
123 if (changedEdges.empty())
128 changedFaces = edgeToFace(changedEdges);
132 Info<<
"From changedEdges:" << changedEdges.size()
133 <<
" to changedFaces:" << changedFaces.size()
137 if (changedEdges.empty())
155 borderEdge_(borderEdge),
161 if (borderEdge.
size() != pp_.nEdges())
164 <<
"borderEdge boolList not same size as number of edges" <<
endl 165 <<
"borderEdge:" << borderEdge.
size() <<
endl 166 <<
"nEdges :" << pp_.nEdges()
175 for (; facei < pp_.size(); facei++)
177 if (
operator[](facei) == -1)
179 operator[](facei) = nZones_;
187 if (facei == pp_.size())
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A list of faces which address into the list of points.
List< label > labelList
A List of labels.
errorManip< error > abort(error &err)
defineTypeNameAndDebug(combustionModel, 0)
patchZones(const primitivePatch &pp, const boolList &borderEdge)
Fills *this with zone of face. Zone is area.