-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stress tensor terms with 2nd order Laplace functionals (#2037)
* Add stress tensors with analytical 2nd derivatives for Laplace dependent functionals * Refactor weights for numerical derivatives * Add virial Laplace terms first order * Continue with Laplace numer 2nd * Fix leaks and add regtests
- Loading branch information
Showing
19 changed files
with
813 additions
and
405 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
H2O_tpss_mp2.inp 11 4e-09 -17.159885409905911 | ||
H2O_tpss_mp2.inp 11 4e-09 -17.159885409843870 | ||
CH_tpss_mp2.inp 11 5e-09 -7.570243568596605 | ||
#EOF |
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
86 changes: 86 additions & 0 deletions
86
tests/QS/regtest-double-hybrid-stress-laplace/CH3_br89_mp2_an.inp
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,86 @@ | ||
&GLOBAL | ||
PROJECT CH3_br89_mp2 | ||
PRINT_LEVEL LOW | ||
RUN_TYPE ENERGY_FORCE | ||
&TIMINGS | ||
THRESHOLD 0.01 | ||
&END | ||
&END GLOBAL | ||
&FORCE_EVAL | ||
METHOD Quickstep | ||
STRESS_TENSOR ANALYTICAL | ||
&FORCES | ||
&END FORCES | ||
&STRESS_TENSOR | ||
COMPONENTS | ||
&END STRESS_TENSOR | ||
&END | ||
&DFT | ||
BASIS_SET_FILE_NAME GTH_BASIS_SETS | ||
BASIS_SET_FILE_NAME HFX_BASIS | ||
POTENTIAL_FILE_NAME POTENTIAL | ||
&MGRID | ||
CUTOFF 50 | ||
REL_CUTOFF 20 | ||
&END MGRID | ||
&QS | ||
METHOD GPW | ||
EPS_DEFAULT 1.0E-10 | ||
&END QS | ||
&SCF | ||
SCF_GUESS ATOMIC | ||
EPS_SCF 1.0E-5 | ||
MAX_SCF 100 | ||
&END SCF | ||
&XC | ||
# Not a very useful functional, just for testing | ||
&XC_FUNCTIONAL | ||
&MGGA_X_BR89 | ||
&END | ||
&END XC_FUNCTIONAL | ||
&WF_CORRELATION | ||
&RI_MP2 | ||
BLOCK_SIZE 1 | ||
EPS_CANONICAL 0.1 | ||
FREE_HFX_BUFFER .TRUE. | ||
&END RI_MP2 | ||
&INTEGRALS | ||
&WFC_GPW | ||
CUTOFF 20 | ||
REL_CUTOFF 6 | ||
&END WFC_GPW | ||
&END INTEGRALS | ||
MEMORY 500.0 | ||
NUMBER_PROC 1 | ||
&END | ||
&END XC | ||
UKS | ||
MULTIPLICITY 2 | ||
&END DFT | ||
&SUBSYS | ||
&CELL | ||
ABC [angstrom] 5.0 5.0 5.0 | ||
&END CELL | ||
&KIND H | ||
BASIS_SET SZV-GTH | ||
BASIS_SET RI_AUX RI_DZVP-GTH | ||
POTENTIAL GTH-HF-q1 | ||
&END KIND | ||
&KIND C | ||
BASIS_SET SZV-GTH | ||
BASIS_SET RI_AUX RI_DZVP-GTH | ||
POTENTIAL GTH-HF-q4 | ||
&END KIND | ||
&COORD | ||
C 0.000 0.000 0.300 | ||
H 0.000 1.173 0.000 | ||
H 0.929 -0.536 0.000 | ||
H -0.929 -0.536 0.000 | ||
&END COORD | ||
&TOPOLOGY | ||
&CENTER_COORDINATES | ||
&END | ||
&END TOPOLOGY | ||
&END SUBSYS | ||
&END FORCE_EVAL |
90 changes: 90 additions & 0 deletions
90
tests/QS/regtest-double-hybrid-stress-laplace/H2O_br89_mp2_an.inp
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,90 @@ | ||
&GLOBAL | ||
PROJECT H2O_br89_mp2 | ||
PRINT_LEVEL LOW | ||
RUN_TYPE ENERGY_FORCE | ||
&END GLOBAL | ||
&FORCE_EVAL | ||
METHOD Quickstep | ||
STRESS_TENSOR ANALYTICAL | ||
&FORCES | ||
&END FORCES | ||
&STRESS_TENSOR | ||
COMPONENTS | ||
&END STRESS_TENSOR | ||
&END | ||
&DFT | ||
BASIS_SET_FILE_NAME GTH_BASIS_SETS | ||
BASIS_SET_FILE_NAME HFX_BASIS | ||
POTENTIAL_FILE_NAME POTENTIAL | ||
&MGRID | ||
CUTOFF 200 | ||
REL_CUTOFF 30 | ||
&END MGRID | ||
&QS | ||
METHOD GPW | ||
EPS_DEFAULT 1.0E-10 | ||
&END QS | ||
&SCF | ||
SCF_GUESS ATOMIC | ||
EPS_SCF 1.0E-6 | ||
MAX_SCF 100 | ||
&RESTART OFF | ||
&END | ||
&END | ||
&END SCF | ||
&XC | ||
# Not a very useful functional, just for testing | ||
&XC_FUNCTIONAL | ||
&MGGA_X_BR89 | ||
&END | ||
&END XC_FUNCTIONAL | ||
&WF_CORRELATION | ||
&RI_MP2 | ||
BLOCK_SIZE 1 | ||
EPS_CANONICAL 0.0001 | ||
FREE_HFX_BUFFER .TRUE. | ||
&CPHF | ||
EPS_CONV 1.0E-4 | ||
MAX_ITER 30 | ||
&END | ||
&END | ||
&INTEGRALS | ||
&WFC_GPW | ||
CUTOFF 25 | ||
REL_CUTOFF 10 | ||
EPS_FILTER 1.0E-6 | ||
EPS_GRID 1.0E-6 | ||
&END WFC_GPW | ||
&END INTEGRALS | ||
MEMORY 1.00 | ||
NUMBER_PROC 1 | ||
&END | ||
&END XC | ||
&END DFT | ||
&SUBSYS | ||
&CELL | ||
ABC [angstrom] 3.5 3.5 3.5 | ||
&END CELL | ||
&KIND H | ||
BASIS_SET SZV-GTH | ||
BASIS_SET RI_AUX RI_DZVP-GTH | ||
POTENTIAL GTH-PBE-q1 | ||
&END KIND | ||
&KIND O | ||
BASIS_SET SZV-GTH | ||
BASIS_SET RI_AUX RI_DZVP-GTH | ||
POTENTIAL GTH-PBE-q6 | ||
&END KIND | ||
&COORD | ||
O 0.000000 0.000000 -0.211000 | ||
H 0.000000 -0.844000 0.495000 | ||
H 0.000000 0.744000 0.495000 | ||
&END | ||
&TOPOLOGY | ||
&CENTER_COORDINATES | ||
&END | ||
&END TOPOLOGY | ||
&END SUBSYS | ||
&END FORCE_EVAL |
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,3 @@ | ||
H2O_br89_mp2_an.inp 31 2E-5 2.55476623536E+01 | ||
CH3_br89_mp2_an.inp 31 3e-04 -2.03435661393E+00 | ||
#EOF |
89 changes: 89 additions & 0 deletions
89
tests/QS/regtest-double-hybrid-stress-numer-laplace/CH3_br89_mp2_numer.inp
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,89 @@ | ||
&GLOBAL | ||
PROJECT CH3_br89_mp2_numer | ||
PRINT_LEVEL LOW | ||
RUN_TYPE ENERGY_FORCE | ||
&TIMINGS | ||
THRESHOLD 0.01 | ||
&END | ||
&END GLOBAL | ||
&FORCE_EVAL | ||
METHOD Quickstep | ||
STRESS_TENSOR ANALYTICAL | ||
&FORCES | ||
&END FORCES | ||
&STRESS_TENSOR | ||
COMPONENTS | ||
&END STRESS_TENSOR | ||
&END | ||
&DFT | ||
BASIS_SET_FILE_NAME GTH_BASIS_SETS | ||
BASIS_SET_FILE_NAME HFX_BASIS | ||
POTENTIAL_FILE_NAME POTENTIAL | ||
&MGRID | ||
CUTOFF 50 | ||
REL_CUTOFF 20 | ||
&END MGRID | ||
&QS | ||
METHOD GPW | ||
EPS_DEFAULT 1.0E-10 | ||
&END QS | ||
&SCF | ||
SCF_GUESS ATOMIC | ||
EPS_SCF 1.0E-5 | ||
MAX_SCF 100 | ||
&END SCF | ||
&XC | ||
2ND_DERIV_ANALYTICAL .FALSE. | ||
STEP_SIZE 1.0E-2 | ||
NSTEPS 1 | ||
# Not a very useful functional, just for testing | ||
&XC_FUNCTIONAL | ||
&MGGA_X_BR89 | ||
&END | ||
&END XC_FUNCTIONAL | ||
&WF_CORRELATION | ||
&RI_MP2 | ||
BLOCK_SIZE 1 | ||
EPS_CANONICAL 0.1 | ||
FREE_HFX_BUFFER .TRUE. | ||
&END RI_MP2 | ||
&INTEGRALS | ||
&WFC_GPW | ||
CUTOFF 20 | ||
REL_CUTOFF 6 | ||
&END WFC_GPW | ||
&END INTEGRALS | ||
MEMORY 500.0 | ||
NUMBER_PROC 1 | ||
&END | ||
&END XC | ||
UKS | ||
MULTIPLICITY 2 | ||
&END DFT | ||
&SUBSYS | ||
&CELL | ||
ABC [angstrom] 5.0 5.0 5.0 | ||
&END CELL | ||
&KIND H | ||
BASIS_SET SZV-GTH | ||
BASIS_SET RI_AUX RI_DZVP-GTH | ||
POTENTIAL GTH-HF-q1 | ||
&END KIND | ||
&KIND C | ||
BASIS_SET SZV-GTH | ||
BASIS_SET RI_AUX RI_DZVP-GTH | ||
POTENTIAL GTH-HF-q4 | ||
&END KIND | ||
&COORD | ||
C 0.000 0.000 0.300 | ||
H 0.000 1.173 0.000 | ||
H 0.929 -0.536 0.000 | ||
H -0.929 -0.536 0.000 | ||
&END COORD | ||
&TOPOLOGY | ||
&CENTER_COORDINATES | ||
&END | ||
&END TOPOLOGY | ||
&END SUBSYS | ||
&END FORCE_EVAL |
Oops, something went wrong.