Skip to content

Shortcut: BOPS

Module crystdistrib
Description Usage
Calculate Bond orientational order parameters for molecules. used in 0 tutorialsused in 0 eggs
output value type
the values of the bops order parameters vector

Details and examples

Calculate Bond orientational order parameters for molecules.

BOPS is a shortcut to calculate the Bond-orientational Order Parameters detailed that are described in the paper cited below. As arguments, BOPS takes a list of atoms (corresponding to molecules), a vector of quaternions, a cutoff distance, and two kernel files detailing the means, variances, and normalization factors of probability distributions. BOPS returns a vector of order parameters.

The DOPS kernel file has FIELDS height, mu, and sigma corresponding to the normalization factor, mean, and variance of the gaussian distributions used in the order parameters. The SET kerneltype is gaussian.

The BOPS kernel file has FIELDS height, kappa, mu_i, mu_j, and mu_k, which correspond to the normalization factor, reciprocal variance, and imaginary components of the mean quaternion frame of the fisher distribution used in the order parameters. The SET kerneltype is gaussian.

BOPS returns one order parameter per atom given, evaluated over each atom's neighbors within the cutoff given. The distribution defined by the kernel files, analogous to a radial distribution function, is defined over all possible unit vectors which could be drawn between two atoms. The order parameter is obtained by evaluating the distribution at each unit vector pointing to all neighbors within the cutoff, and summing them up.

This example file calculates the BOPS for a system of 3 molecules.

Click on the labels of the actions for more information on what each action computes
tested on2.11
#SETTINGS INPUTFILES=regtest/crystdistrib/rt-bops-shortcut/kernels.dat,regtest/crystdistrib/rt-bops-shortcut/kernels2.dat
quat: QUATERNIONCalculate unit quaternions for molecules. More details ATOMS1the three atom that we are using to calculate the quaternion=1,2,3 ATOMS2the three atom that we are using to calculate the quaternion=4,5,6 ATOMS3the three atom that we are using to calculate the quaternion=7,8,9
bops: BOPSCalculate Bond orientational order parameters for molecules. This action is a shortcut. More details ...
   SPECIESthe list of atoms for which the BOPS are being calculated and the atoms that can be in the environments=1,4,7 QUATERNIONSthe label of the action that computes the quaternions that should be used=quat CUTOFFcutoff for the distance matrix=100.0
   KERNELFILE_DOPSthe file containing the list of kernel parameters=
regtest/crystdistrib/rt-bops-shortcut/kernels.dat
Click here to see an extract from this file.
×

FILE: regtest/crystdistrib/rt-bops-shortcut/kernels.dat

#! FIELDS height mu sigma
#! SET kerneltype gaussian
2.26628554234 6.37235632777 0.17603354605920524374
2.26598891932 6.37243472055 0.17605658924421270294
2.83246817245 6.94118069019 0.14084616529226330342
2.23141032403 6.87945090447 0.178784814297  
2.26563347801 6.81645001966 0.17608420968
2.26829869206 6.37245683771 0.1758773136
2.26856314184 6.37237895273 0.175856811319
2.84313122015 6.94216988399 0.140317927493
2.21827805142 6.87753705648 0.17984322576
2.27474509536 6.81810643390 0.175378894635

KERNELFILE_BOPSthe second file containing the list of kernel parameters=
regtest/crystdistrib/rt-bops-shortcut/kernels2.dat
Click here to see an extract from this file.
×

FILE: regtest/crystdistrib/rt-bops-shortcut/kernels2.dat

#! FIELDS height kappa mu_i mu_j mu_k
#! SET kerneltype gaussian
 3.8829243099e-18  41.9894852862 -0.348283942052 0.524758480496 -0.776741162072    
 3.43814557322e-18 42.1141050811 0.348733460765 -0.524528707287 0.776694668821  
 0.00154170375415  6.51039194933 0.424981437646 -0.297987050518 -0.854748205836 
 0.00503593591682  5.07829278001 0.490875761357 -0.838880031696 -0.23520476044  
 0.000460252362407 7.91456317429 -0.664588066199 -0.747014059121 0.0171084114137
 1.98361770876e-18 42.6774018539 0.348941708009 -0.525224891263 -0.776130464554
 2.75571521921e-18 42.3407270276 -0.348703675624 0.525485712398 0.776060894951 
 0.001568955927    6.48968397136 0.424895911761 -0.296072398134 0.855455784499 
 0.0049759205175   5.09321471523 0.485757599732 -0.841908207588 0.23501090251  
 0.000463852264493 7.90564452226 -0.667481506462 -0.74446245095 -0.0156236249692






