d-SEAMS
Install
Output
Methods
Docs
Engine & CLI
Python
Rust
Julia
R
Lua / Fennel
Fortran
PLUMED
linkcell
Wiki
Cite
GitHub
seams-core
v2.14.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
83
84
namespace
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
94
std::vector<int>
95
sampleRDF_AA
(
const
molSys::PointCloud
<
molSys::Point<double>
,
double
> &yCloud,
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
106
std::vector<double>
107
getSystemLengths
(
const
molSys::PointCloud
<
molSys::Point<double>
,
double
> &yCloud);
108
110
double
getPlaneArea
(std::vector<double> volumeLengths);
111
112
}
// namespace rdf2
113
115
#endif
// SEAMS_RDF2D_H_
mol_sys.hpp
The main molecular system handler.
rdf2
Defines RDF-specific functions.
Definition
rdf2d.hpp:84
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.
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