Go to the documentation of this file.
83 return vertices_[blockShape_[i]];
94 if (facei == 0 || facei == 1)
100 + j*(sizes().
y() + 1)
103 else if (facei == 2 || facei == 3)
109 + j*(sizes().
x() + 1)
118 + j*(sizes().
x() + 1)
126 const label i,
const label j,
const label
k
129 bool iEnd = (i == 0 || i == sizes().x());
130 bool jEnd = (j == 0 || j == sizes().y());
131 bool kEnd = (
k == 0 ||
k == sizes().z());
133 return (iEnd && jEnd && kEnd);
139 const label i,
const label j,
const label
k
142 bool iEnd = (i == 0 || i == sizes().x());
143 bool jEnd = (j == 0 || j == sizes().y());
144 bool kEnd = (
k == 0 ||
k == sizes().z());
146 return (iEnd && jEnd) || (iEnd && kEnd) || (jEnd && kEnd);
152 const label i,
const label j,
const label
k
155 if (i == 0 && curvedFaces_[0] == -1)
return true;
156 if (i == sizes().
x() && curvedFaces_[1] == -1)
return true;
157 if (j == 0 && curvedFaces_[2] == -1)
return true;
158 if (j == sizes().
y() && curvedFaces_[3] == -1)
return true;
159 if (
k == 0 && curvedFaces_[4] == -1)
return true;
160 if (
k == sizes().z() && curvedFaces_[5] == -1)
return true;
162 return this->
edge(i, j,
k);
const point & blockPoint(const label i) const
Return block point for local label i.
const pointField & vertices() const
Reference to point field defining the block mesh.
A class for handling words, derived from Foam::string.
const cellShape & blockShape() const
Return the block shape.
label facePointLabel(const direction facei, const label i, const label j) const
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
const labelVector & sizes() const
The (i,j,k) addressing dimensions.
const word & zoneName() const
Return the (optional) zone name.
bool vertex(const label i, const label j, const label k) const
Return true if point i,j,k addresses a block vertex.
label nCurvedFaces() const
Number of curved faces in this block.
const FixedList< label, 6 > & curvedFaces() const
Curved-face labels for each block-face (-1 for flat faces)
const List< gradingDescriptors > & grading() const
Expansion ratios in all directions.
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.
An analytical geometric cellShape.
bool edge(const label i, const label j, const label k) const
Return true if point i,j,k addresses a block edge.
A 1D vector of objects of type <T> with a fixed length <N>.
label k
Boltzmann constant.
const labelVector & density() const
Return the mesh density (number of cells) in the i,j,k directions.
const blockFaceList & blockFaces() const
Return reference to the list of curved faces.