95 return vertices_[blockShape_[i]];
109 + j*(density_.x() + 1)
110 +
k*(density_.x() + 1)*(density_.y() + 1)
122 if (facei == 0 || facei == 1)
127 + j*(density_.y() + 1)
130 else if (facei == 2 || facei == 3)
135 + j*(density_.x() + 1)
143 + j*(density_.x() + 1)
154 bool iEnd = (i == 0 || i == density_.x());
155 bool jEnd = (j == 0 || j == density_.y());
156 bool kEnd = (
k == 0 ||
k == density_.z());
158 return (iEnd && jEnd && kEnd);
167 bool iEnd = (i == 0 || i == density_.x());
168 bool jEnd = (j == 0 || j == density_.y());
169 bool kEnd = (
k == 0 ||
k == density_.z());
171 return (iEnd && jEnd) || (iEnd && kEnd) || (jEnd && kEnd);
180 if (i == 0 && curvedFaces_[0] == -1)
return true;
181 if (i == density_.x() && curvedFaces_[1] == -1)
return true;
182 if (j == 0 && curvedFaces_[2] == -1)
return true;
183 if (j == density_.y() && curvedFaces_[3] == -1)
return true;
184 if (
k == 0 && curvedFaces_[4] == -1)
return true;
185 if (
k == density_.z() && curvedFaces_[5] == -1)
return true;
187 bool iEnd = (i == 0 || i == density_.x());
188 bool jEnd = (j == 0 || j == density_.y());
189 bool kEnd = (
k == 0 ||
k == density_.z());
191 return (iEnd && jEnd) || (iEnd && kEnd) || (jEnd && kEnd);
A 1D vector of objects of type <T> with a fixed size <Size>.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
const FixedList< label, 6 > & curvedFaces() const
Curved-face labels for each block-face (-1 for flat faces)
bool edge(const label i, const label j, const label k) const
Return true if point i,j,k addresses a block edge.
const cellShape & blockShape() const
Return the block shape.
const word & zoneName() const
Return the (optional) zone name.
bool flatFaceOrEdge(const label i, const label j, const label k) const
Return true if point i,j,k addresses a block flat face or edge.
const blockFaceList & faces() const
Return reference to the list of curved faces.
const point & blockPoint(const label i) const
Return block point for local label i.
label facePointLabel(const label facei, const label i, const label j) const
Face vertex label offset for a particular i,j,k position.
const pointField & vertices() const
Reference to point field defining the block mesh.
bool vertex(const label i, const label j, const label k) const
Return true if point i,j,k addresses a block vertex.
label pointLabel(const label i, const label j, const label k) const
Vertex label offset for a particular i,j,k position.
label nCells() const
Return the number of cells.
const Vector< label > & density() const
Return the mesh density (number of cells) in the i,j,k directions.
label nPoints() const
Return the number of points.
label nCurvedFaces() const
Number of curved faces in this block.
An analytical geometric cellShape.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.