Detailed Description

Init the datastructures for a contact for later use of the HCSITS-Solver.

Call this kernel on all contacts that you want to treat with HCSITS before performing any relaxation timesteps. Use setErp() to set the error reduction parameter, which defines the share of the overlap that is resolved in one step (0 meaning after the relaxation the overlap is the same, 1 meaning the particles will have no overlap after relaxation). Use setFriction(a,b, cof) to define the coefficient of friction cof between materials a and b. It is assumed to be symmetric w.r.t. the materials.

#include <InitContactsForHCSITS.h>

Public Member Functions

 InitContactsForHCSITS (const uint_t numParticleTypes)
 
const real_tgetErp () const
 
void setErp (real_t v)
 
const real_tgetMaximumPenetration () const
 
void setMaximumPenetration (real_t v)
 
void setFriction (const size_t type1, const size_t type2, const real_t &val)
 
real_t getFriction (const size_t type1, const size_t type2) const
 
template<typename CAccessor , typename PAccessor >
void operator() (size_t c, CAccessor &ca, PAccessor &pa)
 

Public Attributes

std::vector< real_tfriction_ {}
 

Private Attributes

const uint_t numParticleTypes_
 
real_t erp_
 
real_t maximumPenetration_
 

Constructor & Destructor Documentation

◆ InitContactsForHCSITS()

walberla::mesa_pd::kernel::InitContactsForHCSITS::InitContactsForHCSITS ( const uint_t  numParticleTypes)
inlineexplicit

Member Function Documentation

◆ getErp()

const real_t& walberla::mesa_pd::kernel::InitContactsForHCSITS::getErp ( ) const
inline

◆ getFriction()

real_t walberla::mesa_pd::kernel::InitContactsForHCSITS::getFriction ( const size_t  type1,
const size_t  type2 
) const
inline

◆ getMaximumPenetration()

const real_t& walberla::mesa_pd::kernel::InitContactsForHCSITS::getMaximumPenetration ( ) const
inline

◆ operator()()

template<typename CAccessor , typename PAccessor >
void walberla::mesa_pd::kernel::InitContactsForHCSITS::operator() ( size_t  c,
CAccessor &  ca,
PAccessor &  pa 
)
inline

◆ setErp()

void walberla::mesa_pd::kernel::InitContactsForHCSITS::setErp ( real_t  v)
inline

◆ setFriction()

void walberla::mesa_pd::kernel::InitContactsForHCSITS::setFriction ( const size_t  type1,
const size_t  type2,
const real_t val 
)
inline

◆ setMaximumPenetration()

void walberla::mesa_pd::kernel::InitContactsForHCSITS::setMaximumPenetration ( real_t  v)
inline

Member Data Documentation

◆ erp_

real_t walberla::mesa_pd::kernel::InitContactsForHCSITS::erp_
private

◆ friction_

std::vector<real_t> walberla::mesa_pd::kernel::InitContactsForHCSITS::friction_ {}

◆ maximumPenetration_

real_t walberla::mesa_pd::kernel::InitContactsForHCSITS::maximumPenetration_
private

◆ numParticleTypes_

const uint_t walberla::mesa_pd::kernel::InitContactsForHCSITS::numParticleTypes_
private

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