PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Input data for geometrical objects. More...
#include <geomObjectsUtil.h>
Public Member Functions | |
GeomData () | |
Constructor. | |
GeomData (const GeomData &z) | |
Constructor. | |
void | createNullGeomObject (std::string description="") |
Creates NullGeomObject. | |
void | copyGeometry (GeomData &z, size_t dim) |
Copies the geometry details. | |
void | copyGeometry (std::string &name, std::vector< double > ¶ms, std::pair< std::vector< std::string >, std::vector< std::string > > &complexInfo, std::shared_ptr< util::geometry::GeomObject > &geom, size_t dim) |
Copies the geometry details. | |
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_geomName |
Zone type. | |
std::vector< double > | d_geomParams |
Zone parameters. | |
std::shared_ptr< util::geometry::GeomObject > | d_geom_p |
Zone geometry. | |
std::pair< std::vector< std::string >, std::vector< std::string > > | d_geomComplexInfo |
Zone geometry info if it is a complex type. | |
Input data for geometrical objects.
Definition at line 21 of file geomObjectsUtil.h.
|
inline |
Constructor.
Definition at line 38 of file geomObjectsUtil.h.
|
inline |
Constructor.
z | Another GeomData object |
Definition at line 45 of file geomObjectsUtil.h.
void util::geometry::GeomData::copyGeometry | ( | GeomData & | z, |
size_t | dim | ||
) |
Copies the geometry details.
z | Another GeomData object that will be modified |
dim | Dimension of the object |
Definition at line 910 of file geomObjectsUitl.cpp.
References util::geometry::createGeomObject(), d_geom_p, d_geomComplexInfo, d_geomName, and d_geomParams.
Referenced by inp::Input::setParticleData().
void util::geometry::GeomData::copyGeometry | ( | std::string & | name, |
std::vector< double > & | params, | ||
std::pair< std::vector< std::string >, std::vector< std::string > > & | complexInfo, | ||
std::shared_ptr< util::geometry::GeomObject > & | geom, | ||
size_t | dim | ||
) |
Copies the geometry details.
name | Name of geometry |
params | Parameters |
complexInfo | Pair of vector of geometry names and flags for complex geometry |
geom | Pointer to geometry object |
dim | Dimension of the object |
Definition at line 928 of file geomObjectsUitl.cpp.
References util::geometry::createGeomObject().
|
inline |
Creates NullGeomObject.
description | Description (if any) |
Definition at line 55 of file geomObjectsUtil.h.
References d_geom_p, d_geomName, and d_geomParams.
|
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 123 of file geomObjectsUtil.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 92 of file geomObjectsUtil.h.
References d_geom_p, d_geomComplexInfo, d_geomName, d_geomParams, util::io::getTabS(), and util::io::printStr().
Referenced by print(), inp::MeshDeck::printStr(), inp::ParticleDeck::printStr(), inp::PBCData::printStr(), inp::Zone::printStr(), and inp::ParticleZone::printStr().
std::shared_ptr<util::geometry::GeomObject> util::geometry::GeomData::d_geom_p |
Zone geometry.
Definition at line 30 of file geomObjectsUtil.h.
Referenced by copyGeometry(), util::geometry::createGeomObject(), createNullGeomObject(), loading::ParticleFLoading::needToComputeDof(), loading::ParticleULoading::needToComputeDof(), inp::PBCData::printStr(), printStr(), inp::Input::setParticleData(), and inp::Input::setZoneData().
std::pair<std::vector<std::string>, std::vector<std::string> > util::geometry::GeomData::d_geomComplexInfo |
Zone geometry info if it is a complex type.
Definition at line 33 of file geomObjectsUtil.h.
Referenced by copyGeometry(), util::geometry::createGeomObject(), printStr(), and anonymous_namespace{input.cpp}::readGeometry().
std::string util::geometry::GeomData::d_geomName |
Zone type.
Definition at line 24 of file geomObjectsUtil.h.
Referenced by copyGeometry(), util::geometry::createGeomObject(), createNullGeomObject(), printStr(), and anonymous_namespace{input.cpp}::readGeometry().
std::vector<double> util::geometry::GeomData::d_geomParams |
Zone parameters.
Definition at line 27 of file geomObjectsUtil.h.
Referenced by copyGeometry(), util::geometry::createGeomObject(), createNullGeomObject(), printStr(), and anonymous_namespace{input.cpp}::readGeometry().