A class representing a particle in contact with another particle or wall.
More...
#include <neigh_tuple.hpp>
|
| Particle * | particle {nullptr} |
| | A pointer to the neighboring particle.
|
| |
| int | lookup_id {-1} |
| | The index of this particle in the linked_particle_list of the neighboring particle.
|
| |
A class representing a particle in contact with another particle or wall.
Contains information about neighboring particles and walls and their respective contacts.
- stores pair info particle: pointer of the neighboring particle lookup_id: index of self in the linked_particle_list of particle contact: pointer of the contact, if is in contact with particle
◆ NeighPofP() [1/2]
◆ NeighPofP() [2/2]
Constructor for the NeighPofP class that initializes the neighbor with a particle and its corresponding contact.
- Parameters
-
| p | A pointer to the neighboring particle. |
| id | The index of this particle in the linked_particle_list of the neighboring particle. |
| cnt | A pointer to the contact between this particle and the neighboring particle, if it exists. |
◆ GetContact()
◆ GetNeighTuple()
| NeighPofP * NeighPofP::GetNeighTuple |
( |
| ) |
const |
Get the tuple of the neigh.
◆ SetContact()
| void NeighPofP::SetContact |
( |
ContactPP *const | cnt | ) |
|
◆ Particle
◆ lookup_id
| int netdem::NeighPofP::lookup_id {-1} |
The index of this particle in the linked_particle_list of the neighboring particle.
◆ particle
| Particle* netdem::NeighPofP::particle {nullptr} |
A pointer to the neighboring particle.
The documentation for this class was generated from the following files:
- /Users/lzhshou/Documents/Research/myProjects/apaam/repo/netdem/src/scene/neigh_tuple.hpp
- /Users/lzhshou/Documents/Research/myProjects/apaam/repo/netdem/src/scene/neigh_tuple.cpp