seams-core v2.6.0
libyodaLib, the C++ engine of d-SEAMS
☾
Toggle main menu visibility
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
83
namespace
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
93
std::vector<int>
94
sampleRDF_AA
(
const
molSys::PointCloud
<
molSys::Point<double>
,
double
> &yCloud,
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
105
std::vector<double>
106
getSystemLengths
(
const
molSys::PointCloud
<
molSys::Point<double>
,
double
> &yCloud);
107
109
double
getPlaneArea
(std::vector<double> volumeLengths);
110
111
}
// namespace rdf2
112
113
#endif
// SEAMS_RDF2D_H_
rdf2::getPlaneArea
double getPlaneArea(std::vector< double > volumeLengths)
Gets the plane area from the volume lengths vector.
rdf2::normalizeRDF
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.
rdf2::rdf2Danalysis_AA
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)
rdf2::getSystemLengths
std::vector< double > getSystemLengths(const molSys::PointCloud< molSys::Point< double >, double > &yCloud)
rdf2::sampleRDF_AA
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.
mol_sys.hpp
The main molecular system handler.
rdf2
Defines RDF-specific functions.
Definition
rdf2d.hpp:83
order_parameter.hpp
ring.hpp
File containing common functions used by bulk and confined topological network critera.
seams_input.hpp
File for functions that read in files).
seams_output.hpp
molSys::PointCloud
This contains a collection of points; contains information for a particular frame.
Definition
mol_sys.hpp:173
molSys::Point
This contains per-particle information.
Definition
mol_sys.hpp:152
src
include
internal
rdf2d.hpp
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf