PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Provides geometrical methods such as point inside rectangle. More...
Data Structures | |
class | AnnulusGeomObject |
Defines annulus rectangle. More... | |
struct | BoxPartition |
Defines simple rectangle domain. More... | |
class | Circle |
Defines circle. More... | |
class | ComplexGeomObject |
Defines complex geometrical object. More... | |
class | Cube |
Defines cube. More... | |
class | Cuboid |
Defines cuboid. More... | |
class | Cylinder |
Defines cylinder. More... | |
class | Drum2D |
Defines Drum2D. More... | |
struct | GeomData |
Input data for geometrical objects. More... | |
class | GeomObject |
Defines abstract geometrical domain. More... | |
class | Hexagon |
Defines Hexagon. More... | |
class | Line |
Defines Line. More... | |
class | NullGeomObject |
Defines null (empty) geom object. More... | |
class | Rectangle |
Defines Rectangle. More... | |
class | Sphere |
Defines sphere. More... | |
class | Square |
Defines Square. More... | |
class | Triangle |
Defines Triangle. More... | |
Functions | |
const std::vector< std::string > & | getAcceptableGeometries () |
Returns list of acceptable geometries for PeriDEM simulation. | |
std::vector< size_t > | getNumParamsRequired (std::string geom_type) |
Get num params required for creation of object. | |
bool | checkParamForGeometry (size_t n, std::string geom_type) |
Check parameter data for validity. | |
bool | isNumberOfParamForGeometryValid (size_t n, std::string geom_type) |
Ascertain if number of parameters are correct for the given geometry. | |
bool | checkParamForComplexGeometry (size_t n, std::string geom_type, std::vector< std::string > vec_type) |
Check parameter data for validity. | |
bool | isNumberOfParamForComplexGeometryValid (size_t n, std::string geom_type, std::vector< std::string > vec_type) |
Ascertain if number of parameters are correct for the given geometry. | |
void | createGeomObjectOld (const std::string &type, const std::vector< double > ¶ms, const std::vector< std::string > &vec_type, const std::vector< std::string > &vec_flag, std::shared_ptr< util::geometry::GeomObject > &obj, const size_t &dim, bool perform_check=true) |
Create geometrical object from the given data. | |
void | createGeomObject (const std::string &geom_type, const std::vector< double > ¶ms, const std::vector< std::string > &vec_type, const std::vector< std::string > &vec_flag, std::shared_ptr< util::geometry::GeomObject > &obj, const size_t &dim, bool perform_check=true) |
void | createGeomObject (GeomData &geomData, const size_t &dim, bool perform_check=true) |
Variables | |
const std::vector< std::string > | acceptable_geometries |
List of acceptable geometries for particles in PeriDEM. | |
Provides geometrical methods such as point inside rectangle.
bool util::geometry::checkParamForComplexGeometry | ( | size_t | n, |
std::string | geom_type, | ||
std::vector< std::string > | vec_type | ||
) |
Check parameter data for validity.
n | Number of parameters available |
geom_type | Geometry type of object |
vec_type | For complex objects, specify types of sub-objects |
Definition at line 105 of file geomObjectsUitl.cpp.
References checkParamForComplexGeometry().
Referenced by checkParamForComplexGeometry().
bool util::geometry::checkParamForGeometry | ( | size_t | n, |
std::string | geom_type | ||
) |
Check parameter data for validity.
n | Number of parameters available |
geom_type | Geometry type of object |
Definition at line 100 of file geomObjectsUitl.cpp.
References isNumberOfParamForGeometryValid().
void util::geometry::createGeomObject | ( | const std::string & | geom_type, |
const std::vector< double > & | params, | ||
const std::vector< std::string > & | vec_type, | ||
const std::vector< std::string > & | vec_flag, | ||
std::shared_ptr< util::geometry::GeomObject > & | obj, | ||
const size_t & | dim, | ||
bool | perform_check = true |
||
) |
Referenced by util::geometry::GeomData::copyGeometry(), util::geometry::GeomData::copyGeometry(), model::DEMModel::createGeometryAtSite(), createGeomObject(), createGeomObjectOld(), inp::Input::setParticleData(), inp::Input::setParticleDeck(), inp::Input::setZoneData(), inp::Input::setZoneMeshDeck(), and model::DEMModel::updateGeometryObjectsPostInit().
void util::geometry::createGeomObject | ( | GeomData & | geomData, |
const size_t & | dim, | ||
bool | perform_check = true |
||
) |
Definition at line 900 of file geomObjectsUitl.cpp.
References createGeomObject(), util::geometry::GeomData::d_geom_p, util::geometry::GeomData::d_geomComplexInfo, util::geometry::GeomData::d_geomName, and util::geometry::GeomData::d_geomParams.
void util::geometry::createGeomObjectOld | ( | const std::string & | type, |
const std::vector< double > & | params, | ||
const std::vector< std::string > & | vec_type, | ||
const std::vector< std::string > & | vec_flag, | ||
std::shared_ptr< util::geometry::GeomObject > & | obj, | ||
const size_t & | dim, | ||
bool | perform_check = true |
||
) |
Create geometrical object from the given data.
type | Type of object |
params | Vector of parameters |
vec_type | Sub-types of complex object |
vec_flag | Flags of sub-types of complex object |
obj | Pointer to object to which new object will be associated |
dim | Dimension |
perform_check | Perform check for sufficient parameters |
std::cout << "creating complex object\n";
Definition at line 114 of file geomObjectsUitl.cpp.
References createGeomObject(), getNumParamsRequired(), isNumberOfParamForComplexGeometryValid(), isNumberOfParamForGeometryValid(), util::methods::isTagInList(), and util::io::printStr().
|
inline |
Returns list of acceptable geometries for PeriDEM simulation.
Definition at line 140 of file geomObjectsUtil.h.
References acceptable_geometries.
std::vector< size_t > util::geometry::getNumParamsRequired | ( | std::string | geom_type | ) |
Get num params required for creation of object.
geom_type | Geometry type of object |
Definition at line 36 of file geomObjectsUitl.cpp.
Referenced by createGeomObjectOld(), isNumberOfParamForComplexGeometryValid(), and isNumberOfParamForGeometryValid().
bool util::geometry::isNumberOfParamForComplexGeometryValid | ( | size_t | n, |
std::string | geom_type, | ||
std::vector< std::string > | vec_type | ||
) |
Ascertain if number of parameters are correct for the given geometry.
n | Number of parameters available |
geom_type | Geometry type of object |
vec_type | For complex objects, specify types of sub-objects |
Definition at line 80 of file geomObjectsUitl.cpp.
References getNumParamsRequired().
Referenced by createGeomObjectOld().
bool util::geometry::isNumberOfParamForGeometryValid | ( | size_t | n, |
std::string | geom_type | ||
) |
Ascertain if number of parameters are correct for the given geometry.
n | Number of parameters available |
geom_type | Geometry type of object |
Definition at line 75 of file geomObjectsUitl.cpp.
References getNumParamsRequired(), and util::methods::isInList().
Referenced by checkParamForGeometry(), and createGeomObjectOld().
const std::vector<std::string> util::geometry::acceptable_geometries |
List of acceptable geometries for particles in PeriDEM.
Definition at line 129 of file geomObjectsUtil.h.
Referenced by model::DEMModel::createGeometryAtSite(), and getAcceptableGeometries().