77 using Int3 = std::array<int, 3>;
Represents a 3D integer box in grid index space.
Definition box3d.hpp:74
Int3 size() const noexcept
Returns the size (number of elements) in each dimension.
std::array< int, 3 > Int3
Type aliases for clarity.
Definition box3d.hpp:77
const Int3 & upper() const noexcept
Returns the upper corner indices.
int total_size() const noexcept
Computes the total number of grid points in the box.
bool contains(const Int3 &index) const noexcept
Check if a given index {i,j,k} is inside this box.
const Int3 & lower() const noexcept
Returns the lower corner indices.
Box3D(const Int3 &lower, const Int3 &upper)
Constructs a Box3D with given lower and upper corners.
Represents the global simulation domain (the "world").
Definition world.hpp:91