Multi Resolution Molecular Dynamics 0.4.0
Multi Resolution Molecular Dynamics
Loading...
Searching...
No Matches
mrmd::action::LennardJones Class Reference

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)

Detailed Description

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.

Reference
AdResS with capped and region-wise applied Lennard-Jones potential: 10.48550/arXiv.2607.24574

Constructor & Destructor Documentation

◆ LennardJones() [1/2]

mrmd::action::LennardJones::LennardJones ( const real_t rc,
const real_t & sigma,
const real_t & epsilon,
const real_t & cappingDistance = 0_r )

◆ LennardJones() [2/2]

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 )

Member Function Documentation

◆ apply()

void mrmd::action::LennardJones::apply ( data::Atoms & atoms,
HalfVerletList & verletList )

◆ apply_if()

template<TwoPositionsPredicate Pred>
void mrmd::action::LennardJones::apply_if ( const data::Atoms & atoms,
const HalfVerletList & verletList,
const Pred & pred )

◆ getEnergy()

real_t mrmd::action::LennardJones::getEnergy ( ) const

◆ getVirial()

real_t mrmd::action::LennardJones::getVirial ( ) const

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