Functions | |
std::vector< std::string > | sinp::getInpFileList (std::string inputFolder) |
Get file list inside the input folder. More... | |
molSys::PointCloud< molSys::Point< double >, double > | sinp::readLammpsTrj (std::string filename, int targetFrame, molSys::PointCloud< molSys::Point< double >, double > *yCloud, bool isSlice=false, std::array< double, 3 > coordLow=std::array< double, 3 >{0, 0, 0}, std::array< double, 3 > coordHigh=std::array< double, 3 >{0, 0, 0}) |
molSys::PointCloud< molSys::Point< double >, double > | sinp::readLammpsTrjO (std::string filename, int targetFrame, molSys::PointCloud< molSys::Point< double >, double > *yCloud, int typeO, bool isSlice=false, std::array< double, 3 > coordLow=std::array< double, 3 >{0, 0, 0}, std::array< double, 3 > coordHigh=std::array< double, 3 >{0, 0, 0}) |
molSys::PointCloud< molSys::Point< double >, double > | sinp::readLammpsTrjreduced (std::string filename, int targetFrame, molSys::PointCloud< molSys::Point< double >, double > *yCloud, int typeI, bool isSlice=false, std::array< double, 3 > coordLow=std::array< double, 3 >{0, 0, 0}, std::array< double, 3 > coordHigh=std::array< double, 3 >{0, 0, 0}) |
molSys::PointCloud< molSys::Point< double >, double > | sinp::readXYZ (std::string filename) |
Function for reading in atom coordinates from an XYZ file. More... | |
std::vector< std::vector< int > > | sinp::readBonds (std::string filename) |
Reads bonds into a vector of vectors from a file with a specific format. More... | |
bool | sinp::atomInSlice (double x, double y, double z, std::array< double, 3 > coordLow, std::array< double, 3 > coordHigh) |
|
inline |
If this is 3 then the particle is inside the volume slice
Definition at line 88 of file seams_input.hpp.
std::vector<std::string> sinp::getInpFileList | ( | std::string | inputFolder | ) |
Get file list inside the input folder.
std::vector< std::vector< int > > sinp::readBonds | ( | std::string | filename | ) |
Reads bonds into a vector of vectors from a file with a specific format.
Get all the ring information, from the R.I.N.G.S. file. Each line contains the IDs of the atoms in the ring. This is saved inside a vector of vectors. Rings which have more than three consecutive water molecules are discarded.
Definition at line 24 of file seams_input.cpp.
molSys::PointCloud< molSys::Point< double >, double > sinp::readLammpsTrj | ( | std::string | filename, |
int | targetFrame, | ||
molSys::PointCloud< molSys::Point< double >, double > * | yCloud, | ||
bool | isSlice = false , |
||
std::array< double, 3 > | coordLow = std::array<double, 3>{0, 0, 0} , |
||
std::array< double, 3 > | coordHigh = std::array<double, 3>{0, 0, 0} |
||
) |
Function for reading in a specified frame (frame number and not timestep value)
Function for reading in a lammps file. Reads in a specified frame (frame number and not timestep value).
[in] | filename | The name of the lammps trajectory file to be read in |
[in] | targetFrame | The frame number whose information will be read in |
[out] | yCloud | The outputted PointCloud |
[in] | isSlice | This decides whether a slice will be created or not |
[in] | coordLow | Contains the lower limits of the slice, if a slice is to be created |
[in] | coordHigh | Contains the upper limits of the slice, if a slice is to be created |
Definition at line 212 of file seams_input.cpp.
molSys::PointCloud< molSys::Point< double >, double > sinp::readLammpsTrjO | ( | std::string | filename, |
int | targetFrame, | ||
molSys::PointCloud< molSys::Point< double >, double > * | yCloud, | ||
int | typeO, | ||
bool | isSlice = false , |
||
std::array< double, 3 > | coordLow = std::array<double, 3>{0, 0, 0} , |
||
std::array< double, 3 > | coordHigh = std::array<double, 3>{0, 0, 0} |
||
) |
Function for reading in a specified frame (frame number and not timestep value) / This only reads in oxygen atoms
Function for reading in a lammps file; and saves only the Oxygen atoms. This is an overloaded function. The Oxygen atom ID must be specified.
[in] | filename | The name of the lammps trajectory file to be read in |
[in] | targetFrame | The frame number whose information will be read in |
[out] | yCloud | The outputted PointCloud |
[in] | typeO | The type ID of the Oxygen atoms |
[in] | isSlice | This decides whether a slice will be created or not |
[in] | coordLow | Contains the lower limits of the slice, if a slice is to be created |
[in] | coordHigh | Contains the upper limits of the slice, if a slice is to be created |
Definition at line 431 of file seams_input.cpp.
molSys::PointCloud< molSys::Point< double >, double > sinp::readLammpsTrjreduced | ( | std::string | filename, |
int | targetFrame, | ||
molSys::PointCloud< molSys::Point< double >, double > * | yCloud, | ||
int | typeI, | ||
bool | isSlice = false , |
||
std::array< double, 3 > | coordLow = std::array<double, 3>{0, 0, 0} , |
||
std::array< double, 3 > | coordHigh = std::array<double, 3>{0, 0, 0} |
||
) |
Function that reads in only atoms pf the desired type and ignores all atoms which are not in the slice as well
Function for reading in a lammps file; and saves only the atoms of the desired type. Atoms which are not inside the slice or not of type I are not saved at all This is an overloaded function. The type atom ID must be specified.
[in] | filename | The name of the lammps trajectory file to be read in |
[in] | targetFrame | The frame number whose information will be read in |
[out] | yCloud | The outputted PointCloud |
[in] | typeI | The type ID of the desired type of atoms |
[in] | isSlice | This decides whether a slice will be created or not |
[in] | coordLow | Contains the lower limits of the slice, if a slice is to be created |
[in] | coordHigh | Contains the upper limits of the slice, if a slice is to be created |
Definition at line 656 of file seams_input.cpp.
molSys::PointCloud< molSys::Point< double >, double > sinp::readXYZ | ( | std::string | filename | ) |
Function for reading in atom coordinates from an XYZ file.
Function for reading in an XYZ file
Definition at line 73 of file seams_input.cpp.