namespace water¶
Overview¶
Water-oxygen selection for a mixed frame. More…
namespace water {
// enums
enum MolMode;
// structs
struct IonReport;
struct IonSite;
struct Request;
struct Selection;
// global functions
bool hasMultiAtomMolecule(const molSys::PointCloud<molSys::Point<double>, double>& cloud);
Selection selectOxygens(const molSys::PointCloud<molSys::Point<double>, double>& cloud, const Request& request);
molSys::PointCloud<molSys::Point<double>, double> subsetCloud(const molSys::PointCloud<molSys::Point<double>, double>& cloud, const Selection& selection);
molSys::PointCloud<molSys::Point<double>, double> keepHistoricalOxygen(const molSys::PointCloud<molSys::Point<double>, double>& cloud);
std::vector<IonSite> collectIons(const molSys::PointCloud<molSys::Point<double>, double>& cloud, const Selection& selection);
IonReport ionFront(const molSys::PointCloud<molSys::Point<double>, double>& oxygen, const std::vector<IonSite>& ions);
bool iceLabel(molSys::atom_state_type label);
} // namespace water
Detailed Documentation¶
Water-oxygen selection for a mixed frame.
Neighbours, CHILL, CHILL+, rings and cages run on the oxygen atoms. Ions and hydrogens stay out of that graph. A requested type or molecule that is not in the frame is an error, as is a selection that keeps nothing. The messages are the strings the tests match.
Global Functions¶
molSys::PointCloud<molSys::Point<double>, double> keepHistoricalOxygen(const molSys::PointCloud<molSys::Point<double>, double>& cloud)
Historical dump guess: type 2 when any atom has it, otherwise type 1.
A miss leaves an empty cloud and keeps the box.
IonReport ionFront(const molSys::PointCloud<molSys::Point<double>, double>& oxygen, const std::vector<IonSite>& ions)
oxygen is the labeled water subset.
front is the nearest ice oxygen, in the box units, or -1 when no ion sits next to ice.