|
Multi Resolution Molecular Dynamics 0.4.0
Multi Resolution Molecular Dynamics
|
High-level interface for the application of the Lennard-Jones potential to given atoms. More...
#include <action/LennardJones.hpp>
Public Member Functions | |
| real_t | getEnergy () const |
| real_t | getVirial () const |
| void | apply (data::Atoms &atoms, HalfVerletList &verletList) |
| template<TwoPositionsPredicate Pred> | |
| void | apply_if (const data::Atoms &atoms, const HalfVerletList &verletList, const Pred &pred) |
| LennardJones (const real_t rc, const real_t &sigma, const real_t &epsilon, const real_t &cappingDistance=0_r) | |
| LennardJones (const std::vector< real_t > &cappingDistance, const std::vector< real_t > &rc, const std::vector< real_t > &sigma, const std::vector< real_t > &epsilon, const idx_t &numTypes, const bool isShifted) | |
High-level interface for the application of the Lennard-Jones potential to given atoms.
This superclass provides methods to apply the Lennard-Jones force and energy to a system of particles. There are facilities to handle potential shifting, force capping and to evaluate the potential energy and forces only in parts of the simulation domain.
| mrmd::action::LennardJones::LennardJones | ( | const real_t | rc, |
| const real_t & | sigma, | ||
| const real_t & | epsilon, | ||
| const real_t & | cappingDistance = 0_r ) |
| mrmd::action::LennardJones::LennardJones | ( | const std::vector< real_t > & | cappingDistance, |
| const std::vector< real_t > & | rc, | ||
| const std::vector< real_t > & | sigma, | ||
| const std::vector< real_t > & | epsilon, | ||
| const idx_t & | numTypes, | ||
| const bool | isShifted ) |
| void mrmd::action::LennardJones::apply | ( | data::Atoms & | atoms, |
| HalfVerletList & | verletList ) |
| void mrmd::action::LennardJones::apply_if | ( | const data::Atoms & | atoms, |
| const HalfVerletList & | verletList, | ||
| const Pred & | pred ) |
| real_t mrmd::action::LennardJones::getEnergy | ( | ) | const |
| real_t mrmd::action::LennardJones::getVirial | ( | ) | const |