namespace phase#
Overview#
namespace phase {
// enums
enum GlassKind;
// structs
struct IceXXIHit;
// global variables
double kIceIhMassDensity = 0.917;
double kIceVIMassDensity = 1.31;
double kIceNumberDensityMax = 0.5*(numberDensity(kIceIhMassDensity) + numberDensity(kIceVIMassDensity));
// global functions
int openChannelCount(const molSys::PointCloud<molSys::Point<double>, double>& yCloud, const std::vector<std::vector<int>>& nList);
std::uint64_t protonKey(const molSys::PointCloud<molSys::Point<double>, double>& yCloud, int oxygenType, int hydrogenType);
double hydrogenMSD(const molSys::PointCloud<molSys::Point<double>, double>& frame0, const molSys::PointCloud<molSys::Point<double>, double>& frame1, int hydrogenType);
IceXXIHit iceXXILibrary(const molSys::PointCloud<molSys::Point<double>, double>& yCloud);
std::vector<double> localDensity(const molSys::PointCloud<molSys::Point<double>, double>& yCloud, double rcut);
double frameDensity(const molSys::PointCloud<molSys::Point<double>, double>& yCloud, double molarMass);
double frameDensity(const molSys::PointCloud<molSys::Point<double>, double>& yCloud);
GlassKind glassFromDensity(double rho, double iceMax, double ldaMax, double mdaMin);
GlassKind glassFromDensity(double rho, double iceMax, double mdaMin);
double numberDensity(double massGPerCm3);
GlassKind glassFromDensity(double rho);
} // namespace phase
Detailed Documentation#
Global Variables#
double kIceIhMassDensity = 0.917
Mass densities, g/cm^3. Ih is the 1 bar crystal. Ice VI is the dense tetrahedral crystal, not ice I.
double kIceNumberDensityMax = 0.5*(numberDensity(kIceIhMassDensity) + numberDensity(kIceVIMassDensity))
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.
Global 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.
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)
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.
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)
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.
GlassKind glassFromDensity(double rho, double iceMax, double mdaMin)
Three-argument form: LDA/MDA split at the midpoint of iceMax and mdaMin.
double numberDensity(double massGPerCm3)
Number density in 1/A^3 from a mass density in g/cm^3.
GlassKind glassFromDensity(double rho)
Local-density windows, 1/A^3. Ice is below kIceNumberDensityMax, LDA below 0.040, MDA below 0.070, else HDA.