You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor: rearrange code files paths for module hamiltonian, decompose to "general", "pw", "lcao" 3 parts. (#1826)
* Refactor: move klist.cpp from src_pw to module_cell
* Refactor: divided module_hamilt to 5 parts: hamilt_general, hamilt_pwdft, hamilt_lcao, hamilt_ofdft, hamilt_stodft
* Refactor: merge hamilt_pwdft, hamilt_ofdft, hamilt_stodft to one directory: hamilt_pw
* Fix: compiling without lcao
* Refactor: move charge, charge_mixing, charge_extra from src_pw to module_elecstate/module_charge
* Refactor: move stress code for ESolver_KS_PW from src_pw to hamilt_pw/hamilt_pwdft
* Refactor: rename source/hamilt_xx to source/module_hamilt_xx
* Refactor: move sto_xx from src_pw/ to module_hamilt_pw/hamilt_stodft/
* Refactor: move of_stress_pw from src_pw/ to module_hamilt_pw/hamilt_ofdft/
* Refactor: move pseudopotential part from src_pw/ to module_hamilt_pw/hamilt_pwdft/
* Refactor: move wave-function-initial and kernals from src_pw/ to module_hamilt_pw/hamilt_pwdft/
* Fix: compiling error for cuda and rocm
* Fix: ignored UT cal_dbecp_noevc_nl_op_cpu for unknown bug
* Refactor: move Ewald code from src_pw to module_hamilt_general/module_ewald
* Refactor: move module_vdw to module_hamilt_general/module_vdw
* Refactor: move module_xc to module_hamilt_general/module_xc
* Refactor: move module_surchem to module_hamilt_general/module_surchem
* Refactor: move energy, magnetism, and occupy from src_pw/ to module_elecstate/
* Fix: compiling error in UTs
* Refactor: delete useless code pw_complement in src_pw
* Refactor: move soc and structure_factor code from src_pw/ to module_hamilt_pw/hamilt_pwdft/ , useless file bspline_sf.cpp is deleted.
* Refactor: delete myfunc.h and xc_3.cpp in src_pw, add used code to new file dnrm2 in module_ewald
* Refactor: delete unused code threshold_elec in src_pw
* Refactor: move symmetry_rho from src_pw/ to module_symmetry/
* Doc: update related docs for code paths
* Refactor: move force&stress code from src_lcao to module_hamilt_lcao
* Refactor: move tddft code from src_lcao to module_hamilt_lcao/module_tddft
* Refactor: add hamilt_lcaodft in module_hamilt_lcao
* Refactor: move LCAO* and record_adj from src_lcao to module_hamilt_lcao/hamilt_lcaodft
* Refactor: move center* from src_lcao to module_hamilt_lcao/hamilt_lcaodft
* Refactor: move serialization_*.h from src_lcao to src_ri
* Refactor: delete broken file dmft.h in src_lcao
* Refactor: move src_lcao to module_hamilt_lcao/hamilt_lcaodft and delete src_lcao
* Refactor: separate header of global.h and global_fp.h
* Refactor: move global.h from src_pw to hamilt_pwdft and delete src_pw
* Fix: compiling error for RI
* Refactor: move symmetry_rho from module_symmetry to module_charge
Copy file name to clipboardExpand all lines: docs/advanced/input_files/input-main.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,7 +197,7 @@ These variables are used to control general system parameters.
197
197
198
198
-**Type**: String
199
199
-**Description**: In our package, the XC functional can either be set explicitly using the `dft_functional` keyword in `INPUT` file. If `dft_functional` is not specified, ABACUS will use the xc functional indicated in the pseudopotential file.
200
-
On the other hand, if dft_functional is specified, it will overwrite the functional from pseudopotentials and performs calculation with whichever functional the user prefers. We further offer two ways of supplying exchange-correlation functional. The first is using 'short-hand' names such as 'LDA', 'PBE', 'SCAN'. A complete list of 'short-hand' expressions can be found in [the source code](../../../source/module_xc/xc_functional.cpp). The other way is only available when ***compiling with LIBXC***, and it allows for supplying exchange-correlation functionals as combinations of LIBXC keywords for functional components, joined by a plus sign, for example, 'dft_functional='LDA_X_1D_EXPONENTIAL+LDA_C_1D_CSC'. The list of LIBXC keywords can be found on its [website](https://www.tddft.org/programs/libxc/functionals/). In this way, **we support all the LDA,GGA and mGGA functionals provided by LIBXC**.
200
+
On the other hand, if dft_functional is specified, it will overwrite the functional from pseudopotentials and performs calculation with whichever functional the user prefers. We further offer two ways of supplying exchange-correlation functional. The first is using 'short-hand' names such as 'LDA', 'PBE', 'SCAN'. A complete list of 'short-hand' expressions can be found in [the source code](../../../source/module_hamilt_general/module_xc/xc_functional.cpp). The other way is only available when ***compiling with LIBXC***, and it allows for supplying exchange-correlation functionals as combinations of LIBXC keywords for functional components, joined by a plus sign, for example, 'dft_functional='LDA_X_1D_EXPONENTIAL+LDA_C_1D_CSC'. The list of LIBXC keywords can be found on its [website](https://www.tddft.org/programs/libxc/functionals/). In this way, **we support all the LDA,GGA and mGGA functionals provided by LIBXC**.
201
201
202
202
Furthermore, the old INPUT parameter exx_hybrid_type for hybrid functionals has been absorbed into dft_functional. Options are `hf` (pure Hartree-Fock), `pbe0`(PBE0), `hse` (Note: in order to use HSE functional, LIBXC is required). Note also that HSE has been tested while PBE0 has NOT been fully tested yet, and the maximum CPU cores for running exx in parallel is $N(N+1)/2$, with N being the number of atoms. And forces for hybrid functionals are not supported yet.
203
203
@@ -1762,7 +1762,7 @@ These variables are used to control vdW-corrected related parameters.
1762
1762
-**Type**: String
1763
1763
-**Description**: This variable is relevant if the user wants to manually set the $C_6$ parameters in D2 method. It gives the name of the file which contains the list of $C_6$ parameters for each element.
1764
1764
1765
-
If not set, ABACUS will use the default $C_6$ Parameters stored in the program. The default values of $C_6$ for elements 1_H up to 86_Rn can be found by searching for `C6_default` in the [source code](https://github.com/deepmodeling/abacus-develop/blob/develop/source/src_pw/vdwd2_parameters.cpp). The unit is Jnm6/mol.
1765
+
If not set, ABACUS will use the default $C_6$ Parameters stored in the program. The default values of $C_6$ for elements 1_H up to 86_Rn can be found by searching for `C6_default` in the [source code](https://github.com/deepmodeling/abacus-develop/blob/develop/source/module_hamilt_general/module_vdw/vdwd2_parameters.cpp). The unit is Jnm6/mol.
1766
1766
1767
1767
Otherwise, if user wants to manually set the $C_6$ Parameters, they should provide a file containing the $C_6$ parameters to be used. An example is given by:
1768
1768
@@ -1784,7 +1784,7 @@ These variables are used to control vdW-corrected related parameters.
1784
1784
1785
1785
-**Type**: String
1786
1786
-**Description**: This variable is relevant if the user wants to manually set the $R_0$ parameters in D2 method.
1787
-
If not set, ABACUS will use the default $C_6$ Parameters stored in the program. The default values of $C_6$ for elements 1_H up to 86_Rn can be found by searching for `R0_default` in the [source code](https://github.com/deepmodeling/abacus-develop/blob/develop/source/src_pw/vdwd2_parameters.cpp). The unit is Angstrom.
1787
+
If not set, ABACUS will use the default $C_6$ Parameters stored in the program. The default values of $C_6$ for elements 1_H up to 86_Rn can be found by searching for `R0_default` in the [source code](https://github.com/deepmodeling/abacus-develop/blob/develop/source/module_hamilt_general/module_vdw/vdwd2_parameters.cpp). The unit is Angstrom.
1788
1788
1789
1789
Otherwise, if the user wants to manually set the $C_6$ Parameters, they should provide a file containing the $C_6$ parameters to be used. An example is given by:
Copy file name to clipboardExpand all lines: docs/advanced/scf/construct_H.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
In our package, the XC functional can be set explicitly using the `dft_functional` keyword in `INPUT` file. If `dft_functional` is not specified, ABACUS will use the xc functional indicated in the pseudopotential file.
6
6
7
-
Several common functionals are implemented in ABACUS, such as PZ and PBE. Users can check out this [file](../../../source/module_xc/xc_funcs.h) for a complete list of functionals implemented in ABACUS. Furthermore, if ABACUS is compiled with LIBXC, we also support all the LDA, GGA and meta-GGA functionals provided therein.
7
+
Several common functionals are implemented in ABACUS, such as PZ and PBE. Users can check out this [file](../../../source/module_hamilt_general/module_xc/xc_funcs.h) for a complete list of functionals implemented in ABACUS. Furthermore, if ABACUS is compiled with LIBXC, we also support all the LDA, GGA and meta-GGA functionals provided therein.
8
8
9
9
Here, we use a simple [example calculation](https://github.com/deepmodeling/abacus-develop/tree/develop/examples/scf/lcao_Si2) for illustration.
10
10
@@ -45,7 +45,7 @@ Here, we use a simple [example calculation](https://github.com/deepmodeling/abac
45
45
dft_functional SCAN
46
46
```
47
47
48
-
Note that in the case of PBE and SCAN, we are using 'short-hand' names to represent the entire functional, which is made up of individual exchange and correlation components. A complete list of 'short-hand' expressions supported by ABACUS can be found in [source code](../../../source/module_xc/xc_functional.cpp).
48
+
Note that in the case of PBE and SCAN, we are using 'short-hand' names to represent the entire functional, which is made up of individual exchange and correlation components. A complete list of 'short-hand' expressions supported by ABACUS can be found in [source code](../../../source/module_hamilt_general/module_xc/xc_functional.cpp).
49
49
50
50
Apart from the 'short-hand' names, ABACUS also allow supplying exchange-correlation functionals as combinations of LIBXC keywords for functional components, joined by plus sign, for example, setting:
0 commit comments