Skip to main content

Module for reading output files of quantum chemistry codes.

Project description

resultsFile

Python interface to read output files of quantum chemistry programs

To add a module to read a new kind of output file, just add a file in the Modules directory.

Using the library

Example (resultsFile is supposed to be in your sys.path):

import resultsFile 

file = resultsFile.getFile("g09_output.log")
print('recognized as', str(file).split('.')[-1].split()[0])
print(file.mo_sets)

Constraints

Gaussian09

  • GFPRINT : Needed to read the AO basis set
  • pop=Full : Needed to read all the MOs
  • #p CAS(SlaterDet) : CAS-SCI CI coefficients

When doing a CAS with Gaussian, first do the Hartree-Fock calculation saving the checkpoint file and then do the CAS in a second calculation.

GAMESS-US

For MCSCF calculations, first compute the MCSCF single-point wave function with the GUGA algorithm. Then, put the the MCSCF orbitals (of the .dat file) in the GAMESS input file, and run a single-point GUGA CI calculation with the following keywords:

  • PRTTOL=0.0001 in the $GUGDIA group to use a threshold of 1.E-4 on the CI coefficients
  • NPRT=2 in the $CIDRT group to print the CSF expansions in terms of Slater determinants
  • PRTMO=.T. in the $GUESS group to print the molecular orbitals

Molpro (deprecated)

  • print, basis; : Needed to read the AO basis set
  • gprint,orbital; : Needed to read the MOs
  • gprint,civector; gthresh,printci=0.; : Needed to read the CI coefficients
  • orbprint : Ensures all the MOs are printed

An RHF calculation is mandatory before any MCSCF calculation, since some information is printed only the RHF section. Be sure to print all molecular orbitals using the orbprint keyword, and to use the same spin multiplicity and charge between the RHF and the CAS.

Debugging

Any module can be run as an stand-alone executable. For example:

$ resultsFile/Modules/gamessFile.py

    resultsFile version 1.0, Copyright (C) 2007 Anthony SCEMAMA
    resultsFile comes with ABSOLUTELY NO WARRANTY; for details see the
    gpl-license file.
    This is free software, and you are welcome to redistribute it
    under certain conditions; for details see the gpl-license file.

Usage:
------

resultsFile/Modules/gamessFile.py [options] file

Options:
--------

  --date                      :  When the calculation was performed.
  --version                   :  Version of the code generating the file.
  --machine                   :  Machine where the calculation was run.
  --memory                    :  Requested memory for the calculation.
  --disk                      :  Requested disk space for the calculation.
  --cpu_time                  :  CPU time.
  --author                    :  Who ran the calculation.
  --title                     :  Title of the run.
  --units                     :  Units for the geometry (au or angstroms).
  --methods                   :  List of calculation methods.
  --options                   :  Options given in the input file.
  --spin_restrict             :  Open-shell or closed-shell calculations.
  --conv_threshs              :  List of convergence thresholds.
  --energies                  :  List of energies.
  --one_e_energies            :  List of one electron energies.
  --two_e_energies            :  List of two electron energies.
  --ee_pot_energies           :  List of electron-electron potential energies.
  --Ne_pot_energies           :  List of nucleus-electron potential energies.
  --pot_energies              :  List of potential energies.
  --kin_energies              :  List of kinetic energies.
  --virials                   :  Virial ratios.
  --point_group               :  Symmetry used.
  --num_elec                  :  Number of electrons.
  --charge                    :  Charge of the system.
  --multiplicity              :  Spin multiplicity of the system.
  --nuclear_energy            :  Repulsion of the nuclei.
  --dipole                    :  Dipole moment
  --geometry                  :  Atom types and coordinates.
  --basis                     :  Basis set definition
  --mo_sets                   :  List of molecular orbitals
  --mo_types                  :  Types of molecular orbitals (canonical, natural,...)
  --mulliken_mo               :  Mulliken atomic population in each MO.
  --mulliken_ao               :  Mulliken atomic population in each AO.
  --mulliken_atom             :  Mulliken atomic population.
  --lowdin_ao                 :  Lowdin atomic population in each AO.
  --mulliken_atom             :  Mulliken atomic population.
  --lowdin_atom               :  Lowdin atomic population.
  --two_e_int_ao              :  Two electron integrals in AO basis
  --determinants              :  List of Determinants
  --num_alpha                 :  Number of Alpha electrons.
  --num_beta                  :  Number of Beta electrons.
  --closed_mos                :  Closed shell molecular orbitals
  --active_mos                :  Active molecular orbitals
  --virtual_mos               :  Virtual molecular orbitals
  --determinants_mo_type      :  MO type of the determinants
  --det_coefficients          :  Coefficients of the determinants
  --csf_mo_type               :  MO type of the determinants
  --csf_coefficients          :  Coefficients of the CSFs
  --symmetries                :  Irreducible representations
  --occ_num                   :  Occupation numbers
  --csf                       :  List of Configuration State Functions
  --num_states                :  Number of electronic states
  --two_e_int_ao_filename     :  
  --one_e_int_ao_filename     :  
  --atom_to_ao_range          :  
  --gradient_energy           :  Gradient of the Energy wrt nucl coord.
  --text                      :  
  --uncontracted_basis        :  
  --uncontracted_mo_sets      :  

Project details


Download files

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

Source Distribution

resultsFile-2.2.tar.gz (47.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

resultsFile-2.2-py3-none-any.whl (67.9 kB view details)

Uploaded Python 3

File details

Details for the file resultsFile-2.2.tar.gz.

File metadata

  • Download URL: resultsFile-2.2.tar.gz
  • Upload date:
  • Size: 47.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/50.3.2 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.0

File hashes

Hashes for resultsFile-2.2.tar.gz
Algorithm Hash digest
SHA256 36bb58b9cd11bba153caa9e6cdd1af334cdf930c09bd1420389edac4b351396c
MD5 cf0379f2383c1882f60fa687c5ff8e44
BLAKE2b-256 3d1e065f2a4a439a156605d6d5f8b4871beee0f7d9de457c393e6d44d48c3df8

See more details on using hashes here.

File details

Details for the file resultsFile-2.2-py3-none-any.whl.

File metadata

  • Download URL: resultsFile-2.2-py3-none-any.whl
  • Upload date:
  • Size: 67.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/50.3.2 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.0

File hashes

Hashes for resultsFile-2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 051a8e032902742f20c03f3e532b162473d913b14059c31319d24a8bd99a0cf0
MD5 1168be9a5e305c0433536b37f514fdc5
BLAKE2b-256 d6a5cded0b1b250c5e581621d81f16a2e005c75ee413e8b9170e835fbcfb9a73

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page