Skip to content

Implementation of DFT+U - #457

Merged
davidbowler merged 19 commits into
developfrom
f-DFT-plus-U
Jul 8, 2026
Merged

Implementation of DFT+U#457
davidbowler merged 19 commits into
developfrom
f-DFT-plus-U

Conversation

@davidbowler

Copy link
Copy Markdown
Contributor

Implement DFT+U in Conquest (includes new test and documentation)

ayakon and others added 15 commits February 7, 2025 22:45
Added flags to remove building of U matrix before first diagonalisation
The energy correction for Harris-Foulkes is now implemented and
the matrices are constructed relatively simply; this version now
works for AFM NiO
This compiles and runs, but the calculated forces and stresses
are zero (incorrectly!).  There is some error or misunderstanding
in the formulation of the forces which I will fix as soon as I can
find it!
This is experimental for now (find dP and multiply by K-2KPK rather
than following non-local force)
Reworked the implementation of DFT+U
Added test case
Left old flag flag_write_DOS in use statement; fixed.
I somehow deleted large parts of fmmi - now restored
Moved calculation of occupation matrix to new subroutine.
Added documentation.
Removing trailing space and tidying matrix numbers
@davidbowler davidbowler added this to the Release v1.6 milestone Jun 17, 2026
@davidbowler davidbowler self-assigned this Jun 17, 2026
@davidbowler davidbowler added area: main-source Relating to the src/ directory (main Conquest source code) improves: functionality Adding functionality to code type: enhancement Planned enhancement being suggested by developers labels Jun 17, 2026
GitHub CI flagged a line over 132 characters
I forgot to add the spin_factor in the DFT+U energy which meant
that non-spin-polarised calculations had the wrong energy.
@davidbowler
davidbowler merged commit 62d6fb0 into develop Jul 8, 2026
8 checks passed
@davidbowler
davidbowler deleted the f-DFT-plus-U branch July 8, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: main-source Relating to the src/ directory (main Conquest source code) improves: functionality Adding functionality to code type: enhancement Planned enhancement being suggested by developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants