15#ifndef SEAMS_SEAMS_INPUT_H_
16#define SEAMS_SEAMS_INPUT_H_
84 const std::string &filename,
int first,
int last,
int typeFilter,
85 const std::function<
void(
87 int nThreads = 0,
int part = 0,
int parts = 1);
100 bool isSlice =
false,
101 std::array<double, 3> coordLow = std::array<double, 3>{0, 0, 0},
102 std::array<double, 3> coordHigh = std::array<double, 3>{0, 0, 0});
109 std::string filename,
int targetFrame,
111 bool isSlice =
false,
112 std::array<double, 3> coordLow = std::array<double, 3>{0, 0, 0},
113 std::array<double, 3> coordHigh = std::array<double, 3>{0, 0, 0});
119 std::string filename,
int targetFrame,
121 bool isSlice =
false,
122 std::array<double, 3> coordLow = std::array<double, 3>{0, 0, 0},
123 std::array<double, 3> coordHigh = std::array<double, 3>{0, 0, 0});
129std::vector<std::vector<int>>
readBonds(std::string filename);
136#ifdef SEAMS_HAS_CHEMFILES
142struct ChemfilesRead {
145 bool guessOxygen =
false;
146 std::string selection;
150readChemfiles(std::string filename,
152 const ChemfilesRead &request);
156readChemfiles(std::string filename,
int targetFrame,
158 int typeFilter = -1);
164void forEachChemfilesStep(
165 const std::string &filename,
int first,
int last,
int typeFilter,
166 const std::function<
void(
172bool forEachChemfilesFrame(
173 const std::string &filename,
int first,
int last,
int typeI,
174 const std::string &selection,
int part,
int parts,
175 const std::function<
void(
184openFrame(
const std::string &filename,
int frame,
int typeI,
185 const std::string &selection = {});
187#ifdef SEAMS_HAS_READCON
192readCon(std::string filename,
int targetFrame,
199 const std::string &filename,
int first,
int last,
200 const std::function<
void(
203#ifdef SEAMS_HAS_READCON_DB
208int ingestConCorpus(
const std::string &corpus, std::uint64_t trajId,
209 const std::string &conPath);
216readConCorpus(
const std::string &corpus,
const std::string &symbol,
217 const std::string &formula,
int targetFrame,
225 std::array<double, 3> coordLow,
226 std::array<double, 3> coordHigh) {
229 if (((x >= coordLow[0]) && (x <= coordHigh[0])) ||
230 coordLow[0] == coordHigh[0]) {
233 if (((y >= coordLow[1]) && (y <= coordHigh[1])) ||
234 coordLow[1] == coordHigh[1]) {
237 if (((z >= coordLow[2]) && (z <= coordHigh[2])) ||
238 coordLow[2] == coordHigh[2]) {
The main molecular system handler.
Functions for the d-SEAMS readers.
std::string currentExceptionText()
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)
bool readDefaultOxygen(const std::string &filename, int frame, molSys::PointCloud< molSys::Point< double >, double > &yCloud)
molSys::PointCloud< molSys::Point< double >, double > openFrame(const std::string &filename, int frame, int typeI, const std::string &selection={})
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.
int chemfilesSteps(const std::string &filename)
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).
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.