NetDEM v1.0
|
A class representing a particle in contact with a wall. More...
#include <neigh_tuple.hpp>
Public Member Functions | |
NeighPofW () | |
Default constructor for the NeighPofW class. | |
NeighPofW (Particle *const p, int id, ContactPW *const cnt) | |
Constructor for the NeighPofW class that initializes the neighbor with a particle and its corresponding contact. | |
NeighWofP * | GetNeighTuple () const |
Get the neigh obj of the pair particle. | |
ContactPW * | GetContact () const |
Get the contact. | |
void | SetContact (ContactPW *const cnt) |
Set the contact. | |
Public Attributes | |
Particle * | particle {nullptr} |
A pointer to the neighboring particle. | |
int | lookup_id {-1} |
The index of this particle in the linked_wall_list of the neighboring particle. | |
Friends | |
class | Particle |
class | Wall |
class | NeighWofP |
A class representing a particle in contact with a wall.
Contains information about the neighboring particle and its corresponding contact.
NeighPofW::NeighPofW | ( | ) |
Default constructor for the NeighPofW class.
Constructor for the NeighPofW class that initializes the neighbor with a particle and its corresponding contact.
p | A pointer to the neighboring particle. |
id | The index of this particle in the linked_wall_list of the neighboring particle. |
cnt | A pointer to the contact between this particle and the neighboring wall, if it exists. |
ContactPW * NeighPofW::GetContact | ( | ) | const |
Get the contact.
NeighWofP * NeighPofW::GetNeighTuple | ( | ) | const |
Get the neigh obj of the pair particle.
void NeighPofW::SetContact | ( | ContactPW *const | cnt | ) |
Set the contact.
|
friend |
|
friend |
|
friend |
int netdem::NeighPofW::lookup_id {-1} |
The index of this particle in the linked_wall_list of the neighboring particle.
Particle* netdem::NeighPofW::particle {nullptr} |
A pointer to the neighboring particle.