26 Vec3d bound_min{-0.5, -0.5, -0.5};
29 Vec3d bound_max{0.5, 0.5, 0.5};
75 std::tuple<Vec3d, Vec3d>
GetBound()
const;
A class representing a cell in a simulation grid.
Definition cell.hpp:19
STLModel GetSTLModel()
Generate an STL model for visualization purposes.
Definition cell.cpp:79
friend class Particle
Definition cell.hpp:20
void ClearLinkedLists()
Clear the linked particle and wall lists.
Definition cell.cpp:61
VecXT< std::pair< Wall *, int > > const & GetLinkedWalls() const
Get the walls that are linked with this cell.
Definition cell.cpp:37
Cell()
Default constructor for the Cell class.
Definition cell.cpp:6
bool IsJudgeCell(Particle const &p, Particle const &q)
Determine if two particles are in the same cell.
Definition cell.cpp:11
void RemoveLinkedWall(int lookup_id)
Remove a linked wall by look-up id.
Definition cell.cpp:51
VecXT< std::pair< Particle *, int > > const & GetLinkedParticles() const
Get the particles that are linked with this cell.
Definition cell.cpp:33
~Cell()
Default destructor for the Cell class.
Definition cell.cpp:169
void RemoveLinkedParticle(int lookup_id)
Remove a linked particle by look-up id.
Definition cell.cpp:41
friend class Wall
Definition cell.hpp:21
std::tuple< Vec3d, Vec3d > GetBound() const
Get the lower and upper coordinates of the cell box.
Definition cell.cpp:29
void Print()
Print the bounding box of the cell to stdout.
Definition cell.cpp:171
Manages the data exchange in a DEM simulation.
Definition mpi_manager.hpp:39
Definition particle.hpp:26
A class representing a wall object in a physics simulation.
Definition wall.hpp:32
Definition bond_entry.hpp:7
std::vector< T > VecXT
Definition utils_macros.hpp:31
std::array< double, 3 > Vec3d
Definition utils_macros.hpp:18