![]() |
PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
User-input data for particle neighbor search. More...
#include <pNeighborDeck.h>
Public Member Functions | |
| PNeighborDeck (const json &j=json({})) | |
| Constructor. | |
| PNeighborDeck (std::string updateCriteria, double sFactor=1., size_t neighUpdateInterval=1, double nearBdNodesTol=0.5) | |
| Constructor. | |
| void | readFromJson (const json &j) |
| Reads from json object. | |
| json | writeToJson () const |
| Returns this deck as a 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< PNeighborDeck > > & | fields () |
| The fields of this deck, declared once. | |
| static json | getExampleJson (const json &given=json::object()) |
| Returns the block with the given fields set. | |
| static json | getExampleJson (const std::string &)=delete |
| Rejects a value given where a set of named values is expected. | |
| static json | getExampleJson (const char *)=delete |
| Rejects a value given where a set of named values is expected. | |
Data Fields | |
| std::string | d_updateCriteria |
| Neighbor search update criteria (if any) | |
| double | d_sFactor |
| Neighbor search factor (search length is factor times biggest radius of particle) | |
| size_t | d_neighUpdateInterval |
| Neighbor update time interval (for contact) | |
| double | d_nearBdNodesTol |
| Specify how deep we search for nodes near boundary for contact calculations. | |
User-input data for particle neighbor search.
Definition at line 23 of file pNeighborDeck.h.
Constructor.
Definition at line 41 of file pNeighborDeck.h.
|
inline |
Constructor.
Definition at line 52 of file pNeighborDeck.h.
|
inlinestatic |
The fields of this deck, declared once.
Reading, writing, printing and the schema are generated from this table.
Definition at line 65 of file pNeighborDeck.h.
References d_nearBdNodesTol, d_neighUpdateInterval, d_sFactor, d_updateCriteria, and inp::field().
Referenced by getExampleJson(), printStr(), readFromJson(), and writeToJson().
|
staticdelete |
Rejects a value given where a set of named values is expected.
A string converts to a JSON string, which would otherwise bind to the overload above and be read as a block with no keys. Deleting these makes that a compile error rather than a failure when the deck is built.
Returns the block with the given fields set.
| given | Field names and values to set, checked against the table |
Definition at line 85 of file pNeighborDeck.h.
References inp::applyGiven(), and fields().
Referenced by anonymous_namespace{main.cpp}::buildBhatInputJson(), anonymous_namespace{main.cpp}::buildImpactInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), getInputJson(), inp::ParticleDeck::getParticleNeighborExampleJson(), and anonymous_namespace{testDeckRoundTrip.cpp}::testNeighborAndGenDecks().
|
staticdelete |
Rejects a value given where a set of named values is expected.
A string converts to a JSON string, which would otherwise bind to the overload above and be read as a block with no keys. Deleting these makes that a compile error rather than a failure when the deck is built.
|
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 145 of file pNeighborDeck.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 128 of file pNeighborDeck.h.
References fields(), util::io::getTabS(), and inp::printFields().
Referenced by print(), and inp::ParticleDeck::printStr().
|
inline |
Reads from json object.
| j | JSON object |
Definition at line 105 of file pNeighborDeck.h.
References fields(), and inp::readFields().
Referenced by inp::ParticleDeck::readParticleNeighborFromJson(), and anonymous_namespace{testDeckRoundTrip.cpp}::testNeighborAndGenDecks().
|
inline |
Returns this deck as a JSON object.
Definition at line 115 of file pNeighborDeck.h.
References fields(), and inp::writeFields().
| double inp::PNeighborDeck::d_nearBdNodesTol |
Specify how deep we search for nodes near boundary for contact calculations.
Definition at line 36 of file pNeighborDeck.h.
Referenced by fields().
| size_t inp::PNeighborDeck::d_neighUpdateInterval |
Neighbor update time interval (for contact)
Definition at line 33 of file pNeighborDeck.h.
Referenced by fields().
| double inp::PNeighborDeck::d_sFactor |
Neighbor search factor (search length is factor times biggest radius of particle)
Definition at line 30 of file pNeighborDeck.h.
Referenced by fields().
| std::string inp::PNeighborDeck::d_updateCriteria |
Neighbor search update criteria (if any)
Definition at line 26 of file pNeighborDeck.h.
Referenced by fields().