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

User-input data for zones. More...

#include <zoneDeck.h>

Collaboration diagram for inp::Zone:

Public Member Functions

 Zone ()
 Constructor.
 
 Zone (const Zone &z)
 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

util::geometry::GeomData d_zoneGeomData
 Zone geometry data.
 
size_t d_zoneId
 Specify zone to which this particle belongs to.
 

Detailed Description

User-input data for zones.

Definition at line 27 of file zoneDeck.h.

Constructor & Destructor Documentation

◆ Zone() [1/2]

inp::Zone::Zone ( )
inline

Constructor.

Definition at line 38 of file zoneDeck.h.

38: d_zoneGeomData(){};
util::geometry::GeomData d_zoneGeomData
Zone geometry data.
Definition zoneDeck.h:30

◆ Zone() [2/2]

inp::Zone::Zone ( const Zone z)
inline

Constructor.

Parameters
zAnother zone object

Definition at line 45 of file zoneDeck.h.

46 : d_zoneGeomData(z.d_zoneGeomData),
47 d_zoneId(z.d_zoneId) {};
size_t d_zoneId
Specify zone to which this particle belongs to.
Definition zoneDeck.h:33

Member Function Documentation

◆ print()

void inp::Zone::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 zoneDeck.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 zoneDeck.h:56

References printStr().

Here is the call graph for this function:

◆ printStr()

std::string inp::Zone::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 56 of file zoneDeck.h.

56 {
57
58 auto tabS = util::io::getTabS(nt);
59 std::ostringstream oss;
60 oss << tabS << "------- Zone --------" << std::endl << std::endl;
61 oss << tabS << "Zone id = " << d_zoneId << std::endl;
62 oss << tabS << "Zone geometry data: " << std::endl;
63 oss << d_zoneGeomData.printStr(nt+1, lvl);
64
65 return oss.str();
66 }
std::string getTabS(int nt)
Returns tab spaces of given size.
Definition io.h:40
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.

References d_zoneGeomData, d_zoneId, util::io::getTabS(), and util::geometry::GeomData::printStr().

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

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

Field Documentation

◆ d_zoneGeomData

util::geometry::GeomData inp::Zone::d_zoneGeomData

Zone geometry data.

Definition at line 30 of file zoneDeck.h.

Referenced by printStr(), and inp::Input::setZoneData().

◆ d_zoneId

size_t inp::Zone::d_zoneId

Specify zone to which this particle belongs to.

Definition at line 33 of file zoneDeck.h.

Referenced by printStr().


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