Basic DEM kernel.
This DEM kernel supports spring&dashpot in normal direction as well as friction in tangential direction.
#include <SpringDashpot.h>
Public Member Functions | |
SpringDashpot (const uint_t numParticleTypes) | |
SpringDashpot (const SpringDashpot &other)=default | |
SpringDashpot (SpringDashpot &&other)=default | |
SpringDashpot & | operator= (const SpringDashpot &other)=default |
SpringDashpot & | operator= (SpringDashpot &&other)=default |
template<typename Accessor > | |
void | operator() (const size_t p_idx1, const size_t p_idx2, Accessor &ac, const Vec3 &contactPoint, const Vec3 &contactNormal, const real_t &penetrationDepth) const |
void | setStiffness (const size_t type1, const size_t type2, const real_t &val) |
assumes this parameter is symmetric More... | |
void | setDampingN (const size_t type1, const size_t type2, const real_t &val) |
assumes this parameter is symmetric More... | |
void | setDampingT (const size_t type1, const size_t type2, const real_t &val) |
assumes this parameter is symmetric More... | |
void | setFriction (const size_t type1, const size_t type2, const real_t &val) |
assumes this parameter is symmetric More... | |
real_t | getStiffness (const size_t type1, const size_t type2) const |
real_t | getDampingN (const size_t type1, const size_t type2) const |
real_t | getDampingT (const size_t type1, const size_t type2) const |
real_t | getFriction (const size_t type1, const size_t type2) const |
real_t | calcCoefficientOfRestitution (const size_t type1, const size_t type2, const real_t meff) |
real_t | calcCollisionTime (const size_t type1, const size_t type2, const real_t meff) |
void | setParametersFromCOR (const size_t type1, const size_t type2, const real_t cor, const real_t collisionTime, const real_t meff) |
Private Attributes | |
uint_t | numParticleTypes_ |
std::vector< real_t > | stiffness_ {} |
std::vector< real_t > | dampingN_ {} |
std::vector< real_t > | dampingT_ {} |
std::vector< real_t > | friction_ {} |
walberla::mesa_pd::kernel::SpringDashpot::SpringDashpot | ( | const uint_t | numParticleTypes | ) |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
inline |
assumes this parameter is symmetric
|
inline |
assumes this parameter is symmetric
|
inline |
assumes this parameter is symmetric
|
inline |
|
inline |
assumes this parameter is symmetric
|
private |
|
private |
|
private |
|
private |
|
private |