-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing bug in FB and adding Fgamma-cached variant of repulsion integr…
…al evaluation
- Loading branch information
Showing
9 changed files
with
297 additions
and
163 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from pyqint import Molecule, HF, COHP, FosterBoys | ||
import numpy as np | ||
|
||
d = 1.145414 | ||
mol = Molecule() | ||
mol.add_atom('C', 0.0, 0.0, -d/2, unit='angstrom') | ||
mol.add_atom('O', 0.0, 0.0, d/2, unit='angstrom') | ||
|
||
res = HF().rhf(mol, 'sto3g') | ||
cohp = COHP(res).run(res['orbc'], 0, 1) | ||
|
||
resfb = FosterBoys(res).run(nr_runners=10) | ||
cohp_fb = COHP(res).run(resfb['orbc'], 0, 1) | ||
|
||
print('COHP values of canonical Hartree-Fock orbitals') | ||
for i,(e,chi) in enumerate(zip(res['orbe'], cohp)): | ||
print('%3i %12.4f %12.4f' % (i+1,e,chi)) | ||
print() | ||
|
||
print('COHP values after Foster-Boys localization') | ||
for i,(e,chi) in enumerate(zip(resfb['orbe'], cohp_fb)): | ||
print('%3i %12.4f %12.4f' % (i+1,e,chi)) | ||
print() | ||
|
||
print('Sum of COHP coefficient canonical orbitals: ', np.sum(cohp[:7])) | ||
print('Sum of COHP coefficient Foster-Boys orbitals: ', np.sum(cohp_fb[:7])) | ||
print('Result FB: ', resfb['r2start'], resfb['r2final']) |
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,6 +1,6 @@ | ||
package: | ||
name: "pyqint" | ||
version: "0.13.0.0" | ||
version: "0.13.1.0" | ||
|
||
source: | ||
path: . | ||
|
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,2 +1,2 @@ | ||
__version__ = "0.14.0.0" | ||
__version__ = "0.13.1.0" | ||
|
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
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
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
Oops, something went wrong.