15#ifndef SEAMS_SEAMS_INPUT_H_
16#define SEAMS_SEAMS_INPUT_H_
71 const std::string &filename,
int first,
int last,
int typeFilter,
72 const std::function<
void(
82 std::array<double, 3> coordLow = std::array<double, 3>{0, 0, 0},
83 std::array<double, 3> coordHigh = std::array<double, 3>{0, 0, 0});
90 std::string filename,
int targetFrame,
93 std::array<double, 3> coordLow = std::array<double, 3>{0, 0, 0},
94 std::array<double, 3> coordHigh = std::array<double, 3>{0, 0, 0});
100 std::string filename,
int targetFrame,
102 bool isSlice =
false,
103 std::array<double, 3> coordLow = std::array<double, 3>{0, 0, 0},
104 std::array<double, 3> coordHigh = std::array<double, 3>{0, 0, 0});
110std::vector<std::vector<int>>
readBonds(std::string filename);
112#ifdef SEAMS_HAS_CHEMFILES
115readChemfiles(std::string filename,
int targetFrame,
117 int typeFilter = -1);
120#ifdef SEAMS_HAS_READCON
123readCon(std::string filename,
int targetFrame,
130 std::array<double, 3> coordLow,
131 std::array<double, 3> coordHigh) {
134 if (((x >= coordLow[0]) && (x <= coordHigh[0])) ||
135 coordLow[0] == coordHigh[0]) {
138 if (((y >= coordLow[1]) && (y <= coordHigh[1])) ||
139 coordLow[1] == coordHigh[1]) {
142 if (((z >= coordLow[2]) && (z <= coordHigh[2])) ||
143 coordLow[2] == coordHigh[2]) {
molSys::PointCloud< molSys::Point< double >, double > 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})
int nLammpsFrames(const std::string &filename)
void forEachLammpsFrame(const std::string &filename, int first, int last, int typeFilter, const std::function< void(int, molSys::PointCloud< molSys::Point< double >, double > &)> &fn, int nThreads=0)
molSys::PointCloud< molSys::Point< double >, double > readXYZ(std::string filename)
Function for reading in atom coordinates from an XYZ file.
molSys::PointCloud< molSys::Point< double >, double > 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})
std::vector< std::string > getInpFileList(std::string inputFolder)
Get file list inside the input folder.
molSys::PointCloud< molSys::Point< double >, double > 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})
bool atomInSlice(double x, double y, double z, std::array< double, 3 > coordLow, std::array< double, 3 > coordHigh)
std::vector< std::vector< int > > readBonds(std::string filename)
Reads bonds into a vector of vectors from a file with a specific format.
void dropLammpsDumpIndex(const std::string &filename)
Drop a cached dump session (tests that rewrite a path in place).
The main molecular system handler.
Functions for the d-SEAMS readers.
File containing common functions used by bulk and confined topological network critera.
This contains a collection of points; contains information for a particular frame.
This contains per-particle information.