namespace science¶
Overview¶
namespace science {
// structs
struct AtomRow;
struct ClusterPart;
struct CriticalSize;
struct Front;
struct LayerRow;
struct Layers;
struct NucleusFrame;
struct SlopeInterval;
// global variables
double kCutoffA = 3.5;
double kQ6BarIceCut = 0.36;
// global functions
Layers fitSolidFraction(const std::vector<double>& phi, const std::vector<double>& mid, double span);
Layers layersOf(const molSys::PointCloud<molSys::Point<double>, double>& cloud, int axis = -1, double binWidth = 1.0);
SlopeInterval bootstrapSlope(const std::vector<double>& x, const std::vector<double>& y, int nDraw, std::uint64_t seed);
CriticalSize criticalSize(const std::vector<double>& series, int nDraw, std::uint64_t seed);
NucleusFrame nucleusOf(molSys::PointCloud<molSys::Point<double>, double>& cloud, int frame, double q6Cut = kQ6BarIceCut);
std::vector<AtomRow> labelAtoms(molSys::PointCloud<molSys::Point<double>, double> cloud, double q6Cut = kQ6BarIceCut);
} // namespace science
Detailed Documentation¶
Global Variables¶
double kCutoffA = 3.5
Published CHILL+ cutoff, in angstrom. Not a fitted parameter.
double kQ6BarIceCut = 0.36
Lechner-Dellago q6-bar ice cut used for the cluster mask. The same gap as the nucleation census, not refitted here.
Global Functions¶
Layers fitSolidFraction(const std::vector<double>& phi, const std::vector<double>& mid, double span)
10-90 fronts of a binned solid fraction. span is the axis length. A flat crystal, with no fall through 0.5, is undefined.
Layers layersOf(const molSys::PointCloud<molSys::Point<double>, double>& cloud, int axis = -1, double binWidth = 1.0)
CHILL+, the shell label and q6 binned along axis (0, 1 or 2). A negative axis uses the longest box edge.
SlopeInterval bootstrapSlope(const std::vector<double>& x, const std::vector<double>& y, int nDraw, std::uint64_t seed)
Ordinary-least-squares slope, with a percentile bootstrap. A draw whose x values have no spread is dropped.
CriticalSize criticalSize(const std::vector<double>& series, int nDraw, std::uint64_t seed)
Critical size of one cluster-size series. See the file comment.
NucleusFrame nucleusOf(molSys::PointCloud<molSys::Point<double>, double>& cloud, int frame, double q6Cut = kQ6BarIceCut)
One frame. The published CHILL+ label is left on the cloud.
std::vector<AtomRow> labelAtoms(molSys::PointCloud<molSys::Point<double>, double> cloud, double q6Cut = kQ6BarIceCut)
Per-molecule labels. inExtended marks the largest CHILL+ cluster of cubic, hexagonal and interfacial molecules.