seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
bop.hpp File Reference

File for the bond order parameter analysis. More...

#include <array>
#include <cmath>
#include <complex>
#include <string>
#include <vector>
#include <generic.hpp>
#include <mol_sys.hpp>
#include <neighbours.hpp>
#include <seams_output.hpp>

Go to the source code of this file.

Classes

struct  chill::YlmAtom
 This contains a complex vector of length \(2l+1\). More...
struct  chill::QlmAtom
 This is the local orientational bond order parameter \(q_{lm}\), of length \(2l+1\). More...
struct  chill::BondClassifier
 One rule set for classifying bond correlations \(c_{ij}\). More...
struct  chill::BondOrder
struct  chill::SteinhardtQl
 Per-particle Steinhardt order parameters of a single degree \(l\). More...
struct  chill::QlCutoffStages
struct  chill::AnalysisPhases
 Rebuild, local kernel, halo exchange, and the write-back to the frame. More...

Namespaces

namespace  chill
 CHILL and CHILL+ structure classification.
namespace  sph
 Functions used for spherical harmonics.

Functions

molSys::bond_type chill::classifyBond (double cij, const BondClassifier &rule, bool closed=true)
BondClassifier chill::chillRule ()
BondClassifier chill::chillPlusRule ()
BondClassifier chill::bondClassifier (const std::string &name)
void chill::registerBondClassifier (const std::string &name, const BondClassifier &rule)
std::vector< std::string > chill::bondClassifierNames ()
 Names of every registered rule set.
void chill::classifyBonds (molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, const BondClassifier &rule, bool isSlice=false)
void chill::classifyBonds (molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, const BondClassifier &rule, bool isSlice, bool closed)
void chill::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 chill::chillPlusFromCsr (molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< int > &offsets, const std::vector< int > &cols, bool keepBonds=true)
int chill::chillPlusOvitoFromCsr (molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< int > &offsets, const std::vector< int > &cols)
int chill::chillFromCsr (molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< int > &offsets, const std::vector< int > &cols)
void chill::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)
void chill::correlFromOrder (molSys::PointCloud< molSys::Point< double >, double > &yCloud, const BondOrder &order, const BondClassifier &rule, bool isSlice, const std::vector< char > *which, bool closed=true)
void chill::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 \(c_{ij}\) (or \(a_{ij}\) in some treatments) according to the CHILL algorithm.
void chill::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 algorithm.
void chill::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 algorithm.
void chill::getCorrelPlus (molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, bool isSlice=false, int coordinationNumber=4)
void chill::getCorrelPlus (molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, bool isSlice, int coordinationNumber, bool closedBounds)
 Same classification. closedBounds false uses the open OVITO edges.
bool chill::chillPlusPublishedCutoff (molSys::PointCloud< molSys::Point< double >, double > &yCloud, double cutoff, int typeI)
bool chill::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)
bool chill::chillPlusSymbolicPrefilter (molSys::PointCloud< molSys::Point< double >, double > &yCloud, double cutoff, int typeI)
void chill::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")
void chill::getIceTypePlus (molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, std::string path, int firstFrame, bool isSlice, std::string outputFileName, bool neighbourTest)
 neighbourTest false is the OVITO interfacial rule.
void chill::getIceTypePlusNoPrint (molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, bool isSlice=false)
void chill::getIceTypePlusNoPrint (molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, bool isSlice, bool neighbourTest)
void chill::clearIceTypesExcept (molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< int > &types)
std::vector< double > chill::getq6 (molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, bool isSlice=false)
void chill::reclassifyWater (molSys::PointCloud< molSys::Point< double >, double > &yCloud, std::vector< double > &q6)
int chill::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.
bool chill::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)
int chill::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 chill::steinhardtQl (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, const std::vector< std::vector< int > > &nList, int orderL)
SteinhardtQl chill::steinhardtQlCutoff (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, double cutoff, int orderL, int typeI, bool average, bool invariants=false)
QlCutoffStages & chill::lastQlCutoffStages ()
bool chill::localCutoffQ4Q6 (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, double cutoff, int typeI, std::vector< double > &q4, std::vector< double > &q6)
bool chill::steinhardtQ4Q6Cutoff (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, double cutoff, int typeI, bool average, SteinhardtQl &q4, SteinhardtQl &q6)
SteinhardtQl chill::steinhardtQlMutual (const molSys::PointCloud< molSys::Point< double >, double > &yCloud, int k, double candidateCutoff, int typeI, int orderL)
void chill::setSteinhardtAtomSplit (bool split)
AnalysisPhases chill::lastChillPhases ()
AnalysisPhases chill::lastSteinhardtPhases ()
int chill::steinhardtQlmWidth (int orderL)
 Width of one atom's interleaved q_lm: real, imaginary, m = -l..l.
void chill::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.
void chill::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.
std::vector< std::complex< double > > sph::spheriHarmo (int orderL, std::array< double, 2 > radialCoord)
void sph::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::array< double, 2 > sph::radialCoord (std::array< double, 3 > cartCoord)
std::vector< std::complex< double > > sph::lookupTableQ3Vec (std::array< double, 2 > angles)
 Lookup table for Q3.
std::complex< double > sph::lookupTableQ3 (int m, std::array< double, 2 > angles)
 Lookup table for Q3 (m=0 to m=6).
std::vector< std::complex< double > > sph::lookupTableQ4Vec (std::array< double, 2 > angles)
 Lookup table for Q4.
std::complex< double > sph::lookupTableQ4 (int m, std::array< double, 2 > angles)
 Lookup table for Q4 (m=0 to m=8).
std::vector< std::complex< double > > sph::lookupTableQ6Vec (std::array< double, 2 > angles)
 Lookup table for Q6.
std::vector< std::complex< double > > sph::lookupTableQ8Vec (std::array< double, 2 > angles)
 Lookup table for Q8.
std::complex< double > sph::lookupTableQ8 (int m, std::array< double, 2 > angles)
 Lookup table for Q8 (m=0 to m=16).
std::complex< double > sph::lookupTableQ6 (int m, std::array< double, 2 > angles)
 Lookup table for Q6 (m=0 to m=12).

Detailed Description

File for the bond order parameter analysis.

Definition in file bop.hpp.