|
faunus
|
Provides a fast inlineable interface for non-bonded pair potential energy computation. More...
#include <energy.h>
Public Member Functions | |
| PairEnergy (Space &spc, BasePointerVector< EnergyTerm > &potentials) | |
| template<typename T > | |
| double | potential (const T &a, const T &b) const |
| Computes pair potential energy. More... | |
| template<typename ParticleType > | |
| Point | force (const ParticleType &a, const ParticleType &b) const |
| template<typename... Args> | |
| auto | operator() (Args &&... args) |
| A functor alias for potential(). More... | |
| void | addPairPotentialSelfEnergy () |
| Registers the potential self-energy to hamiltonian if needed. More... | |
| void | from_json (const json &j) |
| void | to_json (json &j) const |
Provides a fast inlineable interface for non-bonded pair potential energy computation.
| TPairPotential | a pair potential to compute with |
| allow_anisotropic_pair_potential | pass also a distance vector to the pair potential, slower |
|
inline |
| spc | |
| potentials | registered non-bonded potentials |
|
inline |
Registers the potential self-energy to hamiltonian if needed.
|
inline |
A functor alias for potential().
|
inline |
Computes pair potential energy.
| a | particle |
| b | particle |
1.8.13