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

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

#include <pICDeck.h>

Collaboration diagram for inp::PICDeck:

Public Member Functions

 PICDeck ()
 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

bool d_icActive
 Specify if particle initial condition is active.
 
util::Point d_icVec
 Initial velocity vector.
 
std::vector< size_t > d_pList
 List of particles (if any)
 
std::vector< size_t > d_pNotList
 List of particles to not include (if any)
 

Detailed Description

User-input data for particle neighbor search.

Definition at line 24 of file pICDeck.h.

Constructor & Destructor Documentation

◆ PICDeck()

inp::PICDeck::PICDeck ( )
inline

Constructor.

Definition at line 41 of file pICDeck.h.

41: d_icActive(false), d_icVec(){};
bool d_icActive
Specify if particle initial condition is active.
Definition pICDeck.h:27
util::Point d_icVec
Initial velocity vector.
Definition pICDeck.h:30

Member Function Documentation

◆ print()

void inp::PICDeck::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 pICDeck.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.
Definition pICDeck.h:50

References printStr().

Here is the call graph for this function:

◆ printStr()

std::string inp::PICDeck::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 50 of file pICDeck.h.

50 {
51
52 auto tabS = util::io::getTabS(nt);
53 std::ostringstream oss;
54 oss << tabS << "------- PICDeck --------" << std::endl << std::endl;
55 oss << tabS << "IC active = " << d_icActive << std::endl;
56 oss << tabS << "IC vector = " << d_icVec.printStr(0, 0) << std::endl;
57 if (!d_pList.empty())
58 oss << tabS << "Particle list = ["
59 << util::io::printStr<size_t>(d_pList, 0) << "]" << std::endl;
60 if (!d_pNotList.empty())
61 oss << tabS << "Particle excluded list = ["
62 << util::io::printStr<size_t>(d_pNotList, 0) << "]" << 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
std::vector< size_t > d_pNotList
List of particles to not include (if any)
Definition pICDeck.h:36
std::vector< size_t > d_pList
List of particles (if any)
Definition pICDeck.h:33
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.
Definition point.h:94

References d_icActive, d_icVec, d_pList, d_pNotList, util::io::getTabS(), and util::Point::printStr().

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_icActive

bool inp::PICDeck::d_icActive

Specify if particle initial condition is active.

Definition at line 27 of file pICDeck.h.

Referenced by printStr().

◆ d_icVec

util::Point inp::PICDeck::d_icVec

Initial velocity vector.

Definition at line 30 of file pICDeck.h.

Referenced by printStr().

◆ d_pList

std::vector<size_t> inp::PICDeck::d_pList

List of particles (if any)

Definition at line 33 of file pICDeck.h.

Referenced by printStr().

◆ d_pNotList

std::vector<size_t> inp::PICDeck::d_pNotList

List of particles to not include (if any)

Definition at line 36 of file pICDeck.h.

Referenced by printStr().


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