OctaDist icon indicating copy to clipboard operation
OctaDist copied to clipboard

ASE integration

Open blokhin opened this issue 4 years ago • 2 comments

Dear colleagues, thanks for the nice tool! Are there any plans to integrate with the atomic simulation environment Python framework which is very widely used? The integration seems to be relatively straightforward.

blokhin avatar Dec 07 '21 14:12 blokhin

Thanks for the suggestion. We will have a look at it.

rangsimanketkaew avatar Feb 02 '22 10:02 rangsimanketkaew

This is the typical ASE usage:

from ase.spacegroup import crystal

crystal_obj = crystal(
    ('Sr', 'Ti', 'O', 'O'),
    basis=[(0, 0.5, 0.25), (0, 0, 0), (0, 0, 0.25), (0.255, 0.755, 0)],
    spacegroup=140, cellpar=[5.511, 5.511, 7.796, 90, 90, 90],
    primitive_cell=True
)

# then apply some external algo for octahedral distortion extraction:
<...>
        self.assertEqual(
            crystal_obj.apps['perovskite_tilting']['data'],
            1.15
        )

blokhin avatar Feb 02 '22 12:02 blokhin