# Hybrid band structure calculation with Seekpath in AiiDA-VASP

**URL:** <https://aiida.discourse.group/t/hybrid-band-structure-calculation-with-seekpath-in-aiida-vasp/341>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 17, 2024, 2:02pm UTC](https://aiida.discourse.group/t/hybrid-band-structure-calculation-with-seekpath-in-aiida-vasp/341 "2024-03-17T14:02:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DoriniTT](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@DoriniTT](https://aiida.discourse.group/u/DoriniTT)\
**Post date:** [March 17, 2024, 2:02pm UTC](https://aiida.discourse.group/t/hybrid-band-structure-calculation-with-seekpath-in-aiida-vasp/341/1 "2024-03-17T14:02:57Z")

</div>

Hello everyone,

Recently, I’ve been trying to do hybrid band structure calculations with AiiDA-VASP and Seekpath. I’m curious about the correct procedure for conducting these calculations with AiiDA.

According to the VASP wiki, the initial step involves performing a normal SCF calculation to attain the converged wavefunctions of the structure and the explicit list of irreducible **k** points from the regular **k** mesh. The latter can be transferred from the [IBZKPT] file of a previous run to the new [KPOINTS] file. Subsequently, you concatenate to the KPOINTS file the **k** points along a high-symmetry path using the explicit list, which includes zero-weighted **k** points.

I’m wondering if there’s an automatic way to do this with SeekPath or another method inside AiiDA. Otherwise, I think I might need to manipulate files in the submission script using **builder.metadata.options.prepend\_text** to modify the KPOINTS just before submitting the VASP binary.

Thanks in advance!  
Kind regards,  
Thiago

---

<div class="post-metadata">

**Author:** ![mbercx](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/mbercx/32/345_2.png) [@mbercx](https://aiida.discourse.group/u/mbercx)\
**Post date:** [April 19, 2024, 9:43pm UTC](https://aiida.discourse.group/t/hybrid-band-structure-calculation-with-seekpath-in-aiida-vasp/341/2 "2024-04-19T21:43:28Z")

</div>

Hi @DoriniTT👋

Sorry for the terribly slow response. It seems the `aiida-vasp` team hasn’t made their way to the Discourse yet. I’ve used VASP a little in the past but that was before I used AiiDA.

To me, this seems like a feature request, where the `VaspCalculation` might need to be updated. Did you try opening an issue on their Github?

> **[Issues · aiida-vasp/aiida-vasp](https://github.com/aiida-vasp/aiida-vasp/issues)**
>
> A plugin to AiiDA for running simulations with VASP - Issues · aiida-vasp/aiida-vasp

Maybe they already have a solution for running hybrid band structures with VASP.

---

<div class="post-metadata">

**Author:** ![zhubonan](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/zhubonan/32/133_2.png) [@zhubonan](https://aiida.discourse.group/u/zhubonan)\
**Post date:** [April 22, 2024, 6:15am UTC](https://aiida.discourse.group/t/hybrid-band-structure-calculation-with-seekpath-in-aiida-vasp/341/3 "2024-04-22T06:15:42Z")

</div>

Hi @DoriniTT I have implemented this in a custom version of the band structure workchain to do exactly this. This is a slightly different stack of workflow code (mostly in terms of how input nodes are configured). But it uses the same `VaspCalculation` from the `aiida-vasp`. The plan is to merge new workflows into `aiida-vasp` at some point. You can install the addon package and the workflows will be available via the entry points `vaspu.xxx`.

Note that you will still need to obtain the IBZKPT somewhere - this can be from an existing calculation (in AiiDA’s database) or if you are forming a relaxation step inside the workchain, the last singlepoint calculation can be used automatically, or you can manually input a `KpointData`. In any caes, you won’t need to manually edit the files.

Note that the workflow can split the path into mutiple segments and join them up in the end, in case of compute intensive systems.

> <https://github.com/SMTG-Bham/aiida-user-addons/blob/e1765bfdfe68ee32b4839e41bae008d7b7b6c571/aiida_user_addons/vworkflows/new_bands.py#L638C1-L638C52>

---

<div class="post-metadata">

**Author:** ![DoriniTT](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@DoriniTT](https://aiida.discourse.group/u/DoriniTT)\
**Post date:** [April 26, 2024, 5:36pm UTC](https://aiida.discourse.group/t/hybrid-band-structure-calculation-with-seekpath-in-aiida-vasp/341/4 "2024-04-26T17:36:15Z")

</div>

Hello Bonan and Marnik 👋

Thanks a lot for the explanation, this is great! I will play around with your addons and will be looking forward to the merge with aiida-vasp!

---

<div class="post-metadata">

**Author:** ![DoriniTT](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@DoriniTT](https://aiida.discourse.group/u/DoriniTT)\
**Post date:** [May 28, 2024, 11:04pm UTC](https://aiida.discourse.group/t/hybrid-band-structure-calculation-with-seekpath-in-aiida-vasp/341/5 "2024-05-28T23:04:27Z")

</div>

Hello Bonan,  
I have been trying to make the vaspu.hybrid\_bands workflow work, but without any success. Do you have an example of a simple calculation in a workchain that I can base my script on?  
Thanks!

---

<div class="post-metadata">

**Author:** ![zhubonan](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/zhubonan/32/133_2.png) [@zhubonan](https://aiida.discourse.group/u/zhubonan)\
**Post date:** [May 30, 2024, 3:28am UTC](https://aiida.discourse.group/t/hybrid-band-structure-calculation-with-seekpath-in-aiida-vasp/341/6 "2024-05-30T03:28:56Z")

</div>

I have made an example notebook for this.  
Note that you will need to install the latest development branch of aiida-vasp where the hybrid functional band structure workflows has been merged into the plugin code under the entrypoint `vasp.v2.hybrid_bands`.  
The documentation and examples of aiida-vasp have not been updated yet to reflect this addition yet.

```auto
pip install -U git+https://github.com/aiida-vasp/aiida-vasp

```

(please change suffx from txt to ipynb)  
[example\_vasp\_workchain-v2-hybrid-band.txt](https://aiida.discourse.group/uploads/short-url/gdXjSnkPnMdZ250YRoIvAqJxWg.txt) (317.6 KB)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/aiida/original/1X/c417197d3750949351575d03ed03f5e2ad32e649.png) [@system](https://aiida.discourse.group/u/system)\
**Post date:** [May 30, 2026, 3:29am UTC](https://aiida.discourse.group/t/hybrid-band-structure-calculation-with-seekpath-in-aiida-vasp/341/7 "2026-05-30T03:29:21Z")

</div>

This topic was automatically closed 730 days after the last reply. New replies are no longer allowed.
