11#ifndef INP_PARTICLEDECK_H
12#define INP_PARTICLEDECK_H
95 std::string
printStr(
int nt = 0,
int lvl = 0)
const {
98 std::ostringstream oss;
99 oss << tabS <<
"------- ParticleDeck --------" << std::endl << std::endl;
100 oss << tabS <<
"Number of particle zones = " <<
d_particleZones.size() << std::endl;
101 oss << tabS <<
"Particle data:" << std::endl;
103 oss << tabS <<
"Particle data for zone = " << i << std::endl;
106 oss << tabS <<
"Container geometry details:" << std::endl;
108 oss << tabS <<
"Neighbor data:" << std::endl;
112 oss << tabS <<
"Num of Force BC = " <<
d_forceDeck.size() << std::endl;
113 oss << tabS <<
"Force BC info:" << std::endl;
116 oss << tabS <<
" Force BC id = " << bc_count++ << std::endl;
117 oss << f.printStr(nt+2, lvl);
119 oss << tabS <<
"Num of Displacement BC = " <<
d_dispDeck.size() <<
121 oss << tabS <<
"Displacement BC info:" << std::endl;
124 oss << tabS <<
" Displacement BC id = " << bc_count++ << std::endl;
125 oss << f.printStr(nt+2, lvl);
127 oss << tabS <<
"IC data:" << std::endl;
129 oss << tabS <<
"Test name = " <<
d_testName << std::endl;
130 oss << tabS << std::endl;
141 void print(
int nt = 0,
int lvl = 0)
const { std::cout <<
printStr(nt, lvl); }
Collection of methods and database related to input.
std::string getTabS(int nt)
Returns tab spaces of given size.
User-input data for particle neighbor search.
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.
User-input data for particle neighbor search.
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.
Structure to read and store particle related input data.
void print(int nt=0, int lvl=0) const
Prints the information about the object.
std::vector< inp::ParticleZone > d_particleZones
Particle in zones.
bool d_gravityActive
Gravity loading value.
std::vector< inp::PBCData > d_dispDeck
Displacement loading deck.
std::vector< inp::Zone > d_zoneVec
All zones.
size_t d_particleForceDirectionCompressiveTest
if it is a compressive test, specify force direction on wall
std::vector< inp::PBCData > d_forceDeck
Force loading deck.
size_t d_particleIdCompressiveTest
if it is a compressive test, specify wall id and direction
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.
inp::PNeighborDeck d_pNeighDeck
Neighbor search data.
ParticleDeck()
Constructor.
inp::PICDeck d_icDeck
Initial condition deck.
std::vector< std::pair< std::string, size_t > > d_zoneToParticleORWallDeck
Maps particle/wall to corresponding zone.
util::Point d_gravity
Gravity loading value.
std::string d_testName
Specify test name (if any)
util::geometry::GeomData d_contGeomData
Geometry of container in which all particles reside. Currently, we only support rectangle (2-d) and c...
A structure to represent 3d vectors.
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.
Input data for geometrical objects.
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.