148 std::vector<std::complex<double>>
ylm;
194 bool closed =
true) {
199 const bool eclipsed =
233 const std::vector<std::vector<int>> &nList,
240 const std::vector<std::vector<int>> &nList,
245 const std::vector<int> &offsets,
const std::vector<int> &cols,
253 const std::vector<int> &offsets,
const std::vector<int> &cols,
254 bool keepBonds =
true);
262 const std::vector<int> &offsets,
const std::vector<int> &cols);
268 const std::vector<int> &offsets,
const std::vector<int> &cols);
275 std::vector<double>
q;
279 std::vector<std::vector<int>>
rows;
283 const std::vector<std::vector<int>> &nList,
const BondClassifier &rule,
284 BondOrder &order,
const std::vector<char> *which,
bool fresh =
true);
291 const std::vector<char> *which,
bool closed =
true);
301 MPI_Comm comm,
bool closed =
true);
321 const std::vector<std::vector<int>> &nList,
bool isSlice =
false,
322 int coordinationNumber = 4);
333 const std::vector<std::vector<int>> &nList,
bool isSlice =
false);
350 const std::vector<std::vector<int>> &nList, std::string path,
351 int firstFrame,
bool isSlice =
false,
352 std::string outputFileName =
"chill.txt");
360 const std::vector<std::vector<int>> &nList,
bool isSlice =
false,
361 int coordinationNumber = 4);
366 const std::vector<std::vector<int>> &nList,
bool isSlice,
367 int coordinationNumber,
bool closedBounds);
383 int typeI, std::vector<double> &q4, std::vector<double> &q6,
384 std::vector<double> &q4bar, std::vector<double> &q6bar);
402 const std::vector<std::vector<int>> &nList, std::string path,
403 int firstFrame,
bool isSlice =
false,
404 std::string outputFileName =
"chillPlus.txt");
409 const std::vector<std::vector<int>> &nList, std::string path,
410 int firstFrame,
bool isSlice, std::string outputFileName,
418 const std::vector<std::vector<int>> &nList,
bool isSlice =
false);
426 const std::vector<std::vector<int>> &nList,
bool isSlice,
434 const std::vector<int> &types);
440 const std::vector<std::vector<int>> &nList,
bool isSlice =
false);
448 std::vector<double> &q6);
452 std::string path,
int firstFrame,
bool isSlice =
false,
453 std::string outputFileName =
"superChill.txt");
459 const std::vector<std::vector<int>> &nList,
int iatom,
460 int num_staggrd,
int num_eclipsd,
bool chillPlus =
false);
464 const std::vector<std::vector<int>> &nList,
int jatom);
474 std::vector<double>
ql;
476 std::vector<double>
wl;
490 const std::vector<std::vector<int>> &nList,
int orderL);
501 double cutoff,
int orderL,
int typeI,
bool average,
bool invariants =
false);
519 int typeI, std::vector<double> &q4, std::vector<double> &q6);
535 double candidateCutoff,
int typeI,
int orderL);
558 const std::vector<std::vector<int>> &nList,
int orderL,
559 std::vector<double> &qlm,
const std::vector<char> *which);
563 const std::vector<std::vector<int>> &nList,
int orderL,
564 const std::vector<double> &qlm, std::vector<double> &ql,
565 std::vector<double> &qlBar,
const std::vector<char> *which);
572 int orderL, MPI_Comm comm);
592std::vector<std::complex<double>>
597 std::vector<std::complex<double>> &out);
599std::array<double, 2>
radialCoord(std::array<double, 3> cartCoord);
602std::vector<std::complex<double>>
609std::vector<std::complex<double>>
616std::vector<std::complex<double>>
620std::vector<std::complex<double>>
File for containing generic or common functions.
The main molecular system handler.
CHILL and CHILL+ structure classification.
void getCorrelPlus(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, bool isSlice=false, int coordinationNumber=4)
void getIceTypePlusNoPrint(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, bool isSlice=false)
bool chillPlusSymbolicPrefilter(molSys::PointCloud< molSys::Point< double >, double > &yCloud, double cutoff, int typeI)
bool q4q6ChillPlus(molSys::PointCloud< molSys::Point< double >, double > &yCloud, double cutoff, int typeI, std::vector< double > &q4, std::vector< double > &q6, std::vector< double > &q4bar, std::vector< double > &q6bar)
int printIceType(molSys::PointCloud< molSys::Point< double >, double > &yCloud, std::string path, int firstFrame, bool isSlice=false, std::string outputFileName="superChill.txt")
Prints out the iceType for a particular frame onto the terminal.
BondClassifier chillRule()
QlCutoffStages & lastQlCutoffStages()
SteinhardtQl steinhardtQlCutoff(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, double cutoff, int orderL, int typeI, bool average, bool invariants=false)
bool steinhardtQ4Q6Cutoff(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, double cutoff, int typeI, bool average, SteinhardtQl &q4, SteinhardtQl &q6)
void getCorrel(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, bool isSlice=false, int coordinationNumber=4)
Function for getting the bond order correlations (or in some treatments) according to the CHILL alg...
bool localCutoffQ4Q6(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, double cutoff, int typeI, std::vector< double > &q4, std::vector< double > &q6)
AnalysisPhases lastSteinhardtPhases()
void writeSteinhardtQlm(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, int orderL, std::vector< double > &qlm, const std::vector< char > *which)
q_lm for atoms which selects. Other atoms are left zero.
int chillFromCsr(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< int > &offsets, const std::vector< int > &cols)
std::vector< std::string > bondClassifierNames()
Names of every registered rule set.
void getIceTypeNoPrint(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, bool isSlice=false)
Function that classifies every particle's molSys::atom_state_type ice type, according to the CHILL al...
void classifyBonds(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, const BondClassifier &rule, bool isSlice=false)
int chillPlusFromCsr(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< int > &offsets, const std::vector< int > &cols, bool keepBonds=true)
void clearIceTypesExcept(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< int > &types)
void setSteinhardtAtomSplit(bool split)
void readSteinhardtQl(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, int orderL, const std::vector< double > &qlm, std::vector< double > &ql, std::vector< double > &qlBar, const std::vector< char > *which)
ql and qlBar for atoms which selects, reading q_lm of their neighbours.
void getIceType(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, std::string path, int firstFrame, bool isSlice=false, std::string outputFileName="chill.txt")
Function that classifies every particle's molSys::atom_state_type ice type, according to the CHILL al...
bool isInterfacial(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, int iatom, int num_staggrd, int num_eclipsd, bool chillPlus=false)
AnalysisPhases lastChillPhases()
std::vector< double > getq6(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, bool isSlice=false)
int chillPlusOvitoFromCsr(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< int > &offsets, const std::vector< int > &cols)
bool chillPlusPublishedCutoff(molSys::PointCloud< molSys::Point< double >, double > &yCloud, double cutoff, int typeI)
void reclassifyWater(molSys::PointCloud< molSys::Point< double >, double > &yCloud, std::vector< double > &q6)
void bondOrder(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, const BondClassifier &rule, BondOrder &order, const std::vector< char > *which, bool fresh=true)
int numStaggered(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, int jatom)
Finds the number of staggered bonds for a given atom of index jatom.
SteinhardtQl steinhardtQlMutual(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, int k, double candidateCutoff, int typeI, int orderL)
BondClassifier chillPlusRule()
BondClassifier bondClassifier(const std::string &name)
void classifyBondsCsr(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< int > &offsets, const std::vector< int > &cols, const BondClassifier &rule, bool isSlice=false)
CHILL/CHILL+ bonds from a CSR of cloud indices.
int steinhardtQlmWidth(int orderL)
Width of one atom's interleaved q_lm: real, imaginary, m = -l..l.
SteinhardtQl steinhardtQl(const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, int orderL)
void correlFromOrder(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const BondOrder &order, const BondClassifier &rule, bool isSlice, const std::vector< char > *which, bool closed=true)
ChillPlusResult chillPlus(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList)
void getIceTypePlus(molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, std::string path, int firstFrame, bool isSlice=false, std::string outputFileName="chillPlus.txt")
molSys::bond_type classifyBond(double cij, const BondClassifier &rule, bool closed=true)
void registerBondClassifier(const std::string &name, const BondClassifier &rule)
@ eclipsed
The bond is an eclipsed bond.
@ out_of_range
The bond cannot be classified as either staggered or eclipsed.
@ staggered
The bond is a staggered bond, according to the or value.
Functions used for spherical harmonics.
std::vector< std::complex< double > > lookupTableQ6Vec(std::array< double, 2 > angles)
Lookup table for Q6.
std::vector< std::complex< double > > lookupTableQ3Vec(std::array< double, 2 > angles)
Lookup table for Q3.
std::vector< std::complex< double > > lookupTableQ4Vec(std::array< double, 2 > angles)
Lookup table for Q4.
std::array< double, 2 > radialCoord(std::array< double, 3 > cartCoord)
void spheriHarmoInto(int orderL, std::array< double, 2 > radialCoord, std::vector< std::complex< double > > &out)
Fill out with Y_lm, m = -l .. +l. Reuses out capacity.
std::complex< double > lookupTableQ6(int m, std::array< double, 2 > angles)
Lookup table for Q6 (m=0 to m=12).
std::vector< std::complex< double > > spheriHarmo(int orderL, std::array< double, 2 > radialCoord)
std::complex< double > lookupTableQ8(int m, std::array< double, 2 > angles)
Lookup table for Q8 (m=0 to m=16).
std::complex< double > lookupTableQ3(int m, std::array< double, 2 > angles)
Lookup table for Q3 (m=0 to m=6).
std::vector< std::complex< double > > lookupTableQ8Vec(std::array< double, 2 > angles)
Lookup table for Q8.
std::complex< double > lookupTableQ4(int m, std::array< double, 2 > angles)
Lookup table for Q4 (m=0 to m=8).
Header file for neighbour list generation.
Rebuild, local kernel, halo exchange, and the write-back to the frame.
One rule set for classifying bond correlations .
double eclipsedMin
Inclusive staggered edge, c_ij <= staggeredMax.
int coordinationNumber
Inclusive upper edge of the eclipsed band.
double eclipsedMax
Inclusive lower edge of the eclipsed band.
std::vector< int > chosen
std::vector< int > nkeep
squared norm of q, with the m != 0 factor
std::vector< std::vector< int > > rows
keepMax > 0, local indices, -1 empty
std::vector< double > norm
atom-major, 7 channels
This is the local orientational bond order parameter , of length .
std::vector< YlmAtom > ptq
Per-particle Steinhardt order parameters of a single degree .
std::vector< double > wl
Averaged .
std::vector< double > qlBar
Local .
This contains a complex vector of length .
std::vector< std::complex< double > > ylm
This contains a collection of points; contains information for a particular frame.
This contains per-particle information.