C2x, or check2xsf as it was first known, was developed in the TCM Group in Cambridge. It reads and writes a selection of file formats which relate to DFT electronic structure codes. It is not simply a conversion utility, but it can also perform manipulations and some analysis. It can form supercells and find primitive cells. If linked with the excellent spglib symmetry finder, it provides access to functionality from that package. It can interpolate densities via a combination of trilinear and Fourier interpolation, integrate densities and calculate their dipole moments, analyse bands for inversion symmetry, and symmetry-expand eigenvalues for use with Fermi surface plotting.
Originally supporting just Castep, c2x now supports Abinit, Onetep, Quantum Espresso, Siesta and VASP as well. It thus can be considered to be a little like OpenBabel, but with an emphasis on different codes, and support for volumetric data.
One use of c2x is extracting volumetric data (charge density, colinear spin density, or charge density from a given band) for visualisation. It supports output formats compatible with XCrysDen, VESTA, VMD and Jmol amongst others, and can also produce 1D data in a format suitable for gnuplot. The ethene π bond above is from the 2016 version of XCrysDen.
Another use of c2x is to use one package's post-processing tools
with another's. It can, for instance, convert a
.check file into a
readable by VASP post-processors.
It can perform many cell manipulations, forming supercells or primitive cells, adding or removing vacuum, and rolling sheets into nanotubes. It can calculate electrostatic potentials from charge densities, and also calculate post hoc dipole correction energies for some geometries.
C2x can be downloaded from its downloads page, as source or MacOS or Linux binaries.
Version 2.34d released, 17th July 2020. Adds support for Vasp LOCPOT files, and can read charges from Vasp POTCAR files. Also adds elements with atomic numbers 104 to 118, and extends the arithmetic parser.
Version 2.34c released, 18th June 2020. Adds basic support for
.pdbx as a form of CIF file, will read and write Castep
.geom files, and various minor improvements.
Version 2.34b released, 9th April 2020. Previous versions failed to read Castep .bands files from parallel runs. Also adds support for Abinit 9.0, and tries to avoid re-ordering species when writing Vasp or Abinit input files.
Version 2.34a released, 27th March 2020. Adds ability to read Siesta's
.bands files, and has a bunch of miscellaneous bug fixes.
It should work better on MacOS, as it no longer assumes "%ms" is valid in
scanf format string.
Version 2.34 released, 9th March 2020. Adds ability to write
.bxsf files for plotting Fermi surfaces.
Also supports GCOEFF.txt, an ASCII wavefunction
format, and (some) extended XYZ cell formats, particularly that from ASE.
Version 2.32 released, 12th December 2019. Adds ability to create nanotubes and perform averaged radial plots on them. Improvements to Siesta support, a sign change in the reading of .cst_esp files, the addition of a CCP4 writer, arbitrary rescaling of grid data, and much else. See Change Log for fuller details. Also some webpages giving simple examples of creating isosurfaces with different software.
Version 2.30c released, 6th November 2019. Mostly minor bug fixes.
Version 2.30 released, 16th August 2019. Significantly more features: reads wavefunctions from Abinit, VASP and QE, and adds an option to add (or change) vacuum gaps in structures. See Change Log for further details.
If you find it useful in your published research, the traditional academic acknowledgement of a citation would be appreciated. C2x: a tool for visualisation and input preparation for Castep and other electronic structure codes, MJ Rutter, Computer Physics Communications, 225 174-179 (2018). Once such papers are noticed, they are added to this list.