-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Running PDOS for spin-polarised system (#206)
Currently it is not possible to calculate the PDOS for a spin-polarised system (i.e. setting Magnetism to Ferromagnetic), since the `QeAppWorkChain` expects the `projections` output from the `PdosWorkChain`. However, for spin-polarised systems the `ProjwfcCalculation` returns two outputs: `projectsion_up` and `projections_down`. Here we adapt the `QeAppWorkChain` to check for the `projections_up` output, and in case it is present it will add both `projections_up` and `projections_down` to the outputs. Otherwise it will only add the `projections` output (both only in case the `workchain_pdos` was actually run). To deal with plotting the corresponding (P)DOS, we simply add the total DOS up and down states together, and separately add the PDOS orbitals for the up and down states to the list passed to the `widget-bandsplot`. Since the widget currently adds all the PDOS of the same orbital types (s, p, d, f) together, there will currently not be any differentiation between the up and down states in the visualization. This is something that will need to be improved on the widget side.
- Loading branch information
Showing
2 changed files
with
51 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters