![]() |
PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Contact neighbor search and force assembly. Pair law and damping are separate types on this object. More...
#include <contact.h>
Public Member Functions | |
| Contact () | |
| virtual | ~Contact ()=default |
| void | setup (data::ModelData &data) |
| bool | updateSearchParameters (data::ModelData &data) |
| void | updateNeighborlist (data::ModelData &data) |
| void | computeForces (data::ModelData &data) |
| void | setPairForce (std::unique_ptr< PairForce > p) |
| void | setDamping (std::unique_ptr< Damping > d) |
| void | setWallContact (std::unique_ptr< WallContact > w) |
Data Fields | |
| std::unique_ptr< PairForce > | d_pairForce |
| std::unique_ptr< Damping > | d_damping |
| std::unique_ptr< WallContact > | d_wallContact |
| bool | d_useNodeDamping = true |
| Apply node-level damping inside the pair assembly loop. | |
| contact::Contact::Contact | ( | ) |
Definition at line 38 of file contact.cpp.
|
virtualdefault |
| void contact::Contact::computeForces | ( | data::ModelData & | data | ) |
Definition at line 449 of file contact.cpp.
References contact::correctedContactVolume(), util::parallel::getNThreads(), util::isLess(), util::parallel::isMpiEnabled(), and util::io::log().
|
inline |
|
inline |
| void contact::Contact::setup | ( | data::ModelData & | data | ) |
Definition at line 43 of file contact.cpp.
References inp::ContactPairDeck::d_betan, inp::ContactPairDeck::d_betanFactor, inp::ContactPairDeck::d_computeContactR, inp::ContactPairDeck::d_contactR, inp::ContactPairDeck::d_eps, inp::ContactPairDeck::d_K, inp::ContactPairDeck::d_Kn, inp::ContactPairDeck::d_KnFactor, inp::ContactPairDeck::d_mu, inp::ContactPairDeck::d_vMax, util::equivalentMass(), util::isGreater(), util::io::log(), contact::makeDamping(), contact::makePairForce(), contact::makeWallContact(), and contact::usesNodeDamping().
|
inline |
Definition at line 40 of file contact.h.
References d_wallContact.
| void contact::Contact::updateNeighborlist | ( | data::ModelData & | data | ) |
Definition at line 281 of file contact.cpp.
References util::parallel::getNThreads(), util::parallel::isMpiEnabled(), and util::parallel::mpiSize().
| bool contact::Contact::updateSearchParameters | ( | data::ModelData & | data | ) |
Definition at line 128 of file contact.cpp.
References util::isGreater(), util::isLess(), util::io::log(), util::methods::max(), and util::methods::maxIndex().
| std::unique_ptr<Damping> contact::Contact::d_damping |
Definition at line 45 of file contact.h.
Referenced by setDamping().
| std::unique_ptr<PairForce> contact::Contact::d_pairForce |
Definition at line 44 of file contact.h.
Referenced by setPairForce().
| bool contact::Contact::d_useNodeDamping = true |
| std::unique_ptr<WallContact> contact::Contact::d_wallContact |
Definition at line 46 of file contact.h.
Referenced by setWallContact().