\(\newcommand{\AA}{\text{Å}}\)

Introduction#

CRYSTALClear turns what a CRYSTAL calculation writes into numbers you can use and figures you can publish. Point it at an output and ask: the geometry, the energy, the band gap, the elastic tensor, the spectrum. Hand the answer to a plotting function and you have a matplotlib figure.

How it fits together#

CRYSTAL writes .out outputs, and the .DAT and .f25 files of a PROPERTIES run
crystal_io reads Crystal_output, Properties_output, External_unit
plot draws one function per kind of plot: plot_electron_band, plot_cry_ela, plot_cry_spec…
you get matplotlib figures and axes, to restyle, combine or save

Usage goes through the three reading classes, and the example notebooks through each kind of property.

What it covers#

Electronic structure

Band structures and densities of states, alone or side by side, projected or total; charge density maps and their differences; X-ray diffraction patterns.

plot_electron_banddos plot_cry_contour plot_cry_xrd

Lattice dynamics

Phonon bands and densities of states; IR and Raman spectra, harmonic and anharmonic; VCI levels, cuts through the potential energy surface, anharmonic scans.

plot_phonon_banddos plot_cry_spec plot_cry_vci plot_cry_pes_1D

Elastic properties

Young and shear moduli, linear compressibility and Poisson ratio in every direction, as surfaces or as sections through a plane.

plot_cry_young plot_cry_comp plot_cry_ela_2D

Equations of state

Energy against volume, Birch–Murnaghan fits, and the enthalpy difference that marks a transition between phases.

get_EOS plot_cry_EOS

Topology of the density

TOPOND results: maps of the density and its Laplacian, profiles along a line, magnetisation and spin-current vector fields.

read_topond_tlap plot_cry_lapl_profile plot_vecfield2D_m

Transport

Seebeck coefficient, electrical conductivity, power factor and ZT, against chemical potential or carrier concentration.

plot_cry_seebeck_potential plot_cry_powerfactor_carrier plot_cry_zt

Everything else in an output

Geometry and symmetry, lattice and reciprocal lattice, energies and convergence, band gap and Fermi energy, Mulliken charges, forces, the dielectric tensor: each a single method of Crystal_output away.

get_geometry get_band_gap get_mulliken_charges get_dielectric_tensor

Where it comes from#

CRYSTALClear started as a fork of CRYSTALpytools, and builds on the work done there: its functionality has been expanded, its interface improved and its documentation made more detailed. It is also what CRYSTALLine, the desktop program for CRYSTAL structures, reads files and draws plots with.

It grows with the people who use it. Bug reports, ideas and pull requests are welcome on GitHub.