ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include <BindCenters.hpp>
Public Member Functions | |
BindCenters (double distance, int bond_centers) | |
void | initialize (System::System &system) |
auto | cutoff () const |
void | handle_collisions (System::System &system, std::vector< CollisionPair > &local_collision_queue) |
bool | detect_collision (Particle const &p1, Particle const &p2, double const dist_sq) const |
Public Attributes | |
double | distance |
Distance at which particle are bound. | |
double | distance_sq |
Square of distance at which particle are bound. | |
int | bond_centers |
bond type used between centers of colliding particles | |
Definition at line 36 of file core/collision_detection/BindCenters.hpp.
|
inline |
Definition at line 45 of file core/collision_detection/BindCenters.hpp.
|
inline |
Definition at line 51 of file core/collision_detection/BindCenters.hpp.
References distance.
|
inline |
Definition at line 56 of file core/collision_detection/BindCenters.hpp.
References bond_centers, CollisionDetection::detect_collision_common(), and distance_sq.
void CollisionDetection::BindCenters::handle_collisions | ( | System::System & | system, |
std::vector< CollisionPair > & | local_collision_queue | ||
) |
Definition at line 59 of file BindCenters.cpp.
References CollisionDetection::add_bind_centers(), bond_centers, and System::System::cell_structure.
void CollisionDetection::BindCenters::initialize | ( | System::System & | system | ) |
Definition at line 42 of file BindCenters.cpp.
References bond_centers, System::System::bonded_ias, distance, distance_sq, number_of_partners(), and Utils::sqr().
int CollisionDetection::BindCenters::bond_centers |
bond type used between centers of colliding particles
Definition at line 43 of file core/collision_detection/BindCenters.hpp.
Referenced by detect_collision(), handle_collisions(), and initialize().
double CollisionDetection::BindCenters::distance |
Distance at which particle are bound.
Definition at line 39 of file core/collision_detection/BindCenters.hpp.
Referenced by cutoff(), and initialize().
double CollisionDetection::BindCenters::distance_sq |
Square of distance at which particle are bound.
Definition at line 41 of file core/collision_detection/BindCenters.hpp.
Referenced by detect_collision(), and initialize().