Loading...
Searching...
No Matches
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 SEAMS_RDF2D_H_
16#define SEAMS_RDF2D_H_
17
18#include <algorithm>
19#include <array>
20#include <fstream>
21#include <iostream>
22#include <iterator>
23#include <cmath>
24#include <memory>
25#include <sstream>
26#include <string>
27#include <vector>
28
29#include <mol_sys.hpp>
30#include <order_parameter.hpp>
31#include <ring.hpp>
32#include <seams_input.hpp>
33#include <seams_output.hpp>
34
39
44
82
83namespace rdf2 {
84
87[[nodiscard]] int rdf2Danalysis_AA(std::string path, std::vector<double> &rdfValues,
88 const molSys::PointCloud<molSys::Point<double>, double> &yCloud,
89 double cutoff, double binwidth, int firstFrame,
90 int finalFrame);
91
93std::vector<int>
95 double cutoff, double binwidth, int nbin);
96
98[[nodiscard]] int normalizeRDF(int nopA, std::vector<double> &rdfValues,
99 std::vector<int> histogram, double binwidth, int nbin,
100 std::vector<double> volumeLengths, int nIter);
101
105std::vector<double>
107
109double getPlaneArea(std::vector<double> volumeLengths);
110
111} // namespace rdf2
112
113#endif // SEAMS_RDF2D_H_
double getPlaneArea(std::vector< double > volumeLengths)
Gets the plane area from the volume lengths vector.
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.
int rdf2Danalysis_AA(std::string path, std::vector< double > &rdfValues, const molSys::PointCloud< molSys::Point< double >, double > &yCloud, double cutoff, double binwidth, int firstFrame, int finalFrame)
std::vector< double > getSystemLengths(const molSys::PointCloud< molSys::Point< double >, double > &yCloud)
std::vector< int > sampleRDF_AA(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, double cutoff, double binwidth, int nbin)
Samples the RDF histogram at every step.
The main molecular system handler.
Defines RDF-specific functions.
Definition rdf2d.hpp:83
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:173
This contains per-particle information.
Definition mol_sys.hpp:152