shape_descriptors
Shape descriptor calculations for Crystal structures.
atom_group_shape_descriptors(crystal, atoms, l_max=5, radius=6.0)
Calculate the shape descriptors[1,2] for the given atomic group in this crystal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
crystal
|
Crystal instance |
required | |
atoms
|
Tuple
|
atoms to include in the as the 'inside' of the shape description. |
required |
l_max
|
int
|
maximum level of angular momenta to include in the spherical harmonic transform of the molecular shape function. |
5
|
radius
|
float
|
maximum distance (Angstroms) to include surroundings in the shape description |
6.0
|
Returns:
| Type | Description |
|---|---|
ndarray
|
shape description vector |
References:
[1] PR Spackman et al. Sci. Rep. 6, 22204 (2016)
https://dx.doi.org/10.1038/srep22204
[2] PR Spackman et al. Angew. Chem. 58 (47), 16780-16784 (2019)
https://dx.doi.org/10.1002/anie.201906602
Source code in chmpy/crystal/shape_descriptors.py
atomic_shape_descriptors(crystal, l_max=5, radius=6.0, return_coefficients=False, with_property=None)
Calculate the shape descriptors[1,2] for all symmetry unique atoms in this crystal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
crystal
|
Crystal instance |
required | |
l_max
|
int
|
maximum level of angular momenta to include in the spherical harmonic transform of the molecular shape function. |
5
|
radius
|
float
|
maximum distance (Angstroms) to include surroundings in the shape description |
6.0
|
with_property
|
str
|
name of the surface property to include in the shape description |
None
|
return_coefficients
|
bool
|
also return the spherical harmonic coefficients |
False
|
Returns:
| Type | Description |
|---|---|
ndarray
|
shape description vector |
References:
[1] PR Spackman et al. Sci. Rep. 6, 22204 (2016)
https://dx.doi.org/10.1038/srep22204
[2] PR Spackman et al. Angew. Chem. 58 (47), 16780-16784 (2019)
https://dx.doi.org/10.1002/anie.201906602
Source code in chmpy/crystal/shape_descriptors.py
functional_group_shape_descriptors(crystal, l_max=5, radius=6.0, kind='carboxylic_acid')
Calculate the shape descriptors [1,2] for the all atoms in
the functional group given for all symmetry unique molecules in this crystal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
crystal
|
Crystal instance |
required | |
l_max
|
int
|
maximum level of angular momenta to include in the spherical harmonic transform of the molecular shape function. (default: 5) |
5
|
radius
|
float
|
maximum distance (Angstroms) of neighbouring atoms to include in stockholder weight calculation (default: 5) |
6.0
|
kind
|
str
|
Identifier for the functional group type (default: 'carboxylic_acid') |
'carboxylic_acid'
|
Returns:
| Type | Description |
|---|---|
ndarray
|
shape description vector |
References:
[1] PR Spackman et al. Sci. Rep. 6, 22204 (2016)
https://dx.doi.org/10.1038/srep22204
[2] PR Spackman et al. Angew. Chem. 58 (47), 16780-16784 (2019)
https://dx.doi.org/10.1002/anie.201906602
Source code in chmpy/crystal/shape_descriptors.py
molecular_shape_descriptors(crystal, l_max=5, radius=6.0, with_property=None, return_coefficients=False)
Calculate the molecular shape descriptors[1,2] for all symmetry unique molecules in this crystal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
crystal
|
Crystal instance |
required | |
l_max
|
int
|
maximum level of angular momenta to include in the spherical harmonic transform of the molecular shape function. |
5
|
radius
|
float
|
maximum distance (Angstroms) to include surroundings in the shape description |
6.0
|
with_property
|
str
|
name of the surface property to include in the shape description |
None
|
return_coefficients
|
bool
|
also return the spherical harmonic coefficients |
False
|
Returns:
| Type | Description |
|---|---|
ndarray
|
shape description vector |
References:
[1] PR Spackman et al. Sci. Rep. 6, 22204 (2016)
https://dx.doi.org/10.1038/srep22204
[2] PR Spackman et al. Angew. Chem. 58 (47), 16780-16784 (2019)
https://dx.doi.org/10.1002/anie.201906602
Source code in chmpy/crystal/shape_descriptors.py
molecule_shape_descriptors(crystal, mol, l_max=5, radius=6.0, with_property=None)
Calculate the molecular shape descriptors [1,2] for
the provided molecule in the crystal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
crystal
|
Crystal instance |
required | |
mol
|
Molecule instance |
required | |
l_max
|
int
|
maximum level of angular momenta to include in the spherical harmonic transform of the molecular shape function. |
5
|
radius
|
float
|
maximum distance (Angstroms) to include surroundings in the shape description |
6.0
|
with_property
|
str
|
name of the surface property to include in the shape description |
None
|
Returns:
| Type | Description |
|---|---|
ndarray
|
shape description vector |
References:
[1] PR Spackman et al. Sci. Rep. 6, 22204 (2016)
https://dx.doi.org/10.1038/srep22204
[2] PR Spackman et al. Angew. Chem. 58 (47), 16780-16784 (2019)
https://dx.doi.org/10.1002/anie.201906602