103 explicit World(
const Int3 &lower,
const Int3 &upper,
129 template <
typename T_>
std::array< int, 3 > Int3
Type aliases for clarity.
Definition types.hpp:45
Extensible coordinate system framework.
World< CartesianTag > CartesianWorld
Type alias for Cartesian 3D World (most common usage)
Definition world.hpp:134
Tag type for the 3D Cartesian coordinate system.
Definition csys.hpp:147
Primary template for defining coordinate systems by tag.
Definition csys.hpp:87
Represents the global simulation domain (the "world").
Definition world.hpp:91
const Int3 m_lower
Lower index bounds.
Definition world.hpp:92
const CoordinateSystem< T > m_cs
Coordinate system.
Definition world.hpp:95
bool operator==(const World &other) const noexcept
Equality operator.
Definition world.hpp:111
const Int3 m_upper
Upper index bounds.
Definition world.hpp:93
const Int3 m_size
Grid dimensions: {nx, ny, nz}.
Definition world.hpp:94
bool operator!=(const World &other) const noexcept
Inequality operator.
Definition world.hpp:121
World(const Int3 &lower, const Int3 &upper, const CoordinateSystem< T > &cs)
Constructs a World object.
friend std::ostream & operator<<(std::ostream &os, const World< T_ > &w) noexcept
Stream output operator.
Common type aliases used throughout OpenPFC.
World creation and factory functions.
Convenience functions for World creation.
World query and coordinate transformation functions.