HopTB.jl icon indicating copy to clipboard operation
HopTB.jl copied to clipboard

How to get started with HopTB?

Open sgyang345 opened this issue 1 year ago • 5 comments

Dear Developers,

I am trying to get a band structure using HopTB, and I already have Hamiltonian from DeepH. I would also like to be able to use other calculated modules. Could you please tell me how to prepare the input file and run the program? I will be grateful.

Best regards, Yang

Graphene_1x1.zip

sgyang345 avatar Apr 28 '23 08:04 sgyang345

@mzjb

atbug avatar Apr 28 '23 17:04 atbug

The following file is an example that converts the Hamiltonian in the DeepH format of monolayer GeS into the TBModel type of HopTB.jl and performs shift current calculation using HopTB.jl (should be same as Fig. 1c of this paper). Hope it helps you.

GeS_shift_current.zip

mzjb avatar Apr 29 '23 04:04 mzjb

Hi, I'm recently following the example of converting the DeepH Hamiltonian to TBModel, but I just noticed that I don't have such a file named "position.h5". Is there a convenient way to get that file? Thanks! @mzjb

iduygnay avatar Apr 07 '24 16:04 iduygnay

Also, if there exists a way to convert the TBModel to a file that wanniertools can read, that would be better!

iduygnay avatar Apr 07 '24 16:04 iduygnay

Hi, I'm recently following the example of converting the DeepH Hamiltonian to TBModel, but I just noticed that I don't have such a file named "position.h5". Is there a convenient way to get that file? Thanks! @mzjb [openmx_get_data.jl.zip

You can use this openmx_get_data.jl file instead of the one in the DeepH-pack repository to obtain the positions.h5 file.

mzjb avatar Apr 10 '24 05:04 mzjb

Hello developer, I recently tried to repeat this example. I trained deepH with ABACUS-3.7.3, but when predicting the Hamiltonian with deepH, the file "positions.h5" could not be generated, even though "out_mat_r" and "out_mat_hs2" were set in ABACUS. Is there any way to solve this problem? Thanks! @mzjb

vegaly avatar Oct 17 '24 03:10 vegaly

Hello developer, I recently tried to repeat this example. I trained deepH with ABACUS-3.7.3, but when predicting the Hamiltonian with deepH, the file "positions.h5" could not be generated, even though "out_mat_r" and "out_mat_hs2" were set in ABACUS. Is there any way to solve this problem? Thanks! @mzjb

https://github.com/mzjb/DeepH-pack/blob/141faaaba1d5e17248283ef939bcd2ead2d8e677/deeph/preprocess/abacus_get_data.py#L329

mzjb avatar Oct 17 '24 04:10 mzjb