13#include <unordered_map>
103 const std::vector<bool> &iceFlag,
const std::vector<int> &ionIndices,
104 const std::vector<int> &waterTypes,
double cutoff);
109 const std::vector<bool> &iceFlag,
const std::vector<int> &ionIndices,
110 int waterType,
double cutoff);
119 const std::vector<int> &shell,
int maxRingSize);
125std::vector<std::vector<int>>
cappedRings(
const std::vector<std::vector<int>> &rings,
126 const std::vector<int> &shell,
135std::vector<std::vector<int>>
brokenRings(
const std::vector<std::vector<int>> &nList,
136 const std::vector<int> &shell,
159 const std::vector<std::vector<int>> &cages,
160 const std::vector<int> &guestIndices,
double radius);
166 const std::vector<int> &atoms);
193 const std::vector<std::vector<int>> &rings,
194 const std::vector<int> &faces,
const std::array<double, 3> &guest,
195 const std::array<double, 3> *center =
nullptr);
198 const std::vector<std::vector<int>> &rings,
199 const std::vector<int> &faces,
const std::array<double, 3> &guest,
200 const std::array<double, 3> *center =
nullptr);
208 const std::vector<std::vector<int>> &rings,
209 const std::vector<std::vector<int>> &cageFaces,
210 const std::vector<int> &guestIndices);
224 const std::vector<bool> &
ice,
225 const std::vector<std::vector<int>> &nListByIndex,
226 const std::vector<int> &ionIndices,
double cutoff);
The main molecular system handler.
constexpr double kInsideRelTol
Relative tolerance of the inside test, in units of the largest distance from c_F to a cage vertex.
int lammpsTypeOfKind(const Table &table, Kind kind)
std::vector< std::vector< int > > brokenRings(const std::vector< std::vector< int > > &nList, const std::vector< int > &shell, int maxRingSize)
Broken rings: the primitive rings, of at most maxRingSize members, of the water graph nList (by index...
std::array< double, 3 > periodicCentroid(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< int > &atoms)
Periodic centroid of a set of atoms: every atom is unwrapped to its minimum image about the first,...
IceClusterIons iceClusterIonCensus(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< bool > &ice, const std::vector< std::vector< int > > &nListByIndex, const std::vector< int > &ionIndices, double cutoff)
std::vector< int > shellRingCensus(const std::vector< std::vector< int > > &rings, const std::vector< int > &shell, int maxRingSize)
Rings of the water network that pass through a first shell: the census by size of every ring with at ...
molSys::PointCloud< molSys::Point< double >, double > ionCloud(const molSys::PointCloud< molSys::Point< double >, double > &src, const Table &table)
bool pointInFaces(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &rings, const std::vector< int > &faces, const std::array< double, 3 > &guest, const std::array< double, 3 > *center=nullptr)
std::vector< int > indicesOf(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const Table &table, Kind kind)
IonState
Ions read against a per-atom ice assignment.
GuestOccupancy guestOccupancyInside(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &rings, const std::vector< std::vector< int > > &cageFaces, const std::vector< int > &guestIndices)
Occupancy by the inside predicate (pointInFaces) on every cage.
const std::vector< std::array< double, 3 > > & insideRayDirections()
The fixed, ordered unit directions the inside test casts rays along.
std::vector< std::vector< int > > cappedRings(const std::vector< std::vector< int > > &rings, const std::vector< int > &shell, int maxRingSize)
Capped rings: the water-only primitive rings of rings (the ring network of the water graph,...
Table parseSiteSpec(std::string_view spec)
GuestOccupancy guestOccupancy(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &cages, const std::vector< int > &guestIndices, double radius)
cages are vertex index lists into yCloud.pts; radius in the cloud's length unit (half the cage diamet...
InsideTrace pointInFacesTrace(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &rings, const std::vector< int > &faces, const std::array< double, 3 > &guest, const std::array< double, 3 > *center=nullptr)
The inside predicate for one cage.
IonEnvironment ionEnvironment(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< bool > &iceFlag, const std::vector< int > &ionIndices, const std::vector< int > &waterTypes, double cutoff)
iceFlag is indexed like yCloud.pts.
This contains a collection of points; contains information for a particular frame.
This contains per-particle information.
Guests read against enumerated cages.
std::vector< int > cageOfGuest
per guest in input order, cage index or -1
std::vector< double > centreDistance
per guest, distance to its cage center (-1 when free)
int occupied
cages with at least one guest
int multiply
cages with more than one guest
int free
guests in no cage
std::vector< int > guestsPerCage
per cage, guests inside
std::vector< int > occupancyHistogram
hist[k] = cages with k guests
Connected components of ice atoms on the water graph, and the ion count per component: each ion is as...
std::vector< int > clusterOfIon
per ion in input order, or -1
std::vector< int > ionsInCluster
per cluster
std::vector< int > clusterOf
per atom, cluster id or -1
bool onFace
the guest lies on a triangle within tolerance
int rays
directions tried, grazing ones included
int crossings
triangles met by the ray that decided
std::vector< int > ion
cloud indices of the ions, in input order
std::vector< int > shell
water molecules within the cutoff
std::vector< std::vector< int > > members
per ion, the shell molecules (cloud indices)
std::vector< double > iceFraction
labeled share of that shell
std::vector< IonState > state
std::unordered_map< int, Kind > typeToKind
Kind ofType(int typeId) const
Kind of(const molSys::Point< double > &p) const
std::unordered_map< int, Kind > atomOverride