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
Re-implement DFT-D3 against the s-dftd3 reference (#7830)
* Re-implement DFT-D3 against the s-dftd3 reference
* Update input keywords description
* Fix Makefile objects
Only make it able to compile, not ensuring it compile correctly
Copy file name to clipboardExpand all lines: docs/advanced/input_files/input-main.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3988,7 +3988,7 @@
3988
3988
- d4: Grimme's DFT-D4 dispersion correction method using the external DFT-D4 library
3989
3989
- none: no vdW correction
3990
3990
3991
-
> Note: ABACUS supports automatic setting of DFT-D3 parameters for common functionals. To benefit from this feature, please specify the parameter dft_functional explicitly, otherwise the autoset procedure will crash. If not satisfied with the built-in parameters, any manual setting on vdw_s6, vdw_s8, vdw_a1 and vdw_a2 will overwrite the automatic values.
3991
+
> Note: ABACUS automatically loads DFT-D3 parameters for supported functionals according to dft_functional setting. Individual user values overwrite the corresponding tabulated values. Setting all four of vdw_s6, vdw_s8, vdw_a1 and vdw_a2 defines a fully custom set and bypasses functional lookup.
3992
3992
-**Default**: none
3993
3993
3994
3994
### vdw_d4_xc
@@ -4014,25 +4014,25 @@
4014
4014
4015
4015
-**Type**: String
4016
4016
-**Availability**: *[`vdw_method`](#vdw_method) in [d2, d3_0, d3_bj]*
4017
-
-**Description**: This scale factor is used to optimize the interaction energy deviations in van der Waals (vdW) corrected calculations. The recommended values of this parameter are dependent on the chosen vdW correction method and the DFT functional being used. For DFT-D2, the recommended values are 0.75 (PBE), 1.2 (BLYP), 1.05 (B-P86), 1.0 (TPSS), and 1.05 (B3LYP). If not set, will use values of PBE functional. For DFT-D3, recommended values with different DFT functionals can be found on the here. If not set, will search in ABACUS built-in dataset based on the dft_functional keywords. User set value will overwrite the searched value.
4017
+
-**Description**: Scale factor s6, which is used to optimize the interaction energy deviations in van der Waals (vdW) corrected calculations. The recommended values of this parameter are dependent on the chosen vdW correction method and the DFT functional being used. For DFT-D2, the recommended values are 0.75 (PBE), 1.2 (BLYP), 1.05 (B-P86), 1.0 (TPSS), and 1.05 (B3LYP); if not set, will use values of PBE functional by default. For DFT-D3, ABACUS will search in built-in dataset based on the dft_functional setting by default; user set value will overwrite the searched value.
4018
4018
4019
4019
### vdw_s8
4020
4020
4021
4021
-**Type**: String
4022
4022
-**Availability**: *[`vdw_method`](#vdw_method) in [d3_0, d3_bj]*
4023
-
-**Description**: This scale factor is relevant for D3(0) and D3(BJ) van der Waals (vdW) correction methods. The recommended values of this parameter with different DFT functionals can be found on the webpage. If not set, will search in ABACUS built-in dataset based on the dft_functional keywords. User set value will overwrite the searched value.
4023
+
-**Description**: Scale factor s8 for D3(0) and D3(BJ). By default, ABACUS will search in built-in dataset based on the dft_functional setting. User set value will overwrite the searched value.
4024
4024
4025
4025
### vdw_a1
4026
4026
4027
4027
-**Type**: String
4028
4028
-**Availability**: *[`vdw_method`](#vdw_method) in [d3_0, d3_bj]*
4029
-
-**Description**: This damping function parameter is relevant for D3(0) and D3(BJ) van der Waals (vdW) correction methods. The recommended values of this parameter with different DFT functionals can be found on the webpage. If not set, will search in ABACUS built-in dataset based on the dft_functional keywords. User set value will overwrite the searched value.
4029
+
-**Description**: Damping parameter rs6 for D3(0), or a1 for D3(BJ). If not set, ABACUS loads the s-dftd3 value for dft_functional. A user value overwrites the tabulated value.
4030
4030
4031
4031
### vdw_a2
4032
4032
4033
4033
-**Type**: String
4034
4034
-**Availability**: *[`vdw_method`](#vdw_method) in [d3_0, d3_bj]*
4035
-
-**Description**: This damping function parameter is only relevant for D3(0) and D3(BJ) van der Waals (vdW) correction methods. The recommended values of this parameter with different DFT functionals can be found on the webpage. If not set, will search in ABACUS built-in dataset based on the dft_functional keywords. User set value will overwrite the searched value.
4035
+
-**Description**: Damping parameter rs8 for D3(0), or a2 for D3(BJ). If not set, ABACUS loads the s-dftd3 value for dft_functional. A user value overwrites the tabulated value.
4036
4036
4037
4037
### vdw_d
4038
4038
@@ -4095,7 +4095,7 @@
4095
4095
-**Type**: String
4096
4096
-**Description**: Determines the method used for specifying the cutoff radius in periodic systems when applying Van der Waals correction. Available options are:
4097
4097
- radius: The supercell is selected within a sphere centered at the origin with a radius defined by vdw_cutoff_radius.
4098
-
- period: The extent of the supercell is explicitly specified using the vdw_cutoff_period keyword.
4098
+
- period: The extent of the D2 supercell is explicitly specified using the vdw_cutoff_period keyword. DFT-D3 and DFT-D4 require radius.
Copy file name to clipboardExpand all lines: docs/parameters.yaml
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -4263,7 +4263,7 @@ parameters:
4263
4263
* d4: Grimme's DFT-D4 dispersion correction method using the external DFT-D4 library
4264
4264
* none: no vdW correction
4265
4265
4266
-
[NOTE] ABACUS supports automatic setting of DFT-D3 parameters for common functionals. To benefit from this feature, please specify the parameter dft_functional explicitly, otherwise the autoset procedure will crash. If not satisfied with the built-in parameters, any manual setting on vdw_s6, vdw_s8, vdw_a1 and vdw_a2 will overwrite the automatic values.
4266
+
[NOTE] ABACUS automatically loads DFT-D3 parameters for supported functionals according to dft_functional setting. Individual user values overwrite the corresponding tabulated values. Setting all four of vdw_s6, vdw_s8, vdw_a1 and vdw_a2 defines a fully custom set and bypasses functional lookup.
4267
4267
default_value: none
4268
4268
unit: ""
4269
4269
availability: ""
@@ -4291,31 +4291,31 @@ parameters:
4291
4291
category: vdW correction
4292
4292
type: String
4293
4293
description: |
4294
-
This scale factor is used to optimize the interaction energy deviations in van der Waals (vdW) corrected calculations. The recommended values of this parameter are dependent on the chosen vdW correction method and the DFT functional being used. For DFT-D2, the recommended values are 0.75 (PBE), 1.2 (BLYP), 1.05 (B-P86), 1.0 (TPSS), and 1.05 (B3LYP). If not set, will use values of PBE functional. For DFT-D3, recommended values with different DFT functionals can be found on the here. If not set, will search in ABACUS built-in dataset based on the dft_functional keywords. User set value will overwrite the searched value.
4294
+
Scale factor s6, which is used to optimize the interaction energy deviations in van der Waals (vdW) corrected calculations. The recommended values of this parameter are dependent on the chosen vdW correction method and the DFT functional being used. For DFT-D2, the recommended values are 0.75 (PBE), 1.2 (BLYP), 1.05 (B-P86), 1.0 (TPSS), and 1.05 (B3LYP); if not set, will use values of PBE functional by default. For DFT-D3, ABACUS will search in built-in dataset based on the dft_functional setting by default; user set value will overwrite the searched value.
4295
4295
default_value: ""
4296
4296
unit: ""
4297
4297
availability: "vdw_method in [d2, d3_0, d3_bj]"
4298
4298
- name: vdw_s8
4299
4299
category: vdW correction
4300
4300
type: String
4301
4301
description: |
4302
-
This scale factor is relevant for D3(0) and D3(BJ) van der Waals (vdW) correction methods. The recommended values of this parameter with different DFT functionals can be found on the webpage. If not set, will search in ABACUS built-in dataset based on the dft_functional keywords. User set value will overwrite the searched value.
4302
+
Scale factor s8 for D3(0) and D3(BJ). By default, ABACUS will search in built-in dataset based on the dft_functional setting. User set value will overwrite the searched value.
4303
4303
default_value: ""
4304
4304
unit: ""
4305
4305
availability: "vdw_method in [d3_0, d3_bj]"
4306
4306
- name: vdw_a1
4307
4307
category: vdW correction
4308
4308
type: String
4309
4309
description: |
4310
-
This damping function parameter is relevant for D3(0) and D3(BJ) van der Waals (vdW) correction methods. The recommended values of this parameter with different DFT functionals can be found on the webpage. If not set, will search in ABACUS built-in dataset based on the dft_functional keywords. User set value will overwrite the searched value.
4310
+
Damping parameter rs6 for D3(0), or a1 for D3(BJ). If not set, ABACUS loads the s-dftd3 value for dft_functional. A user value overwrites the tabulated value.
4311
4311
default_value: ""
4312
4312
unit: ""
4313
4313
availability: "vdw_method in [d3_0, d3_bj]"
4314
4314
- name: vdw_a2
4315
4315
category: vdW correction
4316
4316
type: String
4317
4317
description: |
4318
-
This damping function parameter is only relevant for D3(0) and D3(BJ) van der Waals (vdW) correction methods. The recommended values of this parameter with different DFT functionals can be found on the webpage. If not set, will search in ABACUS built-in dataset based on the dft_functional keywords. User set value will overwrite the searched value.
4318
+
Damping parameter rs8 for D3(0), or a2 for D3(BJ). If not set, ABACUS loads the s-dftd3 value for dft_functional. A user value overwrites the tabulated value.
4319
4319
default_value: ""
4320
4320
unit: ""
4321
4321
availability: "vdw_method in [d3_0, d3_bj]"
@@ -4387,7 +4387,7 @@ parameters:
4387
4387
description: |
4388
4388
Determines the method used for specifying the cutoff radius in periodic systems when applying Van der Waals correction. Available options are:
4389
4389
* radius: The supercell is selected within a sphere centered at the origin with a radius defined by vdw_cutoff_radius.
4390
-
* period: The extent of the supercell is explicitly specified using the vdw_cutoff_period keyword.
4390
+
* period: The extent of the D2 supercell is explicitly specified using the vdw_cutoff_period keyword. DFT-D3 and DFT-D4 require radius.
4391
4391
default_value: radius
4392
4392
unit: ""
4393
4393
availability: ""
@@ -4417,16 +4417,16 @@ parameters:
4417
4417
A value of zero disables smoothing for the two-body contribution.
4418
4418
default_value: "0.05"
4419
4419
unit: Bohr
4420
-
availability: vdw_method==d4
4420
+
availability: "vdw_method in [d3_0, d3_bj, d4]"
4421
4421
- name: vdw_cutoff_width3
4422
4422
category: vdW correction
4423
4423
type: Real
4424
4424
description: |
4425
4425
Width of the smooth switching region for the three-body Axilrod-Teller-Muto (ATM) dispersion real-space cutoff.
4426
4426
A value of zero disables smoothing for the three-body contribution.
0 commit comments