Kernel which calculates the Lennard Jones force between two particles.
This kernel uses the type property of a particle to decide on the material parameters.
This kernel requires the following particle accessor interface
#include <ForceLJ.h>
Public Member Functions | |
ForceLJ (const uint_t numParticleTypes) | |
ForceLJ (const ForceLJ &other)=default | |
ForceLJ (ForceLJ &&other)=default | |
ForceLJ & | operator= (const ForceLJ &other)=default |
ForceLJ & | operator= (ForceLJ &&other)=default |
template<typename Accessor > | |
void | operator() (const size_t p_idx, const size_t np_idx, Accessor &ac) const |
void | setEpsilon (const size_t type1, const size_t type2, const real_t &val) |
assumes this parameter is symmetric More... | |
void | setSigma (const size_t type1, const size_t type2, const real_t &val) |
assumes this parameter is symmetric More... | |
real_t | getEpsilon (const size_t type1, const size_t type2) const |
real_t | getSigma (const size_t type1, const size_t type2) const |
Private Attributes | |
uint_t | numParticleTypes_ |
std::vector< real_t > | epsilon {} |
std::vector< real_t > | sigma {} |
walberla::mesa_pd::kernel::ForceLJ::ForceLJ | ( | const uint_t | numParticleTypes | ) |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
assumes this parameter is symmetric
|
inline |
assumes this parameter is symmetric
|
private |
|
private |
|
private |