ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
CollisionDetection::BindAtPointOfCollision Class Reference

#include <BindAtPointOfCollision.hpp>

Public Member Functions

 BindAtPointOfCollision (double distance, int bond_centers, int bond_vs, double vs_placement, int part_type_vs)
 
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
 
int bond_vs
 bond type used between virtual sites
 
double vs_placement
 Barycenter of the virtual site.
 
int part_type_vs
 particle type for virtual sites created on collision
 

Detailed Description

Constructor & Destructor Documentation

◆ BindAtPointOfCollision()

CollisionDetection::BindAtPointOfCollision::BindAtPointOfCollision ( double  distance,
int  bond_centers,
int  bond_vs,
double  vs_placement,
int  part_type_vs 
)
inline

Member Function Documentation

◆ cutoff()

auto CollisionDetection::BindAtPointOfCollision::cutoff ( ) const
inline

Definition at line 65 of file core/collision_detection/BindAtPointOfCollision.hpp.

References distance.

◆ detect_collision()

bool CollisionDetection::BindAtPointOfCollision::detect_collision ( Particle const &  p1,
Particle const &  p2,
double const  dist_sq 
) const
inline

◆ handle_collisions()

◆ initialize()

void CollisionDetection::BindAtPointOfCollision::initialize ( System::System system)

Member Data Documentation

◆ bond_centers

int CollisionDetection::BindAtPointOfCollision::bond_centers

bond type used between centers of colliding particles

Definition at line 44 of file core/collision_detection/BindAtPointOfCollision.hpp.

Referenced by detect_collision(), and handle_collisions().

◆ bond_vs

int CollisionDetection::BindAtPointOfCollision::bond_vs

bond type used between virtual sites

Definition at line 46 of file core/collision_detection/BindAtPointOfCollision.hpp.

Referenced by handle_collisions(), and initialize().

◆ distance

double CollisionDetection::BindAtPointOfCollision::distance

Distance at which particle are bound.

Definition at line 40 of file core/collision_detection/BindAtPointOfCollision.hpp.

Referenced by cutoff(), and initialize().

◆ distance_sq

double CollisionDetection::BindAtPointOfCollision::distance_sq

Square of distance at which particle are bound.

Definition at line 42 of file core/collision_detection/BindAtPointOfCollision.hpp.

Referenced by detect_collision(), and initialize().

◆ part_type_vs

int CollisionDetection::BindAtPointOfCollision::part_type_vs

particle type for virtual sites created on collision

Definition at line 55 of file core/collision_detection/BindAtPointOfCollision.hpp.

Referenced by handle_collisions(), and initialize().

◆ vs_placement

double CollisionDetection::BindAtPointOfCollision::vs_placement

Barycenter of the virtual site.

0=on same particle as related to, 1=on collision partner, 0.5=in the middle between the two particles

Definition at line 53 of file core/collision_detection/BindAtPointOfCollision.hpp.

Referenced by handle_collisions().


The documentation for this class was generated from the following files: