Modules | |
Ring | |
Functions | |
double | gen::radDeg (double angle) |
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. More... | |
double | gen::getAverageWithoutOutliers (std::vector< double > inpVec) |
Get the average, after excluding the outliers, using quartiles. More... | |
double | gen::calcMedian (std::vector< double > *input) |
Inline generic function for calculating the median given a vector of the values. More... | |
double | gen::periodicDist (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. More... | |
double | gen::unWrappedDistFromPoint (molSys::PointCloud< molSys::Point< double >, double > *yCloud, int iatom, std::vector< double > singlePoint) |
double | gen::distance (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. More... | |
std::array< double, 3 > | gen::relDist (molSys::PointCloud< molSys::Point< double >, double > *yCloud, int iatom, int jatom) |
bool | gen::compareByAtomID (const molSys::Point< double > &a, const molSys::Point< double > &b) |
int | gen::prettyPrintYoda (molSys::PointCloud< molSys::Point< double >, double > *yCloud, std::string outFile) |
Generic function for printing all the struct information. More... | |
int | gen::unwrappedCoordShift (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) More... | |
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. This returns a vector with the words in it. More... | |
std::vector< double > | gen::tokenizerDouble (std::string line) |
Function for tokenizing line strings into a vector of doubles. More... | |
std::vector< int > | gen::tokenizerInt (std::string line) |
Function for tokenizing line strings into a vector of ints. More... | |
bool | gen::file_exists (const std::string &name) |
Function for checking if a file exists or not. More... | |
std::vector< std::complex< double > > | gen::avgVector (std::vector< std::complex< double >> v, int l, int neigh) |
Variables | |
const double | gen::pi = boost::math::constants::pi<double>() |
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
Function for getting the angular distance between two quaternions. Returns the result in degrees.
[in] | quat1 | The first quaternion |
[in] | quat2 | The second quaternion |
Definition at line 267 of file generic.cpp.
|
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 313 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 77 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 234 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 170 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.
Function for obtaining the angle between two input vectors (std::vector). Internally, the vectors are converted to Eigen vectors. The dot product between the input vectors is used to calculate the angle between them.
[in] | OO | The O–O vector (but can be any vector, in general). |
[in] | OH | The O-H vector (but can be any vector, in general). |
Definition at line 155 of file generic.cpp.
|
inline |
Function for checking if a file exists or not.
[in] | name | The name of the file |
Definition at line 298 of file generic.hpp.
double gen::getAverageWithoutOutliers | ( | std::vector< double > | inpVec | ) |
Get the average, after excluding the outliers, using quartiles.
Get the average, after excluding the outliers, using quartiles
[in] | inpVec | The vector containing values whose average is desired |
Definition at line 169 of file generic.cpp.
|
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 108 of file generic.hpp.
int gen::prettyPrintYoda | ( | molSys::PointCloud< molSys::Point< double >, double > * | yCloud, |
std::string | outFile | ||
) |
Generic function for printing all the struct information.
Function for printing out info in a PointCloud object.
[in] | yCloud | The input PointCloud to be printed. |
[in] | outFile | The name of the output file to which the information will be printed. |
Definition at line 25 of file generic.cpp.
|
inline |
Inline function for converting radians->degrees.
[in] | angle | The input angle, in radians |
Definition at line 61 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 200 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 259 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 270 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 284 of file generic.hpp.
int gen::unwrappedCoordShift | ( | 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)
Function for getting the unwrapped coordinates of a pair of atoms.
[in] | yCloud | The input PointCloud to be printed. |
[in] | iatomIndex | Index of the \( i^{th} \) atom. |
[in] | jatomIndex | Index of the \( j^{th} \) atom. |
[in,out] | x_i | X Coordinate of the \( i^{th} \) atom corresponding to the unwrapped distance. |
[in,out] | y_i | Y Coordinate of the \( i^{th} \) atom corresponding to the unwrapped distance. |
[in,out] | z_i | Z Coordinate of the \( i^{th} \) atom corresponding to the unwrapped distance. |
[in,out] | x_j | X Coordinate of the \( j^{th} \) atom corresponding to the unwrapped distance. |
[in,out] | y_j | Y Coordinate of the \( j^{th} \) atom corresponding to the unwrapped distance. |
[in,out] | z_j | Z Coordinate of the \( j^{th} \) atom corresponding to the unwrapped distance. |
Definition at line 71 of file generic.cpp.
|
inline |
Inline generic function for obtaining the unwrapped periodic distance between one particle and another point, whose index has 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] | singlePoint | Vector containing coordinate values |
Definition at line 138 of file generic.hpp.
const double gen::pi = boost::math::constants::pi<double>() |
Uses Boost to get the value of pi.
Definition at line 54 of file generic.hpp.