Skip to main content

pygamess is a GAMESS wrapper for Python

Requirements

  • Python 2.6 or later (not support 3.x)

  • openbabel 2.3

  • GAMESS (and rungms script)

Features

  • nothing

Setup

$ easy_install pygamess

Basic Usage

single point calculation with pybel

>>> from pygamess import Gamess
>>> import pybel
>>> g = Gamess()
>>> mol = pybel.readstring('smi','C=C')
>>> mol.make3D()
>>> optimized_mol = g.run(mol)
>>> optimized_mol.energy
-77.0722784993

single point calculation with openbabel

>>> import pygamess
>>> g = pygamess.Gamess()
>>> import openbabel as ob
>>> obc = ob.OBConversion()
>>> obc.SetInFormat("mol")
True
>>> mol = ob.OBMol()
>>> obc.ReadFile(mol, "examples/ethane.mol")
True
>>> try:
...     newmol = g.run(mol)
... except GamessError, gerr:
...     print gerr.value
...
>>> newmol.GetEnergy()
-78.305307479999996

optimize calculation with pybel

set run_type:

>>> from pygamess import Gamess
>>> import pybel
>>> g = Gamess()
>>> g.run_type('optimize')
>>> mol = pybel.readstring('smi','C')
>>> mol.make3D()
>>> optimized_mol = g.run(mol)
>>> optimized_mol.energy
-37.0895866208

>>> g.run_type('optimize')
>>> optimized_mol = g.run(mol)
>>> optimized_mol.GetEnergy()
-78.306179642000004

changing basis-sets

basis_type method:

>>> g.run_type('energy')
>>> g.basis_type('sto3g')
{'gbasis': 'sto', 'ngauss': '3'}
>>> mol_sto3g = g.run(mol)
>>> mol_sto3g.GetEnergy()
-78.305307479999996
>>> g.basis_type('631g')
{'gbasis': 'N31', 'ndfunc': '1', 'ngauss': '6'}
>>> mol_631g = g.run(mol)
>>> mol_631g.GetEnergy()
-79.228127109699997
>>> g.basis_type('631gdp')
{'gbasis': 'N31', 'ndfunc': '1', 'npfunc': '1', 'ngauss': '6'}
>>> mol_631gdp = g.run(mol)
>>> mol_631gdp.GetEnergy()
-79.237634701499999

or edit property of Gamess instance:

>>> g.basis = {'gbasis': 'sto', 'ngauss': '3'}
>>> mol_sto3g = g.run(mol)
>>> mol_sto3g.GetEnergy()
-78.305307479999996

print GAMESS INPUT

use gamess_input method

History

0.2.1 (2012-03-23)

  • bug fixed (multiplicity setting for pybel)

  • bug fixed (print error when rungms exec failed)

  • added document

0.2.0 (2012-03-06)

  • run method can accept OBMol and Pybel-Molecule object

0.1.2 (2011-09-23)

  • added CIS method (and optimization)

0.1.1 (2011-08-06)

  • updated document

  • semiempical method (AM1, PM3, MNDO)

  • added statpt option

  • changed default error print (10 lines)

0.1 (2011-6-25)

  • first release

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygamess-0.2.1.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file pygamess-0.2.1.tar.gz.

File metadata

  • Download URL: pygamess-0.2.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pygamess-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5c95c033ea29e481e078c3bc2e5229e9fc4597a813617c1c924957cdc6be0d0d
MD5 3f29ffd0d6df9d5c02597d8e733e7a89
BLAKE2b-256 1831b3433a02fdbd85206d214a219d1e9f389af0dab8701c8d8983592150df24

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.9

1 file

0.6.8

1 file

0.6.7

1 file

0.6.6

1 file

0.6.5

1 file

0.6.4

2 files

0.6.3

2 files

0.6.2

3 files

0.6.1

2 files

0.6.0

2 files

0.5.0

3 files

0.4.1.1

1 file

0.4.1

1 file

0.4.0

1 file

0.3.0

1 file

0.2.2

1 file

This release

0.2.1 This release

1 file

0.2.0

1 file

0.1.2

1 file

0.1.1

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page