ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
exclusions.hpp File Reference
#include "config/config.hpp"
#include "Particle.hpp"
#include <algorithm>
+ Include dependency graph for exclusions.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool do_nonbonded (Particle const &p1, Particle const &p2)
 Determine if the non-bonded interactions between p1 and p2 should be calculated.
 
void delete_exclusion (Particle &p, int p_id)
 Remove exclusion from particle if possible.
 
void add_exclusion (Particle &p, int p_id)
 Insert an exclusion if not already set.
 

Function Documentation

◆ add_exclusion()

void add_exclusion ( Particle p,
int  p_id 
)

Insert an exclusion if not already set.

Definition at line 34 of file exclusions.cpp.

References Utils::contains(), and Particle::exclusions().

Referenced by ScriptInterface::Particles::auto_exclusions(), and ScriptInterface::Particles::local_add_exclusion().

◆ delete_exclusion()

void delete_exclusion ( Particle p,
int  p_id 
)

Remove exclusion from particle if possible.

Definition at line 41 of file exclusions.cpp.

References Particle::exclusions().

Referenced by ScriptInterface::Particles::local_remove_exclusion().

◆ do_nonbonded()

bool do_nonbonded ( Particle const &  p1,
Particle const &  p2 
)
inline

Determine if the non-bonded interactions between p1 and p2 should be calculated.

Definition at line 35 of file exclusions.hpp.

References Particle::exclusions().

Referenced by add_non_bonded_pair_energy(), add_non_bonded_pair_force(), add_non_bonded_pair_virials(), and System::System::particle_short_range_energy_contribution().