namespace iface¶
Overview¶
namespace iface {
// enums
enum Cause;
enum Kind;
// structs
struct Bin;
struct BootstrapInterval;
struct Front;
struct Growth;
struct GrowthFrame;
struct Profile;
struct Study;
struct WillardChandler;
// global functions
Study studyCloud(molSys::PointCloud<molSys::Point<double>, double> cloud, double cutoff = 3.5, double binWidth = 1.0, bool census = true);
Study studyDump(const std::string& path, int frame, double cutoff = 3.5, double binWidth = 1.0, bool census = true);
std::string formatStudy(const Study& study, const std::string& tag);
double slope(const std::vector<double>& x, const std::vector<double>& y);
Growth studyTrajectory(const std::string& path, double dumpEveryPs, double cutoff = 3.5);
std::string formatGrowth(const Growth& growth);
std::string formatQ6Growth(const std::string& path, double dumpEveryPs, double cutoff = 3.5);
molSys::PointCloud<molSys::Point<double>, double> nanotube(int ring, int stacks, double bond = 2.75);
molSys::PointCloud<molSys::Point<double>, double> honeycombSheet(int nx, int ny, int layers, double bond = 2.75);
double gaussianStepWidth(double xi);
BootstrapInterval bootstrapMean(const std::vector<double>& samples, int nDraw, std::uint64_t seed);
BootstrapInterval pairedDifference(const std::vector<double>& a, const std::vector<double>& b, int nDraw, std::uint64_t seed);
WillardChandler willardChandler(molSys::PointCloud<molSys::Point<double>, double> cloud, double xi = 2.4);
std::string formatWillardChandler(const WillardChandler& surface);
} // namespace iface
Detailed Documentation¶
Global Functions¶
Study studyCloud(molSys::PointCloud<molSys::Point<double>, double> cloud, double cutoff = 3.5, double binWidth = 1.0, bool census = true)
Both rules, the ring census, and the interface or nucleus profile. Cutoff and bond thresholds stay at the published values. census false skips rings, sheets, diamond, CNA, q6 and the template. The CHILL+ labels and the thickness profile are unchanged.
double slope(const std::vector<double>& x, const std::vector<double>& y)
Ordinary least squares slope. Empty or a single point returns 0.
Growth studyTrajectory(const std::string& path, double dumpEveryPs, double cutoff = 3.5)
Every frame of a dump. time of frame i is (i - 1) * dumpEveryPs.
std::string formatQ6Growth(const std::string& path, double dumpEveryPs, double cutoff = 3.5)
Lechner-Dellago q6 on the 3.5 A shell, the counting rule in Espinosa, Navarro, Sanz, Valeriani and Vega, J. Chem. Phys. 145, 211922 (2016), page 211922-3. The threshold is not fitted. The report is the fraction of molecules at or above each listed q6bar and local q6, plus the frame-1 histogram of the ice core and the liquid core.
molSys::PointCloud<molSys::Point<double>, double> nanotube(int ring, int stacks, double bond = 2.75)
Ideal oxygen frameworks at a nearest-neighbour distance of bond. The box is orthorhombic and large enough that a 3.5 A shell does not see a lateral image.
double gaussianStepWidth(double xi)
10-90 width of a step smoothed by a Gaussian of standard deviation xi. The profile is the normal cdf, so the width is 2 * 1.2815515655446004 * xi.
BootstrapInterval bootstrapMean(const std::vector<double>& samples, int nDraw, std::uint64_t seed)
Percentile bootstrap of the mean. nDraw samples with replacement.
BootstrapInterval pairedDifference(const std::vector<double>& a, const std::vector<double>& b, int nDraw, std::uint64_t seed)
Mean of a[i] - b[i], resampled by shared index.
WillardChandler willardChandler(molSys::PointCloud<molSys::Point<double>, double> cloud, double xi = 2.4)
Instantaneous interface of Willard and Chandler, J. Phys. Chem. B 114, 1954 (2010). xi is their Gaussian width. The surface is the set of rays from the crystal center of mass on which the coarse density crosses the midpoint of the core and the outer liquid.