rdf2d.hpp
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------------
2 // d-SEAMS - Deferred Structural Elucidation Analysis for Molecular Simulations
3 //
4 // Copyright (c) 2018--present d-SEAMS core team
5 //
6 // This program is free software: you can redistribute it and/or modify
7 // it under the terms of the MIT License as published by
8 // the Open Source Initiative.
9 //
10 // A copy of the MIT License is included in the LICENSE file of this repository.
11 // You should have received a copy of the MIT License along with this program.
12 // If not, see <https://opensource.org/licenses/MIT>.
13 //-----------------------------------------------------------------------------------
14 
15 #ifndef __RDF2D_H_
16 #define __RDF2D_H_
17 
18 #include <algorithm>
19 #include <array>
20 #include <fstream>
21 #include <iostream>
22 #include <iterator>
23 #include <math.h>
24 #include <memory>
25 #include <sstream>
26 #include <string>
27 #include <sys/stat.h>
28 #include <vector>
29 
30 #include <mol_sys.hpp>
31 #include <order_parameter.hpp>
32 #include <ring.hpp>
33 #include <seams_input.hpp>
34 #include <seams_output.hpp>
35 
84 namespace rdf2 {
85 
90  double cutoff, double binwidth, int firstFrame,
91  int finalFrame);
92 
96  double cutoff, double binwidth, int nbin);
97 
99 int normalizeRDF(int nopA, std::vector<double> *rdfValues,
100  std::vector<int> histogram, double binwidth, int nbin,
101  std::vector<double> volumeLengths, int nIter);
102 
106 
108 double getPlaneArea(std::vector<double> volumeLengths);
109 
110 } // namespace rdf2
111 
112 #endif // __RDF2D_H_
std::vector< double > getSystemLengths(molSys::PointCloud< molSys::Point< double >, double > *yCloud)
Gets the lengths of the volume slice of the quasi-two-dimensional system.
Definition: rdf2d.cpp:212
std::vector< int > sampleRDF_AA(molSys::PointCloud< molSys::Point< double >, double > *yCloud, double cutoff, double binwidth, int nbin)
Samples the RDF histogram at every step.
Definition: rdf2d.cpp:115
double getPlaneArea(std::vector< double > volumeLengths)
Gets the plane area from the volume lengths vector.
Definition: rdf2d.cpp:264
int rdf2Danalysis_AA(std::string path, std::vector< double > *rdfValues, molSys::PointCloud< molSys::Point< double >, double > *yCloud, double cutoff, double binwidth, int firstFrame, int finalFrame)
Definition: rdf2d.cpp:45
int normalizeRDF(int nopA, std::vector< double > *rdfValues, std::vector< int > histogram, double binwidth, int nbin, std::vector< double > volumeLengths, int nIter)
Normalize the histogram.
Definition: rdf2d.cpp:162
The main molecular system handler.
Defines RDF-specific functions.
Definition: rdf2d.hpp:84
File containing common functions used by bulk and confined topological network critera.
File for functions that read in files).
This contains a collection of points; contains information for a particular frame.
Definition: mol_sys.hpp:170
This contains per-particle information.
Definition: mol_sys.hpp:149