CRYSTALpytools: A Python infrastructure for the Crystal code

CRYSTALpytools is an open source Python project available on GitHub that implements a user-friendly interface to the Crystal code for quantum-mechanical condensed matter simulations. CRYSTALpytools provides functionalities to: i) write and read Crystal input and output files for a range of calculati...

Full description

Saved in:
Bibliographic Details
Published in:Computer physics communications Vol. 292; p. 108853
Main Authors: Camino, Bruno, Zhou, Huanyu, Ascrizzi, Eleonora, Boccuni, Alberto, Bodo, Filippo, Cossard, Alessandro, Mitoli, Davide, Ferrari, Anna Maria, Erba, Alessandro, Harrison, Nicholas M.
Format: Journal Article
Language:English
Published: Elsevier B.V 01.11.2023
Subjects:
ISSN:0010-4655, 1879-2944
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:CRYSTALpytools is an open source Python project available on GitHub that implements a user-friendly interface to the Crystal code for quantum-mechanical condensed matter simulations. CRYSTALpytools provides functionalities to: i) write and read Crystal input and output files for a range of calculations (single-point, electronic structure, geometry optimization, harmonic and quasi-harmonic lattice dynamics, elastic tensor evaluation, topological analysis of the electron density, electron transport, and others); ii) extract relevant information; iii) create workflows; iv) post-process computed quantities, and v) plot results in a variety of styles for rapid and precise visual analysis. Furthermore, CRYSTALpytools allows the user to translate Crystal objects (the central data structure of the project) to and from the Structure and Atoms objects of the pymatgen and ASE libraries, respectively. These tools can be used to create, manipulate and visualise complicated structures and write them efficiently to Crystal input files. Jupyter Notebooks have also been developed for the less Python savvy users to guide them in the use of CRYSTALpytools through a user-friendly graphical interface with predefined workflows to complete different specific tasks. Program Title: CRYSTALpytools CPC Library link to program files:https://doi.org/10.17632/p2bp3fsk86.1 Developer's repository link:https://github.com/crystal-code-tools/CRYSTALpytools Licensing provisions: MIT Programming language: Python and Jupyter Notebook Nature of problem: The Crystal code [1,2] is a powerful tool for the calculation of materials properties. It stands out in the condensed matter computational landscape because of the use of local basis sets, heavy parallelisation, efficient implementation of non-local Fock exchange, and extensive use of point and space symmetry. However, it currently lacks an easily programmable interface to access its input/output structure needed to be able to use Crystal calculations within computational materials science workflows. Historically, the use of Crystal in such workflows has been achieved through bespoke scripting implemented in a variety of languages which has hindered code reuse and sharing. Solution method: The CRYSTALpytools project will enable the automation of Crystal calculations in a modular code that can be co-developed by a wide community of users worldwide. It achieves this by transforming standardised input and output files into python objects and providing a suite of functionality to manipulate them. The core implementation is based on a set of data structures denoted the Crystal_objects. CRYSTALpytools, in its current implementation, contains a large variety of functions for input/output manipulation, vibrational and thermodynamic analysis, and visualisation. Additional comments including restrictions and unusual features: The exploitation of point group and space group symmetry is one of the strengths of the Crystal code, therefore, all the geometry modification functions have been developed to optimise the use of symmetry. When a structure is downloaded from a database or is modified by external code, such as pymatgen [3] or ASE [4], a symmetry analysis is performed before transforming the structure to be an optimised Crystal_object. All such objects can be directly transformed to standard structures periodic in 0, 1, 2 or 3 dimensions used by Crystal (ie: .gui or .f34 files). [1]Dovesi Roberto, et al., Quantum-mechanical condensed matter simulations with CRYSTAL, WIREs Comput. Mol. Sci. 8(4) (1 July 2018) e1360.[2]Erba Alessandro, et al., CRYSTAL23: A Program for Computational Solid State Physics and Chemistry, J. Chem. Theory Comput., 2022.[3]Shyue Ping Ong, et al., Python Materials Genomics (pymatgen): A Robust, Open-Source Python Library for Materials Analysis, Computational Materials Science 68 (2013) 314-319.[4]Ask Hjorth Larsen, et al., The atomic simulation environment—a Python library for working with atoms, J. Phys.: Condens. Matter, 29 (7 June 2017) 273002.
ISSN:0010-4655
1879-2944
DOI:10.1016/j.cpc.2023.108853