...

To calculate the BOPS between the orientation of the molecules in GROUPA and the bonds to the atoms in GROUPB you use an input like the one shown below:

Click on the labels of the actions for more information on what each action computes
tested on2.11
#SETTINGS INPUTFILES=regtest/crystdistrib/rt-bops-shortcut/kernels.dat,regtest/crystdistrib/rt-bops-shortcut/kernels2.dat
quat: QUATERNIONCalculate unit quaternions for molecules. More details ATOMS1the three atom that we are using to calculate the quaternion=1,2,3 ATOMS2the three atom that we are using to calculate the quaternion=4,5,6 ATOMS3the three atom that we are using to calculate the quaternion=7,8,9
bops: BOPSCalculate Bond orientational order parameters for molecules. This action is a shortcut. More details ...
   QUATERNIONSthe label of the action that computes the quaternions that should be used=quat CUTOFFcutoff for the distance matrix=100.0
   SPECIESAthe list of atoms for which BOPS are being calculated=1,4,7 SPECIESBthe list of atoms that can be in the environments of each of the atoms for which the BOPS are being calculated=10,11,12,13,14
   KERNELFILE_DOPSthe file containing the list of kernel parameters=
regtest/crystdistrib/rt-bops-shortcut/kernels.dat
Click here to see an extract from this file.
×

FILE: regtest/crystdistrib/rt-bops-shortcut/kernels.dat

#! FIELDS height mu sigma
#! SET kerneltype gaussian
2.26628554234 6.37235632777 0.17603354605920524374
2.26598891932 6.37243472055 0.17605658924421270294
2.83246817245 6.94118069019 0.14084616529226330342
2.23141032403 6.87945090447 0.178784814297  
2.26563347801 6.81645001966 0.17608420968
2.26829869206 6.37245683771 0.1758773136
2.26856314184 6.37237895273 0.175856811319
2.84313122015 6.94216988399 0.140317927493
2.21827805142 6.87753705648 0.17984322576
2.27474509536 6.81810643390 0.175378894635

KERNELFILE_BOPSthe second file containing the list of kernel parameters=
regtest/crystdistrib/rt-bops-shortcut/kernels2.dat
Click here to see an extract from this file.
×

FILE: regtest/crystdistrib/rt-bops-shortcut/kernels2.dat

#! FIELDS height kappa mu_i mu_j mu_k
#! SET kerneltype gaussian
 3.8829243099e-18  41.9894852862 -0.348283942052 0.524758480496 -0.776741162072    
 3.43814557322e-18 42.1141050811 0.348733460765 -0.524528707287 0.776694668821  
 0.00154170375415  6.51039194933 0.424981437646 -0.297987050518 -0.854748205836 
 0.00503593591682  5.07829278001 0.490875761357 -0.838880031696 -0.23520476044  
 0.000460252362407 7.91456317429 -0.664588066199 -0.747014059121 0.0171084114137
 1.98361770876e-18 42.6774018539 0.348941708009 -0.525224891263 -0.776130464554
 2.75571521921e-18 42.3407270276 -0.348703675624 0.525485712398 0.776060894951 
 0.001568955927    6.48968397136 0.424895911761 -0.296072398134 0.855455784499 
 0.0049759205175   5.09321471523 0.485757599732 -0.841908207588 0.23501090251  
 0.000463852264493 7.90564452226 -0.667481506462 -0.74446245095 -0.0156236249692






...

Input

The atoms that serve as the input for this action are specified using one or more of the keywords in the following table.

Keyword Type Description
SPECIES atoms the list of atoms for which the BOPS are being calculated and the atoms that can be in the environments
SPECIESA atoms the list of atoms for which BOPS are being calculated
SPECIESB atoms the list of atoms that can be in the environments of each of the atoms for which the BOPS are being calculated

Full list of keywords

The following table describes the keywords and options that can be used with this action

Keyword Type Default Description
SPECIES input none the list of atoms for which the BOPS are being calculated and the atoms that can be in the environments
SPECIESA input none the list of atoms for which BOPS are being calculated
SPECIESB input none the list of atoms that can be in the environments of each of the atoms for which the BOPS are being calculated
QUATERNIONS compulsory none the label of the action that computes the quaternions that should be used
KERNELFILE_DOPS compulsory none the file containing the list of kernel parameters
KERNELFILE_BOPS compulsory none the second file containing the list of kernel parameters
CUTOFF compulsory none cutoff for the distance matrix

References

More information about how this action can be used is available in the following articles: