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
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
11
namespace
phase
{
12
13
enum class
GlassKind
{
other
= 0,
ice
,
lda
,
mda
,
hda
};
14
16
int
openChannelCount
(
17
const
molSys::PointCloud
<
molSys::Point<double>
,
double
> &yCloud,
18
const
std::vector<std::vector<int>> &nList);
19
21
std::uint64_t
protonKey
(
22
const
molSys::PointCloud
<
molSys::Point<double>
,
double
> &yCloud,
23
int
oxygenType,
int
hydrogenType);
24
26
double
hydrogenMSD
(
27
const
molSys::PointCloud
<
molSys::Point<double>
,
double
> &frame0,
28
const
molSys::PointCloud
<
molSys::Point<double>
,
double
> &frame1,
29
int
hydrogenType);
30
37
struct
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
48
IceXXIHit
iceXXILibrary
(
49
const
molSys::PointCloud
<
molSys::Point<double>
,
double
> &yCloud);
50
52
std::vector<double>
localDensity
(
53
const
molSys::PointCloud
<
molSys::Point<double>
,
double
> &yCloud,
54
double
rcut);
55
58
double
frameDensity
(
59
const
molSys::PointCloud
<
molSys::Point<double>
,
double
> &yCloud,
60
double
molarMass);
61
63
double
frameDensity
(
64
const
molSys::PointCloud
<
molSys::Point<double>
,
double
> &yCloud);
65
69
GlassKind
glassFromDensity
(
double
rho,
double
iceMax,
double
ldaMax,
70
double
mdaMin);
71
73
GlassKind
glassFromDensity
(
double
rho,
double
iceMax,
double
mdaMin);
74
77
inline
constexpr
double
kIceIhMassDensity
= 0.917;
78
inline
constexpr
double
kIceVIMassDensity
= 1.31;
79
81
inline
constexpr
double
numberDensity
(
double
massGPerCm3) {
82
return
massGPerCm3 * 6.02214076e23 / (18.015 * 1.0e24);
83
}
84
87
inline
constexpr
double
kIceNumberDensityMax
=
88
0.5 * (
numberDensity
(
kIceIhMassDensity
) +
numberDensity
(
kIceVIMassDensity
));
89
92
GlassKind
glassFromDensity
(
double
rho);
93
94
}
// namespace phase
95
96
#endif
mol_sys.hpp
The main molecular system handler.
match
Definition
shapeMatch.hpp:36
phase
Definition
phase.hpp:11
phase::numberDensity
constexpr double numberDensity(double massGPerCm3)
Number density in 1/A^3 from a mass density in g/cm^3.
Definition
phase.hpp:81
phase::kIceNumberDensityMax
constexpr double kIceNumberDensityMax
Definition
phase.hpp:87
phase::kIceIhMassDensity
constexpr double kIceIhMassDensity
Definition
phase.hpp:77
phase::glassFromDensity
GlassKind glassFromDensity(double rho, double iceMax, double ldaMax, double mdaMin)
phase::protonKey
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).
phase::GlassKind
GlassKind
Definition
phase.hpp:13
phase::GlassKind::hda
@ hda
Definition
phase.hpp:13
phase::GlassKind::other
@ other
Definition
phase.hpp:13
phase::GlassKind::ice
@ ice
Definition
phase.hpp:13
phase::GlassKind::mda
@ mda
Definition
phase.hpp:13
phase::GlassKind::lda
@ lda
Definition
phase.hpp:13
phase::kIceVIMassDensity
constexpr double kIceVIMassDensity
Definition
phase.hpp:78
phase::localDensity
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.
phase::frameDensity
double frameDensity(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, double molarMass)
phase::openChannelCount
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.
phase::iceXXILibrary
IceXXIHit iceXXILibrary(const molSys::PointCloud< molSys::Point< double >, double > &yCloud)
phase::hydrogenMSD
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.
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
phase::IceXXIHit
Definition
phase.hpp:37
phase::IceXXIHit::c
double c
Definition
phase.hpp:43
phase::IceXXIHit::nSites
int nSites
Definition
phase.hpp:39
phase::IceXXIHit::nSix
int nSix
Definition
phase.hpp:40
phase::IceXXIHit::nClasses
int nClasses
Definition
phase.hpp:41
phase::IceXXIHit::a
double a
Definition
phase.hpp:42
phase::IceXXIHit::density
double density
Definition
phase.hpp:44
phase::IceXXIHit::meanCoord
double meanCoord
Definition
phase.hpp:45
src
include
internal
phase.hpp