PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
inp::PNeighborDeck Struct Reference

User-input data for particle neighbor search. More...

#include <pNeighborDeck.h>

Collaboration diagram for inp::PNeighborDeck:

Public Member Functions

 PNeighborDeck ()
 Constructor.
 
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.
 

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)
 
double d_sTol
 Neighbor search tolerance.
 
size_t d_neighUpdateInterval
 Neighbor update time interval (for contact)
 

Detailed Description

User-input data for particle neighbor search.

Definition at line 21 of file pNeighborDeck.h.

Constructor & Destructor Documentation

◆ PNeighborDeck()

inp::PNeighborDeck::PNeighborDeck ( )
inline

Constructor.

Definition at line 41 of file pNeighborDeck.h.

42 : d_updateCriteria("simple_all"),
43 d_sFactor(1.),
44 d_sTol(0.),
double d_sTol
Neighbor search tolerance.
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)

Member Function Documentation

◆ print()

void inp::PNeighborDeck::print ( int  nt = 0,
int  lvl = 0 
) const
inline

Prints the information about the object.

Parameters
ntNumber of tabs to append before printing
lvlInformation level (higher means more information)

Definition at line 74 of file pNeighborDeck.h.

74{ std::cout << printStr(nt, lvl); }
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.

References printStr().

Here is the call graph for this function:

◆ printStr()

std::string inp::PNeighborDeck::printStr ( int  nt = 0,
int  lvl = 0 
) const
inline

Returns the string containing printable information about the object.

Parameters
ntNumber of tabs to append before printing
lvlInformation level (higher means more information)
Returns
string String containing printable information about the object

Definition at line 54 of file pNeighborDeck.h.

54 {
55
56 auto tabS = util::io::getTabS(nt);
57 std::ostringstream oss;
58 oss << tabS << "------- PNeighborDeck --------" << std::endl << std::endl;
59 oss << tabS << "Update criteria = " << d_updateCriteria << std::endl;
60 oss << tabS << "Search factor = " << d_sFactor << std::endl;
61 oss << tabS << "Search tolerance = " << d_sTol << std::endl;
62 oss << tabS << "Search update interval = " << d_neighUpdateInterval << std::endl;
63 oss << tabS << std::endl;
64
65 return oss.str();
66 }
std::string getTabS(int nt)
Returns tab spaces of given size.
Definition io.h:40

References d_neighUpdateInterval, d_sFactor, d_sTol, d_updateCriteria, and util::io::getTabS().

Referenced by print(), and inp::ParticleDeck::printStr().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ d_neighUpdateInterval

size_t inp::PNeighborDeck::d_neighUpdateInterval

Neighbor update time interval (for contact)

Definition at line 36 of file pNeighborDeck.h.

Referenced by printStr().

◆ d_sFactor

double inp::PNeighborDeck::d_sFactor

Neighbor search factor (search length is factor times biggest radius of particle)

Definition at line 28 of file pNeighborDeck.h.

Referenced by printStr().

◆ d_sTol

double inp::PNeighborDeck::d_sTol

Neighbor search tolerance.

Definition at line 33 of file pNeighborDeck.h.

Referenced by printStr().

◆ d_updateCriteria

std::string inp::PNeighborDeck::d_updateCriteria

Neighbor search update criteria (if any)

Definition at line 24 of file pNeighborDeck.h.

Referenced by printStr().


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