64 return ((
n.x()+1) * (
n.y()+1) * (
n.z()+1));
85 ((
n.x()+1) *
n.y() *
n.z())
86 + ((
n.y()+1) *
n.z() *
n.x())
87 + ((
n.z()+1) *
n.x() *
n.y())
103 ((
n.x()-1) *
n.y() *
n.z())
104 + ((
n.y()-1) *
n.z() *
n.x())
105 + ((
n.z()-1) *
n.x() *
n.y())
122 + (2 *
n.z() *
n.x())
123 + (2 *
n.x() *
n.y())
190 checkIndex(i, j,
k,
true);
195 return (i + ((
n.x()+1) * (j + (
n.y()+1) *
k)));
202 checkIndex(ijk,
true);
207 return (ijk.
x() + ((
n.x()+1) * (ijk.
y() + (
n.y()+1) * ijk.
z())));
label nCells() const
The number of mesh cells (nx*ny*nz) in the i-j-k mesh.
const Cmpt & y() const noexcept
Access to the vector y component.
label k
Boltzmann constant.
label nPoints() const
The number of mesh points (nx+1)*(ny+1)*(nz+1) in the i-j-k mesh.
label nInternalFaces() const
The number of internal faces in the i-j-k mesh.
label pointLabel(const label i, const label j, const label k) const
The linear point index for an i-j-k position.
ijkMesh()
Construct zero-sized.
const labelVector & sizes() const
The (i,j,k) addressing dimensions.
label index(const label i, const label j, const label k) const
Linear addressing index (offset) for an (i,j,k) position.
const Cmpt & x() const noexcept
Access to the vector x component.
label nFaces() const
The total number of mesh faces in the i-j-k mesh.
A simple i-j-k (row-major order) to linear addressing.
const Cmpt & z() const noexcept
Access to the vector z component.
bool empty() const
Addressing is considered empty if any component is zero.
label size() const
Return the total i*j*k size.
Vector< label > labelVector
Vector of labels.
label cellLabel(const label i, const label j, const label k) const
The linear cell index for an i-j-k position - same as index()
label nBoundaryFaces() const
The number of boundary faces in the i-j-k mesh.