81 if (i < 0 || i >=
nCells())
85 <<
" is out of range [0," <<
nCells() <<
']' <<
nl
97 return (
operator[](i+1) -
operator[](i));
110 return first() - 0.5*(operator[](1) - first());
122 return 0.5*(operator[](i+1) + operator[](i));
126inline const Foam::scalar&
135 else if (last() < val)
168 return grid_.x().width(i);
174 return grid_.x().width(ijk.
x());
180 return grid_.y().width(j);
186 return grid_.y().width(ijk.
y());
192 return grid_.z().width(
k);
198 return grid_.z().width(ijk.
z());
226 return point(grid_.x()[i], grid_.y()[j], grid_.z()[
k]);
249 return point(grid_.x().C(i), grid_.y().C(j), grid_.z().C(
k));
258 grid_.x().C(ijk.
x()),
259 grid_.y().C(ijk.
y()),
278 return dx(ijk.
x())*
dy(ijk.
y())*
dz(ijk.
z());
Graphite solid properties.
scalar length() const
The difference between min/max values, zero for an empty list.
bool valid() const
The location list is valid if it contains 2 or more points.
void checkIndex(const label i) const
Check that element index is within valid range.
scalar centre() const
Mid-point location, zero for an empty list.
const scalar & min() const
The first() value is considered the min value.
label nCells() const
The number of cells in this direction.
label nPoints() const
The number of points in this direction.
const scalar & max() const
The last() value is considered the max value.
bool contains(const scalar p) const
True if the location is within the range.
const scalar & clip(const scalar &val) const
scalar V(const label i, const label j, const label k) const
Cell volume at i,j,k position.
const boundBox & bounds() const
The mesh bounding box.
scalar dx(const label i) const
Cell size in x-direction at i position.
const scalarMinMax & edgeLimits() const
The min/max edge length.
scalar dy(const label j) const
Cell size in y-direction at j position.
scalar dz(const label k) const
Cell size in z-direction at k position.
const Vector< location > & grid() const
The grid point locations in the i,j,k (x,y,z) directions.
vector span
The obstacle dimensions (for boxes)
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
const Cmpt & z() const
Access to the vector z component.
const Cmpt & y() const
Access to the vector y component.
const Cmpt & x() const
Access to the vector x component.
A bounding box defined in terms of min/max extrema points.
label width() const noexcept
Return current width of mask and padded.
void checkIndex(const label i, const label j, const label k, const bool allowExtra=false) const
Check indices are within ni,nj,nk range.
label nCells() const
The number of mesh cells (nx*ny*nz) in the i-j-k mesh.
A traits class, which is primarily used for primitives.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
vector point
Point is a vector.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
errorManip< error > abort(error &err)
dimensionedScalar cbrt(const dimensionedScalar &ds)
constexpr char nl
The newline '\n' character (0x0a)