-
Notifications
You must be signed in to change notification settings - Fork 158
support to read coord/cell from STRU_ION*_D in abacus/relax #957
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
Merged
wanghan-iapcm
merged 13 commits into
deepmodeling:master
from
pxlxingliang:abacus-relax
Mar 23, 2026
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
33b6364
support to read coord/cell from STRU_ION*_D in abacus/relax
bf5cf3e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e3ae51c
fix the bug of unit of cell/coord
2168483
update coords.npy
30797b5
Merge branch 'abacus-relax' of https://github.com/pxlxingliang/dpdata…
5f4745c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2840ebb
install specified lmdb version for different python version
15c3631
Merge branch 'abacus-relax' of https://github.com/pxlxingliang/dpdata…
d0f691e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a34b9c8
fix example
39efd3e
Merge branch 'abacus-relax' of https://github.com/pxlxingliang/dpdata…
082a7e0
Merge branch 'master' into abacus-relax
pxlxingliang d3f5707
remove the modifycation of lmdb installation
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| INPUT_PARAMETERS RUNNING ABACUS-DFT | ||
|
|
||
| #Parameters (1.General) | ||
| suffix ABACUS # suffix of OUTPUT DIR | ||
| nspin 1 # 1/2/4 | ||
| symmetry 0 # 0/1 | ||
| esolver_type ksdft # ksdft/ofdft/sdft/tddft/lj/dp | ||
| dft_functional pbe # lda/pbe/scan/hf/pbe0/hse/libxc | ||
| ks_solver genelpa # genelpa/scalapack_avx for lcao, cg/dav for pw | ||
| vdw_method none # d3/d3_bj/none | ||
|
|
||
| #Parameters (2.Iteration) | ||
| calculation cell-relax # scf/relax/cell-relax/md | ||
| ecutwfc 100 # Rydberg, in lcao is for grid density | ||
| scf_thr 1e-7 # Rydberg | ||
| scf_nmax 100 | ||
| #printe 300 # default eq scf_nmax | ||
| relax_nmax 3 | ||
| relax_method bfgs_trad # cg/bfgs/bfgs_trad/sd/"fire" | ||
| force_thr_ev 0.05 | ||
| # stress_thr 1 # GPa | ||
|
|
||
| #Parameters (3.Basis) | ||
| basis_type lcao # lcao or pw | ||
| # kspacing 0.14 0.50 0.14 # replace KPT | ||
| gamma_only 1 # 0/1, replace KPT | ||
|
|
||
| #Parameters (4.Smearing) | ||
| smearing_method mp # mp/gauss/fixed/mp-n/fd | ||
| smearing_sigma 0.008 # Rydberg | ||
|
|
||
| #Parameters (5.Mixing) | ||
| mixing_type broyden # pulay/broyden | ||
| mixing_ndim 20 | ||
| #mixing_beta 0.4 # use default | ||
| #mixing_gg0 1.0 # use default | ||
|
|
||
| #Parameters (6.Calculation) | ||
| cal_force 1 | ||
| cal_stress 1 | ||
| #init_chg atomic # atomic/auto/file | ||
| #init_wfc atomic # atomic/file | ||
| out_stru 1 # print STRU in OUT | ||
| out_chg -1 # -1 no, 0 binary, 1 cube, more number as cube prec | ||
| out_bandgap 1 | ||
| out_mul 1 # print charge and mag of atom in mulliken.txt | ||
| # out_wfc_lcao 0 # 0 no, 1 txt, 2 dat | ||
|
|
||
|
|
||
| # #Parameters (7. Dipole Correction) | ||
| # efield_flag 1 # open added potential, if 0, all below useless | ||
| # dip_cor_flag 1 # open dipole correction | ||
| # efield_dir 1 # direction of dipole correction, 0,1,2 for x,y,z | ||
|
|
34 changes: 34 additions & 0 deletions
34
tests/abacus.relax.readFromSTRUIOND/OUT.ABACUS/STRU_ION1_D
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| ATOMIC_SPECIES | ||
| Ga 69.7230 Ga.upf upf201 | ||
| As 74.9216 As.PD04.PBE.UPF upf201 | ||
|
|
||
| NUMERICAL_ORBITAL | ||
| Ga_gga_7au_100Ry_2s2p2d1f.orb | ||
| As_gga_8au_100Ry_2s2p1d.orb | ||
|
|
||
| LATTICE_CONSTANT | ||
| 1.8897160000 | ||
|
|
||
| LATTICE_VECTORS | ||
| 5.7532352224 -0.0000000000 0.0000000000 | ||
| -0.0000000000 5.7532352224 -0.0000000000 | ||
| 0.0000000000 -0.0000000000 5.7532352224 | ||
|
|
||
| ATOMIC_POSITIONS | ||
| Direct | ||
|
|
||
| Ga #label | ||
| 0.0000 #magnetism | ||
| 4 #number of atoms | ||
| 1.0000000000 0.0000000000 1.0000000000 m 1 1 1 | ||
| 1.0000000000 0.5000000000 0.5000000000 m 1 1 1 | ||
| 0.5000000000 0.0000000000 0.5000000000 m 1 1 1 | ||
| 0.5000000000 0.5000000000 1.0000000000 m 1 1 1 | ||
|
|
||
| As #label | ||
| 0.0000 #magnetism | ||
| 4 #number of atoms | ||
| 0.2500000000 0.2500000000 0.2500000000 m 1 1 1 | ||
| 0.2500000000 0.7500000000 0.7500000000 m 1 1 1 | ||
| 0.7500000000 0.2500000000 0.7500000000 m 1 1 1 | ||
| 0.7500000000 0.7500000000 0.2500000000 m 1 1 1 |
34 changes: 34 additions & 0 deletions
34
tests/abacus.relax.readFromSTRUIOND/OUT.ABACUS/STRU_ION2_D
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| ATOMIC_SPECIES | ||
| Ga 69.7230 Ga.upf upf201 | ||
| As 74.9216 As.PD04.PBE.UPF upf201 | ||
|
|
||
| NUMERICAL_ORBITAL | ||
| Ga_gga_7au_100Ry_2s2p2d1f.orb | ||
| As_gga_8au_100Ry_2s2p1d.orb | ||
|
|
||
| LATTICE_CONSTANT | ||
| 1.8897160000 | ||
|
|
||
| LATTICE_VECTORS | ||
| 5.7532858910 -0.0000000000 0.0000000000 | ||
| -0.0000000000 5.7532858910 -0.0000000000 | ||
| 0.0000000000 -0.0000000000 5.7532858910 | ||
|
|
||
| ATOMIC_POSITIONS | ||
| Direct | ||
|
|
||
| Ga #label | ||
| 0.0000 #magnetism | ||
| 4 #number of atoms | ||
| 0.0000000001 1.0000000000 0.0000000001 m 1 1 1 | ||
| 0.0000000001 0.5000000000 0.5000000001 m 1 1 1 | ||
| 0.5000000001 1.0000000000 0.5000000001 m 1 1 1 | ||
| 0.5000000001 0.5000000000 0.0000000001 m 1 1 1 | ||
|
|
||
| As #label | ||
| 0.0000 #magnetism | ||
| 4 #number of atoms | ||
| 0.2499999999 0.2500000000 0.2499999999 m 1 1 1 | ||
| 0.2499999999 0.7500000000 0.7499999999 m 1 1 1 | ||
| 0.7499999999 0.2500000000 0.7499999999 m 1 1 1 | ||
| 0.7499999999 0.7500000000 0.2499999999 m 1 1 1 |
34 changes: 34 additions & 0 deletions
34
tests/abacus.relax.readFromSTRUIOND/OUT.ABACUS/STRU_ION3_D
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| ATOMIC_SPECIES | ||
| Ga 69.7230 Ga.upf upf201 | ||
| As 74.9216 As.PD04.PBE.UPF upf201 | ||
|
|
||
| NUMERICAL_ORBITAL | ||
| Ga_gga_7au_100Ry_2s2p2d1f.orb | ||
| As_gga_8au_100Ry_2s2p1d.orb | ||
|
|
||
| LATTICE_CONSTANT | ||
| 1.8897160000 | ||
|
|
||
| LATTICE_VECTORS | ||
| 5.7532858910 -0.0000000000 0.0000000000 | ||
| -0.0000000000 5.7532858910 -0.0000000000 | ||
| 0.0000000000 -0.0000000000 5.7532858910 | ||
|
|
||
| ATOMIC_POSITIONS | ||
| Direct | ||
|
|
||
| Ga #label | ||
| 0.0000 #magnetism | ||
| 4 #number of atoms | ||
| 0.0000000001 1.0000000000 0.0000000001 m 1 1 1 | ||
| 0.0000000001 0.5000000000 0.5000000001 m 1 1 1 | ||
| 0.5000000001 1.0000000000 0.5000000001 m 1 1 1 | ||
| 0.5000000001 0.5000000000 0.0000000001 m 1 1 1 | ||
|
|
||
| As #label | ||
| 0.0000 #magnetism | ||
| 4 #number of atoms | ||
| 0.2499999999 0.2500000000 0.2499999999 m 1 1 1 | ||
| 0.2499999999 0.7500000000 0.7499999999 m 1 1 1 | ||
| 0.7499999999 0.2500000000 0.7499999999 m 1 1 1 | ||
| 0.7499999999 0.7500000000 0.2499999999 m 1 1 1 |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| ATOMIC_SPECIES | ||
| Ga 69.7230 Ga.upf upf201 | ||
| As 74.9216 As.PD04.PBE.UPF upf201 | ||
|
|
||
| NUMERICAL_ORBITAL | ||
| Ga_gga_7au_100Ry_2s2p2d1f.orb | ||
| As_gga_8au_100Ry_2s2p1d.orb | ||
|
|
||
| LATTICE_CONSTANT | ||
| 1.8897160000 | ||
|
|
||
| LATTICE_VECTORS | ||
| 5.7532858910 -0.0000000000 0.0000000000 | ||
| -0.0000000000 5.7532858910 -0.0000000000 | ||
| 0.0000000000 -0.0000000000 5.7532858910 | ||
|
|
||
| ATOMIC_POSITIONS | ||
| Direct | ||
|
|
||
| Ga #label | ||
| 0.0000 #magnetism | ||
| 4 #number of atoms | ||
| 0.0000000001 1.0000000000 0.0000000001 m 1 1 1 | ||
| 0.0000000001 0.5000000000 0.5000000001 m 1 1 1 | ||
| 0.5000000001 1.0000000000 0.5000000001 m 1 1 1 | ||
| 0.5000000001 0.5000000000 0.0000000001 m 1 1 1 | ||
|
|
||
| As #label | ||
| 0.0000 #magnetism | ||
| 4 #number of atoms | ||
| 0.2499999999 0.2500000000 0.2499999999 m 1 1 1 | ||
| 0.2499999999 0.7500000000 0.7499999999 m 1 1 1 | ||
| 0.7499999999 0.2500000000 0.7499999999 m 1 1 1 | ||
| 0.7499999999 0.7500000000 0.2499999999 m 1 1 1 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.