forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: add so-called U-Ramping method to improve DFTU convergence (#…
…3890) * add a new input parameter uramping, default is -1.0 * add a new member uramping in dftu.h and value it in Input_conv::Convert() * add a new member U0 in dftu.h and value it in Input_conv::Convert() * set U zero if uramping > 0.1 in Input_conv::Convert() * add a new member function DFTU::uramping_update() to change U during SCF * add a new member function DFTU::U_converged() to check if U=U0 * add uramping in esolver_lcao::iter_init() and change conv_elec * make some minor changes * fix bug which only restart once * add a new member mixing_restart_count in Charge_Mixing * add U output at iter 1 * fix build error without LCAO * add some output of U value during U-Raming * add some docs about uramping * modify under some comments * add a space in output * add docs abouht DFTU in converge.md * add recommendations of mixing_restart in input-main.md * add some comment to explain why mixing_restart_count is int instead of bool * add ref & in mix_dmr() * add a new CI case 260_NO_DJ_PK_PU_AFM_URAMPING * rename chgmix->mixing_restart as mixing_restart_step to avoid misunderstanding between GlobalV::MIXING_RESTART * keep verbosity of judge in esolver to remind others mixing_dmr is only called in this case. --------- Co-authored-by: Mohan Chen <mohan.chen.chen.mohan@gmail.com>
- Loading branch information
1 parent
270b307
commit 125581b
Showing
22 changed files
with
212 additions
and
22 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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
INPUT_PARAMETERS | ||
suffix autotest | ||
nbands 40 | ||
|
||
calculation scf | ||
ecutwfc 20 | ||
scf_thr 1.0e-4 | ||
scf_nmax 500 | ||
out_chg 0 | ||
|
||
smearing_method gaussian | ||
smearing_sigma 0.01 | ||
|
||
cal_force 1 | ||
cal_stress 1 | ||
|
||
mixing_type broyden | ||
mixing_beta 0.4 | ||
mixing_restart 5e-3 | ||
mixing_dmr 1 | ||
mixing_ndim 15 | ||
|
||
ks_solver genelpa | ||
basis_type lcao | ||
gamma_only 0 | ||
symmetry 0 | ||
nspin 2 | ||
|
||
#Parameter DFT+U | ||
dft_plus_u 1 | ||
orbital_corr 2 -1 | ||
hubbard_u 5.0 0.0 | ||
uramping 2.5 | ||
pseudo_dir ../../PP_ORB | ||
orbital_dir ../../PP_ORB |
Oops, something went wrong.