CASTEP Band Structure

Dear all,

I would like to understand how CASTEP in Materials Studio converts the raw band structure data from the output file foo.bands into the format used for plotting the band structure, which can be exported as a CSV file. I am not looking for the script used in this conversion or the plotting itself; rather, I want to understand how to manually perform this conversion.

Specifically, I am interested in the step-by-step calculations involved, so that I can verify the first few data points myself and gain a better understanding of how CASTEP in BIOVIA Materials Studio works.

For reference, I am attaching the two data files (.bands & csv) that I am trying to understand: how to get to the csv file from the bands file. They contain a low-resolution band structure for silicon, chosen deliberately to limit the number of data points for easier handling.

 

Answers 3
CM
CM 2025-07-07

How was the .csv file generated?
Pasting the bandstructure plot into a study table or Excel spread sheet and then exporting it as .csv?

In the .bands file has the points in the plot per k-point. The file format is described in the CASTEP file formats - BANDS section of the Materials Studio help.
In the .csv file the points are sorted by band. For the bandstructure plot the points are converted from au to eV and shifted by the so that the Valance Band Maximum (VBM) is at 0.0 eV . In principle the Fermi energy is subtracted from the energy values in the .bands file

I hope that I do not oversee something and the colleagues in R&D correct me when I am wrong.I am good in mixing up signs in the area.....

CM
CM 2025-07-08

Could you please zip the complete folder with the run(s) to which you refer and add the resulting zip file to the post.
Please make sure that all documents in Materials Studio are closed when generating the zip file.

VM
VM 2025-07-30

Hi, you need one more file from the Materials Studio folder to convert .bands to a chart - the file is seed.kptaux. This file contains a mapping between points in the bands file and high symmetry points in the Brillouin zone (and it has labels of those points, too). The path may contain multiple unconnected segments, their start/end points have numbers as well as letters, like X1 or R2. Another thing to lok out for - the path often goes through the same point more than once (possibly it's a symmetry image). CASTEP calculates its eignestates only once, and kptaux file tells the plotting routine which point of the bands file to use. Hope this helps.