Get shape from box#

Inferring the unit cell shape directly from a 3x3 box matrix.

The function molsysmt.pbc.get_shape_from_box() determines the space-filling geometry of a periodic boundary condition box matrix.

Added in version 1.0.0.

Basic usage#

Let’s identify the box shape from a periodic box matrix:

import molsysmt as msm
box_dod = msm.pbc.get_box_with_shape(shape='rhombic dodecahedral', length='3.0 nm')
shape_dod = msm.pbc.get_shape_from_box(box_dod)
print('Inferred box shape:', shape_dod)
Inferred box shape: rhombic dodecahedral