Skip to content

Instantly share code, notes, and snippets.

View hokru's full-sized avatar
💩

Holger Kruse hokru

💩
View GitHub Profile
Start 224: dectests/decmp2_energy
1/68 Test #224: dectests/decmp2_energy ............***Failed 2.48 sec
Start 225: dectests/decmp2_density
2/68 Test #225: dectests/decmp2_density ........... Passed 4.22 sec
Start 226: dectests/decmp2_gradient
3/68 Test #226: dectests/decmp2_gradient .......... Passed 6.13 sec
Start 227: dectests/decmp2_geoopt
4/68 Test #227: dectests/decmp2_geoopt ............ Passed 13.49 sec
Start 228: dectests/fullmp2_energy
5/68 Test #228: dectests/fullmp2_energy ........... Passed 2.68 sec
@hokru
hokru / psi4ex.py
Created January 25, 2017 07:10
extracts molden log file from psi4 optimizations.
#!/usr/bin/python
import sys
"""
usage: psi4ex.py <psi4 output>
writes optimization log file (xyz, energy, grms) suitable for molden.
Can be used for quickly checking running jobs
"""
spherical
! new AutoAux feature from ORCA 4.0
! requested C-type fitting basis
!orca.out
****
I 0
S 1 1.00
43865.396517408801 1.000000000000
S 1 1.00
24369.664731893801 1.000000000000
@hokru
hokru / big.xyz
Created November 14, 2017 18:28
test molecule
390
C -13.45899960 -2.60400010 -6.30700020
H -13.88599970 -1.89500000 -5.59700010
O -13.15600010 -3.75399990 -5.56500010
C -11.75599960 -3.65800000 -5.10200020
H -11.61100010 -3.66500000 -4.02199980
N -10.85499950 -4.71799990 -5.69299980
C -11.19999980 -5.35900020 -6.85500000
H -12.22299960 -5.28499980 -7.19199990
@hokru
hokru / hfenergy_psi4.in
Created January 16, 2018 13:32
learning psi4 and python
import psi4
import numpy as np
h2o = psi4.geometry("""
symmetry c1
O
H 1 0.96
H 1 0.96 2 104.5
""")
@hokru
hokru / pbe0-dh_orca.ref
Created February 2, 2018 14:24
pbe0-dh test psi4-orca
*****************
* O R C A *
*****************
--- An Ab Initio, DFT and Semiempirical electronic structure package ---
#######################################################
# -***- #
# Department of molecular theory and spectroscopy #
def build_dsd_pbep86_superfunctional(name, npoints, deriv, restricted):
# Call this first
sup = core.SuperFunctional.blank()
sup.set_max_points(npoints)
sup.set_deriv(deriv)
# => User-Customization <= #
# No spaces, keep it short and according to convention
@hokru
hokru / fmo.in
Last active April 25, 2018 07:36
fragment MO guess for PSI4
# C1/RHF example of a fragment MO guess for the water dimer
#
molecule wat {
symmetry c1
no_reorient
O -1.769142 -0.076181 -0.000000
H -2.065745 0.837492 0.000000
H -0.809034 0.001317 -0.000000
--
@hokru
hokru / cube_el.py
Created October 25, 2018 14:28
integrates density from a cube file (usually not a good idea!)
#!/usr/bin/env python
import sys
import numpy as np
cubefile = sys.argv[1]
f = open(cubefile, 'r')
line = f.next()
line = f.next()
line = f.next()
@hokru
hokru / mb16_35.in
Created May 24, 2019 09:18
psi4 input to run reaction energy calculation for molecule 35 of the MB16-43 benchmark set
molecule H2 {
H 0.0000000 0.0000000 -0.3717625
H 0.0000000 0.0000000 0.3717625
}
molecule LIH {
Li 0.0000000 0.0000000 -0.7979820
H 0.0000000 0.0000000 0.7979820
}