seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
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
83
84namespace rdf2 {
85
88[[nodiscard]] int rdf2Danalysis_AA(std::string path, std::vector<double> &rdfValues,
89 const molSys::PointCloud<molSys::Point<double>, double> &yCloud,
90 double cutoff, double binwidth, int firstFrame,
91 int finalFrame);
92
94std::vector<int>
96 double cutoff, double binwidth, int nbin);
97
99[[nodiscard]] 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
106std::vector<double>
108
110double getPlaneArea(std::vector<double> volumeLengths);
111
112} // namespace rdf2
113
115#endif // SEAMS_RDF2D_H_
The main molecular system handler.
Defines RDF-specific functions.
Definition rdf2d.hpp:84
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.
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