Skip to content

Instantly share code, notes, and snippets.

@hokru
Created June 30, 2021 07:42
Show Gist options
  • Save hokru/64a0d14fb2b1e69e0b5e00b10f598366 to your computer and use it in GitHub Desktop.
Save hokru/64a0d14fb2b1e69e0b5e00b10f598366 to your computer and use it in GitHub Desktop.
psi4 dft dictionary for B3LYP
molecule h2o {
0 1
O
H 1 1.0
H 1 1.0 2 104.5
}
set {
basis cc-pVDZ
}
e_ref = energy('b3lyp')
my_b3lyp = {
"name": "manual B3LYP",
"x_functionals": {
"GGA_X_B88": {"alpha": 0.72},
"LDA_X": {"alpha": 0.08 }
},
"x_hf": {
"alpha": 0.20
},
"c_functionals": {
"GGA_C_LYP": {"alpha": 0.81 },
"LDA_C_VWN_RPA": {"alpha": 0.19 }
},
"description": ' manual B3LYP example \n',
}
e = energy('scf',dft_functional=my_b3lyp)
compare_values(e_ref,e,8,'B3LYP comparison')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment