|
musica (C++)
|
Contact law registry. More...
#include <contacts.hpp>
Public Types | |
| typedef ContactLawBase< T > * | ContactLawFunction(const std::unordered_map< std::string, T > &) |
| Contact law function type. | |
Static Public Member Functions | |
| static ContactLawFunction * | load (const std::string &path) |
| Load a contact law from a shared library. | |
| static ContactLawBase< T > * | create (const std::variant< ContactLawType, std::string, ContactLawBase< T > * > &contact, const std::unordered_map< std::string, T > &props={}) |
| Create contact law. | |
| static std::string | contact_law_name (const ContactLawType type) |
| Get the name of a contact law enum value. | |
| static ContactLawType | contact_law_type (const std::string &name) |
| Get the contact law type from a string. | |
Contact law registry.
| typedef ContactLawBase< T > * micromechanical::contacts::ContactLawRegistry< T >::ContactLawFunction(const std::unordered_map< std::string, T > &) |
Contact law function type.
|
inlinestatic |
Get the name of a contact law enum value.
| type | contact law type |
References micromechanical::contacts::Coulomb, micromechanical::contacts::Elastic, micromechanical::contacts::Exponential, micromechanical::contacts::Hyperbolic, micromechanical::contacts::Hypoplastic, micromechanical::contacts::MCC, micromechanical::contacts::OSIMSAND, micromechanical::contacts::SANISAND, and micromechanical::contacts::SIMSAND.
|
inlinestatic |
Get the contact law type from a string.
| name | contact law name |
References micromechanical::contacts::Coulomb, micromechanical::contacts::Elastic, micromechanical::contacts::Exponential, micromechanical::contacts::Hyperbolic, micromechanical::contacts::Hypoplastic, micromechanical::contacts::MCC, micromechanical::contacts::OSIMSAND, micromechanical::contacts::SANISAND, and micromechanical::contacts::SIMSAND.
|
inlinestatic |
Create contact law.
| contact | contact law |
| props | material properties |
Referenced by load().

|
inlinestatic |