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] Rename module_elecstate and module_psi and module_hamilt_pw (#6334)
* Rename module_elecstate to source_estate
* Rename module_psi to source_psi
* Rename module_hamilt_pw to source_pw
* Rename module_hamilt_general to source_hamilt
Copy file name to clipboardExpand all lines: docs/CONTRIBUTING.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,12 +54,12 @@ For those who are interested in the source code, the following figure shows the
54
54
| |-- module_neighbor The module for finding the neighbors of each atom in the unit cell.
55
55
| |-- module_paw The module for performing PAW calculations.
56
56
| |-- module_symmetry The module for finding the symmetry operations of the unit cell.
57
-
|-- module_elecstate The module for defining the electronic state and its operations.
57
+
|-- source_estate The module for defining the electronic state and its operations.
58
58
| |-- module_charge The module for calculating the charge density, charge mixing
59
59
| |-- potentials The module for calculating the potentials, including Hartree, exchange-correlation, local pseudopotential, etc.
60
60
|-- source_esolver The module defining task-specific driver of corresponding workflow for evaluating energies, forces, etc., including lj, dp, ks, sdft, ofdft, etc.
61
61
| | TDDFT, Orbital-free DFT, etc.
62
-
|-- module_hamilt_general The module for defining general Hamiltonian that can be used both in PW and LCAO calculations.
62
+
|-- source_hamilt The module for defining general Hamiltonian that can be used both in PW and LCAO calculations.
63
63
| |-- module_ewald The module for calculating the Ewald summation.
64
64
| |-- module_surchem The module for calculating the surface charge correction.
65
65
| |-- module_vdw The module for calculating the van der Waals correction.
@@ -72,7 +72,7 @@ For those who are interested in the source code, the following figure shows the
72
72
| |-- module_gint The module for performing grid integral in LCAO calculations.
73
73
| |-- module_hcontainer The module for storing the Hamiltonian matrix in LCAO calculations.
74
74
| `-- module_tddft The module for defining the Hamiltonian in TDDFT calculations.
75
-
|-- module_hamilt_pw The module for defining the Hamiltonian in PW calculations.
75
+
|-- source_pw The module for defining the Hamiltonian in PW calculations.
76
76
| |-- hamilt_ofdft The module for defining the Hamiltonian in OFDFT calculations.
77
77
| |-- hamilt_pwdft The module for defining the Hamiltonian in PW-DFT calculations.
78
78
| | |-- operator_pw The module for defining the operators in PW-DFT calculations.
@@ -81,7 +81,7 @@ For those who are interested in the source code, the following figure shows the
81
81
| | calculations, and scalapack and genelpa in LCAO calculations.
82
82
|-- module_io The module for reading of INPUT files and output properties including band structure, density of states, charge density, etc.
83
83
|-- module_md The module for performing molecular dynamics.
84
-
|-- module_psi The module for defining the wave function and its operations.
84
+
|-- source_psi The module for defining the wave function and its operations.
85
85
|-- module_relax The module for performing structural optimization.
86
86
| |-- relax_new The module for performing structural optimization with new algorithm, optimized for cell and ion simultaneously.
87
87
| `-- relax_old The module for performing structural optimization with old algorithm, optimized for cell and ion separately.
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
@@ -1048,7 +1048,7 @@ calculations.
1048
1048
1049
1049
-**Type**: String
1050
1050
-**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.
1051
-
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://libxc.gitlab.io/functionals/). In this way, **we support all the LDA,GGA and mGGA functionals provided by LIBXC**.
1051
+
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/source_hamilt/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://libxc.gitlab.io/functionals/). In this way, **we support all the LDA,GGA and mGGA functionals provided by LIBXC**.
1052
1052
1053
1053
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.
1054
1054
@@ -3474,7 +3474,7 @@ These variables are used to control vdW-corrected related parameters.
3474
3474
3475
3475
-**Type**: String
3476
3476
-**Availability**: `vdw_method` is set to `d2`
3477
-
-**Description**: Specifies the name of the file containing $C_6$ parameters for each element when using the D2 method. If not set, ABACUS uses the default $C_6$ parameters (Jnm6/mol) stored in the [program](https://github.com/deepmodeling/abacus-develop/blob/develop/source/module_hamilt_general/module_vdw/vdwd2_parameters.cpp). To manually set the $C_6$ parameters, provide a file containing the parameters. An example is given by:
3477
+
-**Description**: Specifies the name of the file containing $C_6$ parameters for each element when using the D2 method. If not set, ABACUS uses the default $C_6$ parameters (Jnm6/mol) stored in the [program](https://github.com/deepmodeling/abacus-develop/blob/develop/source/source_hamilt/module_vdw/vdwd2_parameters.cpp). To manually set the $C_6$ parameters, provide a file containing the parameters. An example is given by:
3478
3478
3479
3479
```text
3480
3480
H 0.1
@@ -3497,7 +3497,7 @@ These variables are used to control vdW-corrected related parameters.
3497
3497
3498
3498
-**Type**: String
3499
3499
-**Availability**: `vdw_method` is set to `d2`
3500
-
-**Description**: Specifies the name of the file containing $R_0$ parameters for each element when using the D2 method. If not set, ABACUS uses the default $R_0$ parameters (Angstrom) stored in the [program](https://github.com/deepmodeling/abacus-develop/blob/develop/source/module_hamilt_general/module_vdw/vdwd2_parameters.cpp). To manually set the $R_0$ parameters, provide a file containing the parameters. An example is given by:
3500
+
-**Description**: Specifies the name of the file containing $R_0$ parameters for each element when using the D2 method. If not set, ABACUS uses the default $R_0$ parameters (Angstrom) stored in the [program](https://github.com/deepmodeling/abacus-develop/blob/develop/source/source_hamilt/module_vdw/vdwd2_parameters.cpp). To manually set the $R_0$ parameters, provide a file containing the parameters. 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_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.
7
+
Several common functionals are implemented in ABACUS, such as PZ and PBE. Users can check out this [file](../../../source/source_hamilt/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_hamilt_general/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/source_hamilt/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