ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
bonds.cpp File Reference
#include "cell_system/CellStructure.hpp"
#include "system/System.hpp"
#include <vector>
+ Include dependency graph for bonds.cpp:

Go to the source code of this file.

Functions

bool add_bond (System::System &system, int bond_id, std::vector< int > const &particle_ids)
 Add a bond to a particle.
 

Function Documentation

◆ add_bond()

bool add_bond ( System::System system,
int  bond_id,
std::vector< int > const &  particle_ids 
)

Add a bond to a particle.

The caller is responsible for calling System::System::on_particle_change().

Definition at line 25 of file bonds.cpp.

References Particle::bonds(), and System::System::cell_structure.

Referenced by CollisionDetection::add_bind_centers(), and ScriptInterface::Particles::ParticleHandle::do_call_method().