seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
phase.hpp
Go to the documentation of this file.
1#ifndef SEAMS_PHASE_H_
2#define SEAMS_PHASE_H_
3
4#include <mol_sys.hpp>
5
6#include <array>
7#include <cstdint>
8#include <string>
9#include <vector>
10
11namespace phase {
12
13enum class GlassKind { other = 0, ice, lda, mda, hda };
14
17 const molSys::PointCloud<molSys::Point<double>, double> &yCloud,
18 const std::vector<std::vector<int>> &nList);
19
21std::uint64_t protonKey(
22 const molSys::PointCloud<molSys::Point<double>, double> &yCloud,
23 int oxygenType, int hydrogenType);
24
27 const molSys::PointCloud<molSys::Point<double>, double> &frame0,
28 const molSys::PointCloud<molSys::Point<double>, double> &frame1,
29 int hydrogenType);
30
37struct IceXXIHit {
38 bool match = false;
39 int nSites = 0;
40 int nSix = 0;
41 int nClasses = 0;
42 double a = 0.0;
43 double c = 0.0;
44 double density = 0.0;
45 double meanCoord = 0.0;
46};
47
49 const molSys::PointCloud<molSys::Point<double>, double> &yCloud);
50
52std::vector<double> localDensity(
53 const molSys::PointCloud<molSys::Point<double>, double> &yCloud,
54 double rcut);
55
59 const molSys::PointCloud<molSys::Point<double>, double> &yCloud,
60 double molarMass);
61
64 const molSys::PointCloud<molSys::Point<double>, double> &yCloud);
65
69GlassKind glassFromDensity(double rho, double iceMax, double ldaMax,
70 double mdaMin);
71
73GlassKind glassFromDensity(double rho, double iceMax, double mdaMin);
74
77inline constexpr double kIceIhMassDensity = 0.917;
78inline constexpr double kIceVIMassDensity = 1.31;
79
81inline constexpr double numberDensity(double massGPerCm3) {
82 return massGPerCm3 * 6.02214076e23 / (18.015 * 1.0e24);
83}
84
87inline constexpr double kIceNumberDensityMax =
89
93
94} // namespace phase
95
96#endif
The main molecular system handler.
constexpr double numberDensity(double massGPerCm3)
Number density in 1/A^3 from a mass density in g/cm^3.
Definition phase.hpp:81
constexpr double kIceNumberDensityMax
Definition phase.hpp:87
constexpr double kIceIhMassDensity
Definition phase.hpp:77
GlassKind glassFromDensity(double rho, double iceMax, double ldaMax, double mdaMin)
std::uint64_t protonKey(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, int oxygenType, int hydrogenType)
64-bit key of donated H directions per oxygen (molID-shared hydrogens).
GlassKind
Definition phase.hpp:13
constexpr double kIceVIMassDensity
Definition phase.hpp:78
std::vector< double > localDensity(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, double rcut)
Local number density (1/A^3) in a sphere of radius rcut.
double frameDensity(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, double molarMass)
int openChannelCount(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList)
Open hexagonal channel along z: six-rings stacked, not a closed 512.
IceXXIHit iceXXILibrary(const molSys::PointCloud< molSys::Point< double >, double > &yCloud)
double hydrogenMSD(const molSys::PointCloud< molSys::Point< double >, double > &frame0, const molSys::PointCloud< molSys::Point< double >, double > &frame1, int hydrogenType)
Mean squared displacement of hydrogenType between two frames.
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
double density
Definition phase.hpp:44
double meanCoord
Definition phase.hpp:45