Skip to content

Commit

Permalink
Merge pull request #5 from jkshenton/develop
Browse files Browse the repository at this point in the history
bs to spectral fix
  • Loading branch information
jkshenton authored Sep 16, 2024
2 parents 7b157a2 + cf3f3b8 commit 497d205
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/workshop/02_bands_dos.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ task : bandstructure
The .cell file requires a path through the Brillouin Zone along which you want the bandstructure to be plotted:

```
%BLOCK BS_KPOINT_PATH
%BLOCK spectral_kpoint_path
0.0000 0.00000 0.00000 ! G
0.0000 0.00000 0.50000 ! A
Expand All @@ -56,7 +56,7 @@ The .cell file requires a path through the Brillouin Zone along which you want t
0.0000 0.50000 0.00000 ! M
0.0000 0.50000 0.50000 ! L
-0.3333 0.66667 0.50000 ! H
%ENDBLOCK BS_KPOINT_PATH
%ENDBLOCK spectral_kpoint_path
```
Run CASTEP using:

Expand All @@ -66,7 +66,7 @@ $ castep-mpi mpirun -np 16 castep.mpi graphite
Once the CASTEP calculation has finished a `graphite.bands` file will be present in the directory. A band structure plot can be viewed by using the dispersion.pl tool.

```
$ castep-serial dispersion.pl -xg -bs -symmetry hexagonal graphite.bands
$ castep-serial dispersion.pl -np -xg -bs -symmetry hexagonal graphite.bands | xmgrace -
```
The `-xg` option tells dispersion.pl that you are using grace to plot the band structure, the `-bs` option tells the script that you want to plot using CASTEP output files, the `-symmetry hexagonal` option labels the high symmetry points on the bands structure plot.

Expand Down Expand Up @@ -105,7 +105,7 @@ Run the iron computation using CASTEP and plot the band structure for iron using

## Iron's Density of States

To plot the density of states of iron, we need to run CASTEP again, instead of computing the band structure along a high symmetry line, we compute it on a grid. To your Fe.cell file, remove the bs_kpoint_path block and replace it with:
To plot the density of states of iron, we need to run CASTEP again, instead of computing the band structure along a high symmetry line, we compute it on a grid. To your Fe.cell file, remove the spectral_kpoint_path block and replace it with:

```
BS_KPOINT_MP_GRID 12 12 12
Expand Down
4 changes: 2 additions & 2 deletions docs/workshop/07_xc.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ Amend this to say:
5. We will also need to set up an appropriate k-point path for the band structure calculation. We will use the following path:
```
%block bs_kpoint_path
%block spectral_kpoint_path
0.5 0.5 0.5
0.0 0.0 0.0
0.5 0.0 0.5
0.625 0.25 0.625
0.0 0.0 0.0
%endblock bs_kpoint_path
%endblock spectral_kpoint_path
```
Add this block to the `.cell` file.
Expand Down
Binary file modified docs/workshop/bandstructure.tgz
Binary file not shown.

0 comments on commit 497d205

Please sign in to comment.