15#ifndef SEAMS_BRINE_FRONT_H_
16#define SEAMS_BRINE_FRONT_H_
47 std::vector<ConcentrationBin>
bins;
145 const std::vector<bool> &iceFlag,
const std::vector<int> &waterIndices,
146 const std::vector<int> &ionIndices,
int nBins,
int axis = 2,
147 int ionsPerFormula = 2);
152 double bulkIce = 0.85,
153 double bulkLiquid = 0.15);
156 const std::vector<double> &value);
160 const std::vector<bool> &iceFlag,
const std::vector<int> &waterIndices,
161 const std::vector<int> &ionIndices,
double cutoff);
165 const std::vector<int> &waterIndices,
const FrontPair &fronts,
double halfWidth,
166 double cutoff,
int maxRing,
int axis = 2);
176 const std::vector<bool> &iceFlag,
const std::vector<int> &waterIndices,
177 const std::vector<int> &ionIndices,
const FrontOptions &options = {});
The main molecular system handler.
FrontPair locateFronts(const ConcentrationProfile &profile, double cut=0.5)
PocketCensus brinePockets(const molSys::PointCloud< molSys::Point< double >, double > &cloud, const std::vector< bool > &iceFlag, const std::vector< int > &waterIndices, const std::vector< int > &ionIndices, double cutoff)
FrontSnapshot analyseFront(const molSys::PointCloud< molSys::Point< double >, double > &cloud, const std::vector< bool > &iceFlag, const std::vector< int > &waterIndices, const std::vector< int > &ionIndices, const FrontOptions &options={})
FrontLayerReport frontLayer(const molSys::PointCloud< molSys::Point< double >, double > &cloud, const std::vector< int > &waterIndices, const FrontPair &fronts, double halfWidth, double cutoff, int maxRing, int axis=2)
RejectionCoefficient rejectionCoefficient(const ConcentrationProfile &profile, double bulkIce=0.85, double bulkLiquid=0.15)
IonState
Ions read against a per-atom ice assignment.
constexpr double kWaterMolarMassKg
LinearFit linearFit(const std::vector< double > &time, const std::vector< double > &value)
ConcentrationProfile concentrationProfile(const molSys::PointCloud< molSys::Point< double >, double > &cloud, const std::vector< bool > &iceFlag, const std::vector< int > &waterIndices, const std::vector< int > &ionIndices, int nBins, int axis=2, int ionsPerFormula=2)
std::vector< TrapEvent > trappingTransitions(const IonEnvironment &before, const IonEnvironment &after)
A trapping event is a change of IonState into ice.
Per-atom site chemistry, separate from CHILL ice labels.
This contains a collection of points; contains information for a particular frame.
This contains per-particle information.
std::vector< int > waters
double molality
formula units per kg of water in the bin
std::vector< ConcentrationBin > bins
Waters within halfWidth of either front, their primitive-ring census, and the coordination defects (a...
std::vector< int > waters
std::vector< int > coordination
std::vector< int > ringCensus
Two planar fronts of one ice slab in a periodic box.
ConcentrationProfile profile
RejectionCoefficient rejection
double slopeStdErr
standard error of the slope (not stderr, a macro on musl)
std::vector< BrinePocket > pockets
not including the liquid reservoir
std::vector< int > sizes
pocket water counts, ascending
k = c_ice / c_liquid, both molalities of formula units.
int ion
index into the ion list, not the cloud