ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
VerletCriterion< CutoffGetter, ShortRangeOnly > Class Template Reference

Returns true if the particles are to be considered for short range interactions. More...

#include <VerletCriterion.hpp>

Public Member Functions

 VerletCriterion (System::System const &system, double skin, double max_cut, double coulomb_cut=0., double dipolar_cut=0., double collision_detection_cutoff=0.)
bool operator() (const Particle &p1, const Particle &p2, double dist2) const

Detailed Description

template<typename CutoffGetter = GetNonbondedCutoff, bool ShortRangeOnly = false>
class VerletCriterion< CutoffGetter, ShortRangeOnly >

Returns true if the particles are to be considered for short range interactions.

Template Parameters
ShortRangeOnlyWhen true, the electrostatics / dipolar / collision early-accept branches are compiled out of the call operator. Selected by update_verlet_state only when none of those cutoffs are active, so the removed branches would never have accepted a pair – the result is unchanged, but the per-candidate build loop drops the dead comparisons.

Definition at line 59 of file VerletCriterion.hpp.

Constructor & Destructor Documentation

◆ VerletCriterion()

template<typename CutoffGetter = GetNonbondedCutoff, bool ShortRangeOnly = false>
VerletCriterion< CutoffGetter, ShortRangeOnly >::VerletCriterion ( System::System const & system,
double skin,
double max_cut,
double coulomb_cut = 0.,
double dipolar_cut = 0.,
double collision_detection_cutoff = 0. )
inline

Member Function Documentation

◆ operator()()

template<typename CutoffGetter = GetNonbondedCutoff, bool ShortRangeOnly = false>
bool VerletCriterion< CutoffGetter, ShortRangeOnly >::operator() ( const Particle & p1,
const Particle & p2,
double dist2 ) const
inline

Definition at line 107 of file VerletCriterion.hpp.

References Particle::dipm(), Particle::q(), and Particle::type().


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