87 return vertices_[blockShape_[i]];
98 if (facei == 0 || facei == 1)
104 + j*(sizes().
y() + 1)
107 else if (facei == 2 || facei == 3)
113 + j*(sizes().
x() + 1)
122 + j*(sizes().
x() + 1)
130 const label i,
const label j,
const label
k 133 bool iEnd = (i == 0 || i == sizes().x());
134 bool jEnd = (j == 0 || j == sizes().y());
135 bool kEnd = (
k == 0 ||
k == sizes().z());
137 return (iEnd && jEnd && kEnd);
143 const label i,
const label j,
const label
k 146 bool iEnd = (i == 0 || i == sizes().x());
147 bool jEnd = (j == 0 || j == sizes().y());
148 bool kEnd = (
k == 0 ||
k == sizes().z());
150 return (iEnd && jEnd) || (iEnd && kEnd) || (jEnd && kEnd);
156 const label i,
const label j,
const label
k 159 if (i == 0 && curvedFaces_[0] < 0)
return true;
160 if (i == sizes().
x() && curvedFaces_[1] < 0)
return true;
162 if (j == 0 && curvedFaces_[2] < 0)
return true;
163 if (j == sizes().
y() && curvedFaces_[3] < 0)
return true;
165 if (
k == 0 && curvedFaces_[4] < 0)
return true;
166 if (
k == sizes().z() && curvedFaces_[5] < 0)
return true;
168 return this->
edge(i, j,
k);
bool vertex(const label i, const label j, const label k) const
True if point i,j,k addresses a block vertex.
A 1D vector of objects of type <T> with a fixed length <N>.
An analytical geometric cellShape.
const blockFaceList & blockFaces() const noexcept
Return reference to the list of curved faces.
label facePointLabel(const direction facei, const label i, const label j) const
Face vertex label offset for a particular i,j,k position on hex face (0-5)
label k
Boltzmann constant.
label nCurvedFaces() const noexcept
Number of curved faces in this block.
const point & blockPoint(const label i) const
Return block point for local label i.
const cellShape & blockShape() const noexcept
Return the block shape.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
const List< gradingDescriptors > & grading() const noexcept
Expansion ratios in all directions.
A class for handling words, derived from Foam::string.
const word & zoneName() const noexcept
Return the (optional) zone name.
const labelVector & sizes() const
The (i,j,k) addressing dimensions.
const pointField & vertices() const noexcept
Reference to point field defining the block mesh.
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 labelVector & density() const noexcept
The mesh density (number of cells) in the i,j,k directions.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const FixedList< label, 6 > & curvedFaces() const noexcept
Curved-face labels for each block-face (-1 for flat faces)
bool edge(const label i, const label j, const label k) const
True if point i,j,k addresses a block edge.