15#ifndef SEAMS_SEAMS_INPUT_H_
16#define SEAMS_SEAMS_INPUT_H_
75 const std::string &filename,
int first,
int last,
int typeFilter,
76 const std::function<
void(
78 int nThreads = 0,
int part = 0,
int parts = 1);
86 std::array<double, 3> coordLow = std::array<double, 3>{0, 0, 0},
87 std::array<double, 3> coordHigh = std::array<double, 3>{0, 0, 0});
94 std::string filename,
int targetFrame,
97 std::array<double, 3> coordLow = std::array<double, 3>{0, 0, 0},
98 std::array<double, 3> coordHigh = std::array<double, 3>{0, 0, 0});
104 std::string filename,
int targetFrame,
106 bool isSlice =
false,
107 std::array<double, 3> coordLow = std::array<double, 3>{0, 0, 0},
108 std::array<double, 3> coordHigh = std::array<double, 3>{0, 0, 0});
114std::vector<std::vector<int>>
readBonds(std::string filename);
116#ifdef SEAMS_HAS_CHEMFILES
119readChemfiles(std::string filename,
int targetFrame,
121 int typeFilter = -1);
124#ifdef SEAMS_HAS_READCON
129readCon(std::string filename,
int targetFrame,
132#ifdef SEAMS_HAS_READCON_DB
137int ingestConCorpus(
const std::string &corpus, std::uint64_t trajId,
138 const std::string &conPath);
145readConCorpus(
const std::string &corpus,
const std::string &symbol,
146 const std::string &formula,
int targetFrame,
154 std::array<double, 3> coordLow,
155 std::array<double, 3> coordHigh) {
158 if (((x >= coordLow[0]) && (x <= coordHigh[0])) ||
159 coordLow[0] == coordHigh[0]) {
162 if (((y >= coordLow[1]) && (y <= coordHigh[1])) ||
163 coordLow[1] == coordHigh[1]) {
166 if (((z >= coordLow[2]) && (z <= coordHigh[2])) ||
167 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, int part=0, int parts=1)
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.