PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Provides fast methods to add/subtract list of data, to find maximum/minimum from list of data. More...
Functions | |
template<typename T > | |
size_t | maxIndex (const std::vector< T > &data) |
Returns the index corresponding to maximum from list of data. | |
template<typename T > | |
size_t | minIndex (const std::vector< T > &data) |
Returns the index corresponding to minimum from list of data. | |
template<typename T > | |
T | max (const std::vector< T > &data) |
Returns the maximum from list of data. | |
template<typename T > | |
T | min (const std::vector< T > &data) |
Returns the minimim from list of data. | |
template<typename T > | |
std::pair< size_t, T > | maxAndMaxIndex (const std::vector< T > &data) |
Returns the maximum and index of maximum from list of data. | |
template<typename T > | |
std::pair< size_t, T > | minAndMinIndex (const std::vector< T > &data) |
Returns the minimum and index of minimum from list of data. | |
template<typename T > | |
size_t | maxIndex (const std::vector< T > &data, size_t data_start, size_t data_end) |
Returns the index corresponding to maximum from list of data. | |
size_t | maxLengthIndex (const std::vector< util::Point > &data) |
Returns the index that has maximum length of point from list of points. | |
size_t | minLengthIndex (const std::vector< util::Point > &data) |
Returns the index that has minimum length of point from list of points. | |
double | maxLength (const std::vector< util::Point > &data) |
Returns the maximum length of point from list of points. | |
double | minLength (const std::vector< util::Point > &data) |
Returns the minimum length of point from list of points. | |
std::pair< double, size_t > | maxLengthAndMaxLengthIndex (const std::vector< util::Point > &data) |
Returns the maximum length of point and index from list of points. | |
std::pair< double, size_t > | minLengthAndMinLengthIndex (const std::vector< util::Point > &data) |
Returns the minimum length of point and index from list of points. | |
template<typename T > | |
T | add (const std::vector< T > &data) |
Returns the sum of data. | |
bool | isFree (const int &i, const unsigned int &dof) |
Returns true if degree of freedom is free. | |
bool | isFree (const uint8_t &i, const unsigned int &dof) |
Returns true if degree of freedom is free. | |
template<typename T > | |
bool | isInList (const T &i, const std::vector< T > &list) |
Find if data is in the list. | |
bool | isTagInList (const std::string &tag, const std::vector< std::string > &tags) |
Returns true if tag is found in the list of tags. | |
template<typename T > | |
void | addToList (const T &i, std::vector< T > &list) |
Add element to the list. | |
float | timeDiff (std::chrono::steady_clock::time_point begin, std::chrono::steady_clock::time_point end, std::string unit="microseconds") |
Returns difference between two times. | |
template<typename T_out > | |
T_out | getKeyData (std::string key, std::map< std::string, T_out > &data_map, bool issue_err=false) |
Get data for a key. | |
template<typename T_out > | |
void | appendKeyData (std::string key, T_out data, std::map< std::string, T_out > &data_map, bool issue_err=false) |
Append value to data associated with key. | |
template<typename T_out > | |
void | setKeyData (std::string key, T_out data, std::map< std::string, T_out > &data_map, bool issue_err=false) |
Set value to data associated with key. | |
Provides fast methods to add/subtract list of data, to find maximum/minimum from list of data.
|
inline |
|
inline |
|
inline |
Append value to data associated with key.
key | Key to append the data to |
Definition at line 344 of file methods.h.
|
inline |
Get data for a key.
key | Key to access the data |
Definition at line 325 of file methods.h.
|
inline |
Returns true if degree of freedom is free.
i | Fixity value |
dof | Degree of freedom to probe (dof = 0 for x, dof = 1 for y, and dof = 2 for z) |
Definition at line 249 of file methods.h.
Referenced by model::DEMModel::init().
|
inline |
|
inline |
Find if data is in the list.
tag | Tag to search |
tags | List of tags |
Definition at line 265 of file methods.h.
Referenced by util::geometry::isNumberOfParamForGeometryValid(), and isTagInList().
|
inline |
Returns true if tag is found in the list of tags.
tag | Tag to search |
tags | List of tags |
Definition at line 279 of file methods.h.
References isInList().
Referenced by rw::writer::VtkParticleWriter::appendNodes(), model::DEMModel::createGeometryAtSite(), util::geometry::createGeomObjectOld(), model::DEMModel::output(), inp::Input::setParticleDeck(), model::DEMModel::setupQuadratureData(), and model::DEMModel::updateGeometryObjectsPostInit().
|
inline |
Returns the maximum from list of data.
data | List of real numbers |
Definition at line 74 of file methods.h.
References maxIndex().
Referenced by model::DEMModel::init(), and model::DEMModel::updateContactNeighborSearchParameters().
|
inline |
Returns the maximum and index of maximum from list of data.
data | List of real numbers |
Definition at line 94 of file methods.h.
References maxIndex().
|
inline |
Returns the index corresponding to maximum from list of data.
data | List of real numbers |
Definition at line 38 of file methods.h.
Referenced by util::geometry::ComplexGeomObject::center(), max(), maxAndMaxIndex(), maxLength(), maxLengthAndMaxLengthIndex(), maxLengthIndex(), and model::DEMModel::updateContactNeighborSearchParameters().
|
inline |
Returns the index corresponding to maximum from list of data.
data | List of real numbers |
Definition at line 117 of file methods.h.
|
inline |
Returns the maximum length of point from list of points.
data | List of points |
Definition at line 182 of file methods.h.
References maxIndex().
|
inline |
Returns the maximum length of point and index from list of points.
data | List of points |
Definition at line 208 of file methods.h.
References maxIndex().
Referenced by model::DEMModel::checkStop().
|
inline |
Returns the index that has maximum length of point from list of points.
data | List of points |
Definition at line 156 of file methods.h.
References maxIndex().
|
inline |
Returns the minimim from list of data.
data | List of real numbers |
Definition at line 84 of file methods.h.
References minIndex().
|
inline |
Returns the minimum and index of minimum from list of data.
data | List of real numbers |
Definition at line 105 of file methods.h.
References minIndex().
|
inline |
Returns the index corresponding to minimum from list of data.
data | List of real numbers |
Definition at line 56 of file methods.h.
Referenced by min(), minAndMinIndex(), minLength(), minLengthAndMinLengthIndex(), and minLengthIndex().
|
inline |
Returns the minimum length of point from list of points.
data | List of points |
Definition at line 195 of file methods.h.
References minIndex().
|
inline |
Returns the minimum length of point and index from list of points.
data | List of points |
Definition at line 222 of file methods.h.
References minIndex().
|
inline |
Returns the index that has minimum length of point from list of points.
data | List of points |
Definition at line 169 of file methods.h.
References minIndex().
|
inline |
Set value to data associated with key.
key | Key to append the data to |
Definition at line 366 of file methods.h.
|
inline |
Returns difference between two times.
begin | Beginning time |
end | Ending time |
unit | Unit in which time difference is to be returned |
Definition at line 304 of file methods.h.
Referenced by model::DEMModel::computeForces(), peridynamics::Model::computeForces(), model::DEMModel::init(), model::DEMModel::integrate(), twoparticle_demo::Model::integrate(), main(), fe::metisGraphPartition(), nsearch::NFlannSearchKd< dim >::setInputCloud(), test::testGraphPartitioning(), test::testPeriDEM(), test::testTaskflow(), and test::testTriElemTime().