seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
nucleation_pathway.hpp
Go to the documentation of this file.
1//-----------------------------------------------------------------------------------
2// d-SEAMS - Deferred Structural Elucidation Analysis for Molecular Simulations
3//
4// Copyright (c) d-SEAMS developers
5//
6// This program is free software: you can redistribute it and/or modify
7// it under the terms of the MIT License as published by
8// the Open Source Initiative.
9//
10// A copy of the MIT License is included in the LICENSE file of this repository.
11// You should have received a copy of the MIT License along with this program.
12// If not, see <https://opensource.org/licenses/MIT>.
13//-----------------------------------------------------------------------------------
14
15#ifndef SEAMS_NUCLEATION_PATHWAY_HPP_
16#define SEAMS_NUCLEATION_PATHWAY_HPP_
17
18#include <mol_sys.hpp>
19
20#include <vector>
21
42
43namespace nucleation {
44
46inline constexpr double kCutoffA = 3.5;
47
49inline constexpr int kRingDepth = 7;
50
54inline constexpr double kQ6BarIceCut = 0.36;
55
64inline constexpr double kQ6SolidCutoffA = 3.2;
65inline constexpr double kQ6SolidCut = 0.5;
66
68 int frame = 0;
69 long long timestep = 0;
70 int nop = 0;
72 long long ringCount[8] = {};
73 int chillCubic = 0;
74 int chillHex = 0;
75 int chillInter = 0;
76 int chillClath = 0;
78 int chillWater = 0;
79 int ovitoCubic = 0;
80 int ovitoHex = 0;
81 int ovitoInter = 0;
82 int ovitoClath = 0;
84 int ovitoWater = 0;
85 int symCubic = 0;
86 int symHex = 0;
87 double q6barMean = 0;
88 double q6barP50 = 0;
89 int q6barIce = 0;
93 int nChillCore = 0;
94 int cChillCore = 0;
95 int hChillCore = 0;
96 int nChillExt = 0;
97 int cChillExt = 0;
98 int hChillExt = 0;
99 int nOvitoCore = 0;
100 int cOvitoCore = 0;
101 int hOvitoCore = 0;
102 int nOvitoExt = 0;
103 int cOvitoExt = 0;
104 int hOvitoExt = 0;
105 int nQ6 = 0;
106 int cQ6 = 0;
107 int hQ6 = 0;
108 int nSym = 0;
109 int cSym = 0;
110 int hSym = 0;
113 int nQ6Solid = 0;
114 int cQ6Solid = 0;
115 int hQ6Solid = 0;
116};
117
121[[nodiscard]] std::vector<double>
123 const std::vector<int> &offsets, const std::vector<int> &cols);
124
128[[nodiscard]] FrameRecord
130 double cutoff, int ringDepth, int typeI, double q6Cut, int frame);
131
133[[nodiscard]] double stackFraction(int cubic, int hexagonal);
134
137struct Ascent {
138 int index = 0;
139 int maxIndex = 0;
140 double baseline = 0;
141 double maximum = 0;
142 bool climbed = false;
143};
144
145[[nodiscard]] Ascent finalAscent(const std::vector<double> &series);
146
151struct GrowBasin {
152 bool occupied = false;
153 double barrier = 0;
154 int index = -1;
155};
156
157[[nodiscard]] GrowBasin growBasin(const std::vector<double> &series);
158
164
170
171[[nodiscard]] CommittorCall committorOf(const std::vector<double> &series, int molecules);
172
177struct HalfRise {
178 bool ok = false;
179 int index = -1;
180 double start = 0;
181 double level = 0;
182 double maximum = 0;
183};
184
185[[nodiscard]] HalfRise halfRise(const std::vector<double> &series);
186
189struct Lead {
190 bool ok = false;
192 int halfFrames = 0;
193 int corrLag = 0;
194 double corr = 0;
195};
196
199[[nodiscard]] Lead ringLead(const std::vector<double> &ringFraction,
200 const std::vector<double> &iceFraction);
201
202struct Shift {
203 int dSize = 0;
204 int dFrame = 0;
205};
206
209[[nodiscard]] Shift definitionShift(int sizeA, int frameA, int sizeB, int frameB);
210
211} // namespace nucleation
212
213#endif
The main molecular system handler.
std::vector< double > q6DotScore(const molSys::PointCloud< molSys::Point< double >, double > &cloud, const std::vector< int > &offsets, const std::vector< int > &cols)
Lead ringLead(const std::vector< double > &ringFraction, const std::vector< double > &iceFraction)
Ascent finalAscent(const std::vector< double > &series)
constexpr double kCutoffA
Published CHILL+ cutoff. Not a fitted parameter.
double stackFraction(int cubic, int hexagonal)
Cubic / (cubic + hexagonal). Quiet NaN when the denominator is 0.
Shift definitionShift(int sizeA, int frameA, int sizeB, int frameB)
FrameRecord analyzeFrame(molSys::PointCloud< molSys::Point< double >, double > &cloud, double cutoff, int ringDepth, int typeI, double q6Cut, int frame)
constexpr int kRingDepth
Primitive rings through this size. Depth 7 is the adjacency-row search.
CommittorCall committorOf(const std::vector< double > &series, int molecules)
HalfRise halfRise(const std::vector< double > &series)
constexpr double kQ6SolidCutoffA
GrowBasin growBasin(const std::vector< double > &series)
constexpr double kQ6BarIceCut
constexpr double kQ6SolidCut
This contains a collection of points; contains information for a particular frame.
Definition mol_sys.hpp:173
This contains per-particle information.
Definition mol_sys.hpp:152
long long ringCount[8]
Primitive rings of each size. Index is the ring size. 0 and 1 stay 0.