\(\newcommand{\AA}{\text{Å}}\)
CRYSTALClear#
A Python framework for the CRYSTAL quantum-chemistry code: it reads what a calculation writes and plots the properties it returns.
pip install CRYSTALClear
A quick look#
Read an output, ask it for what you need, and plot it. The IR spectrum of a frequency calculation, as the vibrational spectra notebook draws it:
from CRYSTALClear.crystal_io import Crystal_output
import CRYSTALClear.plot as CCplt
CO = Crystal_output("spectra/thiourea_pbed3_Ahlrichs-pVTZ_freqcalc.out")
CO.get_IR()
CCplt.plot_cry_spec(CO.IR_HO_0K)
Every plotting function returns matplotlib objects, to be restyled, combined or saved like any other figure.
Examples#
Each notebook works through one kind of property on a real calculation.
Electronic structure
Band structures and densities of states, side by side or compared across functionals.
Equation of state
Energy against volume for two phases, and the pressure at which one gives way to the other.
Elastic properties
Young and shear moduli, linear compressibility and Poisson ratio of coesite, in every direction.
Transport properties
Seebeck coefficient, conductivity, power factor and ZT across temperatures.
Vibrational spectra
IR and Raman spectra of a frequency calculation, with Gaussian or Lorentzian broadening.
More about the project, where it comes from and what it covers, is in the introduction. If CRYSTALClear helps your work, here is how to cite it.