seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
phase Namespace Reference

Classes

struct  IceXXIHit

Enumerations

enum class  GlassKind {
  other = 0 , ice , lda , mda ,
  hda
}

Functions

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.
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).
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.
IceXXIHit iceXXILibrary (const molSys::PointCloud< molSys::Point< double >, double > &yCloud)
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)
double frameDensity (const molSys::PointCloud< molSys::Point< double >, double > &yCloud)
 Water, 18.015 g/mol.
GlassKind glassFromDensity (double rho, double iceMax, double ldaMax, double mdaMin)
GlassKind glassFromDensity (double rho, double iceMax, double mdaMin)
 Three-argument form: LDA/MDA split at the midpoint of iceMax and mdaMin.
constexpr double numberDensity (double massGPerCm3)
 Number density in 1/A^3 from a mass density in g/cm^3.
GlassKind glassFromDensity (double rho)

Variables

constexpr double kIceIhMassDensity = 0.917
constexpr double kIceVIMassDensity = 1.31
constexpr double kIceNumberDensityMax

Enumeration Type Documentation

◆ GlassKind

enum class phase::GlassKind
strong
Enumerator
other 
ice 
lda 
mda 
hda 

Definition at line 13 of file phase.hpp.

Function Documentation

◆ frameDensity() [1/2]

double phase::frameDensity ( const molSys::PointCloud< molSys::Point< double >, double > & yCloud)

Water, 18.015 g/mol.

◆ frameDensity() [2/2]

double phase::frameDensity ( const molSys::PointCloud< molSys::Point< double >, double > & yCloud,
double molarMass )

Bulk mass density in g/cm^3. The volume is the triclinic cell volume, not the product of the bound spans. molarMass is g/mol.

◆ glassFromDensity() [1/3]

GlassKind phase::glassFromDensity ( double rho)

Local-density windows, 1/A^3. Ice is below kIceNumberDensityMax, LDA below 0.040, MDA below 0.070, else HDA.

◆ glassFromDensity() [2/3]

GlassKind phase::glassFromDensity ( double rho,
double iceMax,
double ldaMax,
double mdaMin )

HDA/MDA/LDA/ice from local number density (1/A^3). Ice first-shell density is four neighbours in the 3.5 A sphere (~0.022 A^-3). HDA is the dense shell (>= 0.070 A^-3). ldaMax splits LDA from MDA.

◆ glassFromDensity() [3/3]

GlassKind phase::glassFromDensity ( double rho,
double iceMax,
double mdaMin )

Three-argument form: LDA/MDA split at the midpoint of iceMax and mdaMin.

◆ hydrogenMSD()

double phase::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.

◆ iceXXILibrary()

IceXXIHit phase::iceXXILibrary ( const molSys::PointCloud< molSys::Point< double >, double > & yCloud)

◆ localDensity()

std::vector< double > phase::localDensity ( const molSys::PointCloud< molSys::Point< double >, double > & yCloud,
double rcut )

Local number density (1/A^3) in a sphere of radius rcut.

◆ numberDensity()

double phase::numberDensity ( double massGPerCm3)
inlineconstexpr

Number density in 1/A^3 from a mass density in g/cm^3.

Definition at line 81 of file phase.hpp.

81 {
82 return massGPerCm3 * 6.02214076e23 / (18.015 * 1.0e24);
83}

◆ openChannelCount()

int phase::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.

◆ protonKey()

std::uint64_t phase::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).

Variable Documentation

◆ kIceIhMassDensity

double phase::kIceIhMassDensity = 0.917
inlineconstexpr

Mass densities, g/cm^3. Ih is the 1 bar crystal. Ice VI is the dense tetrahedral crystal, not ice I.

Definition at line 77 of file phase.hpp.

◆ kIceNumberDensityMax

double phase::kIceNumberDensityMax
inlineconstexpr
Initial value:
=
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 kIceIhMassDensity
Definition phase.hpp:77
constexpr double kIceVIMassDensity
Definition phase.hpp:78

Ice/LDA split: the midpoint of the Ih and ice VI number densities. Ih (about 0.031) is ice. Ice VI (about 0.044) is not.

Definition at line 87 of file phase.hpp.

◆ kIceVIMassDensity

double phase::kIceVIMassDensity = 1.31
inlineconstexpr

Definition at line 78 of file phase.hpp.