- Cell Manipulation
- Code Support
C2x, or check2xsf as it was first known, 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, it can integrate densities and calculate their dipole moments.
Originally supporting just Castep, c2x now supports Abinit, Onetep, 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. List of supported formats.
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 a recent (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.
- Lines and Points (with gnuplot)
- Jmol and Isosurfaces
- Cell Manipulation and Transformation
Version 2 of c2x can be downloaded from this downloads page, as source or MacOS or Linux binaries.
Version 2.14 released, 27th March 2018.
Version 2.11 released, 2nd February 2018.
Source code of 2.05b made public, 12th December 2017, thus keeping a promise that it would be released in 2017.
Is entirely voluntary, for check2xsf is distributed under the GPL. However, if you wish to drop the author an email saying that you are using it, he can add you to an email list to which new versions and bug fixes are announced, and he will be able to justify spending more time on this software. You really have nothing to lose! mjr19 @cam.ac.uk.
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, 225C 152-157 (2018).