Topics | |
| Ring | |
Namespaces | |
| namespace | gen |
| Small generic functions that are shared by all namespaces. | |
Classes | |
| struct | gen::FracBox |
Functions | |
| double | gen::radDeg (double angle) |
| Inline function for converting radians->degrees. | |
| double | gen::eigenVecAngle (std::vector< double > OO, std::vector< double > OH) |
| Eigen function for getting the angle (in radians) between the O–O and O-H vectors. | |
| double | gen::getAverageWithoutOutliers (std::vector< double > inpVec) |
| Get the average, after excluding the outliers, using quartiles. | |
| double | gen::calcMedian (std::vector< double > *input) |
| Inline generic function for calculating the median given a vector of the values. | |
| FracBox | gen::makeFracBox (const molSys::PointCloud< molSys::Point< double >, double > &yCloud) |
| std::array< double, 3 > | gen::fracDelta (const FracBox &b, double xi, double yi, double zi, double xj, double yj, double zj) |
| double | gen::fracDistSq (const FracBox &b, double xi, double yi, double zi, double xj, double yj, double zj) |
| bool | gen::smithInside (const FracBox &b, double r2) |
| std::array< double, 3 > | gen::triclinicMinImage (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, double xi, double yi, double zi, double xj, double yj, double zj) |
| double | gen::periodicDistSq (const FracBox &b, const molSys::PointCloud< molSys::Point< double >, double > &yCloud, int iatom, int jatom) |
| Inline generic function for obtaining the unwrapped periodic distance between two particles, whose indices (not IDs) have been given. | |
| double | gen::periodicDistSq (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, int iatom, int jatom) |
| double | gen::periodicDist (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, int iatom, int jatom) |
| Inline generic function for obtaining the unwrapped periodic distance between two particles, whose indices (not IDs) have been given. | |
| void | gen::batchPeriodicDistSq (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, int iatom, const int *jatom, std::size_t n, double *distSq) |
| std::string | gen::formatDumpBox (const std::vector< double > &box) |
| void | gen::writeDumpBoxBounds (std::ostream &os, const molSys::PointCloud< molSys::Point< double >, double > &yCloud) |
| std::array< double, 3 > | gen::relDistFromPoint (const FracBox &b, const molSys::PointCloud< molSys::Point< double >, double > &yCloud, int iatom, double xj, double yj, double zj) |
| Inline generic function for obtaining the unwrapped periodic distance between one particle and another point, whose index has been given. | |
| std::array< double, 3 > | gen::relDistFromPoint (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, int iatom, double xj, double yj, double zj) |
| double | gen::unWrappedDistFromPoint (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, int iatom, const std::vector< double > &singlePoint) |
| double | gen::distance (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, int iatom, int jatom) |
| Inline generic function for obtaining the wrapped distance between two particles WITHOUT applying PBCs, whose indices (not IDs) have been given. | |
| std::array< double, 3 > | gen::relDist (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, int iatom, int jatom) |
| Inline generic function for getting the relative unwrapped distance between two particles for each dimension. | |
| bool | gen::compareByAtomID (const molSys::Point< double > &a, const molSys::Point< double > &b) |
| Inline generic function for sorting or comparing two particles, according to the atom ID when the entire Point objects have been passed. | |
| int | gen::prettyPrintYoda (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, std::string outFile) |
| Generic function for printing all the struct information. | |
| int | gen::unwrappedCoordShift (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, int iatomIndex, int jatomIndex, double *x_i, double *y_i, double *z_i, double *x_j, double *y_j, double *z_j) |
| Shift particles (unwrapped coordinates). | |
| double | gen::angDistDegQuaternions (std::vector< double > quat1, std::vector< double > quat2) |
| std::vector< std::string > | gen::tokenizer (std::string line) |
| Function for tokenizing line strings into words (strings) delimited by whitespace. | |
| std::vector< double > | gen::tokenizerDouble (std::string line) |
| Function for tokenizing line strings into a vector of doubles. | |
| std::vector< int > | gen::tokenizerInt (std::string line) |
| Function for tokenizing line strings into a vector of ints. | |
| bool | gen::file_exists (const std::string &name) |
| Function for checking if a file exists or not. | |
| std::vector< std::complex< double > > | gen::avgVector (std::vector< std::complex< double > > v, int l, int neigh) |
| Calculates the complex vector, normalized by the number of nearest neighbours, of length \(2l+1\). | |
Variables | |
| constexpr double | gen::pi = std::numbers::pi |
| Uses Boost to get the value of pi. | |
| double | gen::FracBox::lx = 0.0 |
| double | gen::FracBox::ly = 0.0 |
| double | gen::FracBox::lz = 0.0 |
| double | gen::FracBox::xy = 0.0 |
| double | gen::FracBox::xz = 0.0 |
| double | gen::FracBox::yz = 0.0 |
| double | gen::FracBox::ox = 0.0 |
| double | gen::FracBox::oy = 0.0 |
| double | gen::FracBox::oz = 0.0 |
| double | gen::FracBox::wx = 0.0 |
| double | gen::FracBox::wy = 0.0 |
| double | gen::FracBox::wz = 0.0 |
| double | gen::FracBox::halfMin = 0.0 |
| bool | gen::FracBox::triclinic = false |
| bool | gen::FracBox::ok = false |
| double gen::angDistDegQuaternions | ( | std::vector< double > | quat1, |
| std::vector< double > | quat2 ) |
Function for getting the angular distance between two quaternions. Returns the result in degrees
|
inline |
Calculates the complex vector, normalized by the number of nearest neighbours, of length \(2l+1\).
| [in] | v | The complex vector to be normalized, of length \(2l+1\) |
| [in] | l | A free integer parameter |
| [in] | neigh | The number of nearest neighbours |
Definition at line 697 of file generic.hpp.
|
inline |
Definition at line 426 of file generic.hpp.
|
inline |
Inline generic function for calculating the median given a vector of the values.
| [in] | yCloud | The input PointCloud, which contains the particle coordinates, simulation box lengths etc. |
| [in] | input | The input vector with the values |
Definition at line 87 of file generic.hpp.
|
inline |
Inline generic function for sorting or comparing two particles, according to the atom ID when the entire Point objects have been passed.
| [in] | a | The input Point for A. |
| [in] | b | The input Point for B. |
Definition at line 620 of file generic.hpp.
|
inline |
Inline generic function for obtaining the wrapped distance between two particles WITHOUT applying PBCs, whose indices (not IDs) have been given.
| [in] | yCloud | The input PointCloud, which contains the particle coordinates, simulation box lengths etc. |
| [in] | iatom | The index of the \( i^{th} \) atom. |
| [in] | jatom | The index of the \( j^{th} \) atom. |
Definition at line 575 of file generic.hpp.
| double gen::eigenVecAngle | ( | std::vector< double > | OO, |
| std::vector< double > | OH ) |
Eigen function for getting the angle (in radians) between the O–O and O-H vectors.
|
inline |
Function for checking if a file exists or not.
| [in] | name | The name of the file |
Definition at line 684 of file generic.hpp.
|
inline |
Definition at line 465 of file generic.hpp.
|
inline |
Definition at line 203 of file generic.hpp.
|
inline |
Definition at line 231 of file generic.hpp.
| double gen::getAverageWithoutOutliers | ( | std::vector< double > | inpVec | ) |
Get the average, after excluding the outliers, using quartiles.
|
inline |
Definition at line 154 of file generic.hpp.
|
inline |
Inline generic function for obtaining the unwrapped periodic distance between two particles, whose indices (not IDs) have been given.
| [in] | yCloud | The input PointCloud, which contains the particle coordinates, simulation box lengths etc. |
| [in] | iatom | The index of the \( i^{th} \) atom. |
| [in] | jatom | The index of the \( j^{th} \) atom. |
Definition at line 417 of file generic.hpp.
|
inline |
Inline generic function for obtaining the unwrapped periodic distance between two particles, whose indices (not IDs) have been given.
| [in] | yCloud | The input PointCloud, which contains the particle coordinates, simulation box lengths etc. |
| [in] | iatom | The index of the \( i^{th} \) atom. |
| [in] | jatom | The index of the \( j^{th} \) atom. |
Definition at line 363 of file generic.hpp.
|
inline |
Definition at line 402 of file generic.hpp.
|
nodiscard |
Generic function for printing all the struct information.
|
inline |
Inline function for converting radians->degrees.
| [in] | angle | The input angle, in radians |
Definition at line 71 of file generic.hpp.
|
inline |
Inline generic function for getting the relative unwrapped distance between two particles for each dimension.
The indices (not IDs) of the particles have been given.
| [in] | yCloud | The input PointCloud, which contains the particle coordinates, simulation box lengths etc. |
| [in] | iatom | The index of the \( i^{th} \) atom. |
| [in] | jatom | The index of the \( j^{th} \) atom. |
Definition at line 605 of file generic.hpp.
|
inline |
Inline generic function for obtaining the unwrapped periodic distance between one particle and another point, whose index has been given.
| [in] | b | The box of yCloud, from makeFracBox. |
| [in] | yCloud | The input PointCloud, which contains the particle coordinates, simulation box lengths etc. |
| [in] | iatom | The index of the \( i^{th} \) atom. |
| [in] | xj,yj,zj | The other point. |
Definition at line 512 of file generic.hpp.
|
inline |
Definition at line 549 of file generic.hpp.
|
inline |
Definition at line 241 of file generic.hpp.
|
inline |
Function for tokenizing line strings into words (strings) delimited by whitespace.
This returns a vector with the words in it.
| [in] | line | The string containing the line to be tokenized |
Definition at line 645 of file generic.hpp.
|
inline |
Function for tokenizing line strings into a vector of doubles.
| [in] | line | The string containing the line to be tokenized |
Definition at line 656 of file generic.hpp.
|
inline |
Function for tokenizing line strings into a vector of ints.
| [in] | line | The string containing the line to be tokenized |
Definition at line 670 of file generic.hpp.
|
inline |
Definition at line 298 of file generic.hpp.
|
nodiscard |
Shift particles (unwrapped coordinates).
|
inline |
Definition at line 555 of file generic.hpp.
|
inline |
Definition at line 477 of file generic.hpp.
| double gen::FracBox::halfMin = 0.0 |
Definition at line 148 of file generic.hpp.
| double gen::FracBox::lx = 0.0 |
Definition at line 136 of file generic.hpp.
| double gen::FracBox::ly = 0.0 |
Definition at line 137 of file generic.hpp.
| double gen::FracBox::lz = 0.0 |
Definition at line 138 of file generic.hpp.
| bool gen::FracBox::ok = false |
Definition at line 150 of file generic.hpp.
| double gen::FracBox::ox = 0.0 |
Definition at line 142 of file generic.hpp.
| double gen::FracBox::oy = 0.0 |
Definition at line 143 of file generic.hpp.
| double gen::FracBox::oz = 0.0 |
Definition at line 144 of file generic.hpp.
|
constexpr |
Uses Boost to get the value of pi.
Definition at line 64 of file generic.hpp.
| bool gen::FracBox::triclinic = false |
Definition at line 149 of file generic.hpp.
| double gen::FracBox::wx = 0.0 |
Definition at line 145 of file generic.hpp.
| double gen::FracBox::wy = 0.0 |
Definition at line 146 of file generic.hpp.
| double gen::FracBox::wz = 0.0 |
Definition at line 147 of file generic.hpp.
| double gen::FracBox::xy = 0.0 |
Definition at line 139 of file generic.hpp.
| double gen::FracBox::xz = 0.0 |
Definition at line 140 of file generic.hpp.
| double gen::FracBox::yz = 0.0 |
Definition at line 141 of file generic.hpp.