![]() |
PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Structure to read and store particle-particle contact related input data. More...
#include <contactDeck.h>
Public Member Functions | |
| ContactDeck (const json &j=json({})) | |
| Constructor. | |
| const ContactPairDeck & | getContact (const size_t &i, const size_t &j) const |
| Returns the contact data. | |
| ContactPairDeck & | getContact (const size_t &i, const size_t &j) |
| Returns the contact data. | |
| void | readFromJson (const json &j) |
| Reads from json object. | |
| std::string | printStr (int nt=0, int lvl=0) const |
| Returns the string containing printable information about the object. | |
| void | print (int nt=0, int lvl=0) const |
| Prints the information about the object. | |
Static Public Member Functions | |
| static const std::vector< Field< ContactDeck > > & | fields () |
| Returns example JSON object for ModelDeck configuration. | |
| static json | getExampleJson (const json &given=json::object()) |
| Returns the block with the given fields set. | |
Data Fields | |
| std::vector< std::vector< ContactPairDeck > > | d_data |
| Store contact parameters for each pair of zone. | |
| std::string | d_dampingLaw |
Contact damping law name (default com_and_node). | |
| std::string | d_frictionLaw |
Friction law name (default coulomb_simple). | |
| bool | d_correctVolume |
If true (default), DEM contact uses partial neighbor volume near the contact radius (correctedContactVolume). Set false to use full nodal volume (main-branch DEM contact spring). | |
Structure to read and store particle-particle contact related input data.
Definition at line 27 of file contactDeck.h.
Constructor.
Definition at line 50 of file contactDeck.h.
|
inlinestatic |
Returns example JSON object for ModelDeck configuration.
Definition at line 78 of file contactDeck.h.
References d_correctVolume, d_dampingLaw, d_frictionLaw, and inp::field().
Referenced by getExampleJson(), printStr(), and readFromJson().
|
inline |
Returns the contact data.
| i | Zone i |
| j | Zone j |
Definition at line 69 of file contactDeck.h.
References d_data.
|
inline |
Returns the contact data.
| i | Zone i |
| j | Zone j |
Definition at line 63 of file contactDeck.h.
References d_data.
Referenced by printStr().
Returns the block with the given fields set.
One pair block is written for each pair of contact groups. Without any groups the block is empty.
| given | Field names and values to set, checked against the table, and Sets, the number of contact groups |
Definition at line 103 of file contactDeck.h.
References inp::applyGiven(), and fields().
Referenced by anonymous_namespace{main.cpp}::buildInputJson(), inp::ParticleDeck::getParticleContactExampleJson(), and anonymous_namespace{testDeckRoundTrip.cpp}::testContactDeck().
|
inline |
Prints the information about the object.
| nt | Number of tabs to append before printing |
| lvl | Information level (higher means more information) |
Definition at line 197 of file contactDeck.h.
References printStr().
|
inline |
Returns the string containing printable information about the object.
| nt | Number of tabs to append before printing |
| lvl | Information level (higher means more information) |
Definition at line 172 of file contactDeck.h.
References d_data, fields(), getContact(), util::io::getTabS(), inp::printFields(), and inp::ContactPairDeck::printStr().
Referenced by print(), and inp::ParticleDeck::printStr().
|
inline |
Reads from json object.
Definition at line 119 of file contactDeck.h.
References d_data, fields(), and inp::readFields().
Referenced by inp::ParticleDeck::readParticleContactFromJson().
| bool inp::ContactDeck::d_correctVolume |
If true (default), DEM contact uses partial neighbor volume near the contact radius (correctedContactVolume). Set false to use full nodal volume (main-branch DEM contact spring).
Definition at line 45 of file contactDeck.h.
Referenced by fields().
| std::string inp::ContactDeck::d_dampingLaw |
Contact damping law name (default com_and_node).
Definition at line 35 of file contactDeck.h.
Referenced by fields().
| std::vector<std::vector<ContactPairDeck> > inp::ContactDeck::d_data |
Store contact parameters for each pair of zone.
Definition at line 32 of file contactDeck.h.
Referenced by getContact(), getContact(), printStr(), and readFromJson().
| std::string inp::ContactDeck::d_frictionLaw |
Friction law name (default coulomb_simple).
Definition at line 38 of file contactDeck.h.
Referenced by fields().