-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading wannier Hamiltonian with out '_centres.xyz' present #716
Comments
I agree, this is sub-optimal. Indeed there should be a stricter understanding of what is read. It seems to me that it would be a bit more strict:
|
Or, should we add a new It is a bit weird to use the input file and value returns in the same file... It can get error prone. |
I guess, the best approach would be to split the Using the However, to me, there is some ambiguity in what is read. Maybe we should consider having a |
It seems to me that the best approach would be to split the siles. Having an Perhaps we could try with a sile that parses the |
That sounds reasonable. A few questions:
P.S. What makes you think that the |
It just seemed like the So having two files with the same information is something that calls for obsoleting stuff, thats it. |
* Split Wannier90 sile types. Expose new siles and associate file types add reading of lattice from win as fallback - Reading geometry in read_hamiltonian explicitly requestes order=["centres"] - Crash reading of Hamiltonian from <>_hr.dat file if neither lattice nor geometry is available include new siles in docuementation --------- Signed-off-by: Nick Papior <[email protected]> Co-authored-by: Nick Papior <[email protected]>
When trying to read the Hamiltonian from
<>_tb.dat
or<>_hr.dat
without<>_centeres.xyz
present, we try to read the geometry from the Wannier input, which returns a geometry with the 'correct' atoms and positions. However, for the Hamiltonian, this geometry is not suited (the number of wannier functions in general is different from the number of atoms).To fix this problem I would suggest, implementing the following procedure:
In
sisl.io.wannier90.seedname.read_hamiltonian
we explicitly call read_geometry withorder=['centers']
. Should this call fail, we obtain the number of Wannier functions (n_wann
) from the<>.win
file or as a fallback from the Hamiltonian file and create a fake geometry withn_wann
orbitals all centered at the origin.This could be later improved by using the initial projections as the locations of the orbitals.
@zerothi, please let me know if this makes sense to you. If so, I'll create a PR for this.
The text was updated successfully, but these errors were encountered: