GlobalChem: Your Chemical Knowledge Graph
  • Welcome to the GlobalChem Documentation!
  • Quick Start
  • Extensions
  • API
    • GlobalChem
    • Graph Algorithm
  • Mother Nature
    • Mother Nature Commands
    • Discord Roles
  • Cheminformatics
    • SMILES Validation
    • Decoding Fingeringprints and SMILES to IUPAC
    • SMILES to PDF And Back
    • Drug Design Filters
    • Deep Layer Scatter
    • Identifier SMARTS
    • Protonating SMILES
    • Sunbursting SMILES
    • Visualizing SMARTS
    • One-Hot Encoding SMILES
    • Principal Component Analysis SMILES
    • GlobalChem Graph to Networkx Graph
    • Amino Acid Sequence to SMILES
    • Scaffold Graph Adapter
  • Bioinformatics
    • GlobalChem Protein
    • GlobalChem RNA
    • GlobalChem DNA
    • GlobalChem Bacteria
    • GlobalChem Monoclonal Antibody
  • Quantum Chemistry
    • Z-Matrix Store
    • Psi4Parser & Orbital Visualizer
  • ForceFields
    • GlobalChem Molecule
    • CGenFF Molecule
    • GAFF2 Molecule
    • CGenFF Dissimilarity Score
  • Development Operations
    • Open Source Database Monitor
  • Graphing Templates
    • Plotly
Powered by GitBook
On this page
  1. Quantum Chemistry

Psi4Parser & Orbital Visualizer

from global_chem_extensions import GlobalChemExtensions

gc = GlobalChemExtensions().quantum_chemistry()

Initialize the Parser

parser = gc.get_psi4_parser()

Read in a Psi4 Out File

parser = parser(input_file='test.out')

Extract Energy Values

The parser get's main energetic terms from the psi4 out file while excluding other things that are probably not needed.

parser.get_energy_contributions()
{
   'nuclear_repulsion_energy': 9.353841051132276, 
   'one_electron_energy': -123.40409212008015, 
   'two_electron_energy': 37.99248795110696, 
   'total_energy': -76.05776311784092
}

Extract Dipole Moments

Extract the Dipole Moments in their relative x, y, and z-axis.

parser.get_dipole_contributions()
{
   'nuclear_dipole_moment': ['0.0000', '0.0000', '0.9422'], 
   'electronic_dipole_moment': ['0.0000', '0.0000', '-0.1602'],
  'dipole_moment_atomic_units': ['0.0000', '0.0000', '0.7821', '0.7821'], 
   'dipole_moment_debye': ['0.0000', '0.0000', '1.9878', '1.9878']
}

Extract Frequencies

If the frequencies or the harmonics were run then the parser is able to handle extracting all the modes both real and not. Psi4 usually only shows the IR active modes and truncates the rest.

parser.get_frequencies()
['0.0000i', '0.0000i', '0.0000', '0.0000', '0.0000', '0.0001', '1752.9915', '4127.2470', '4227.2071']

Visualize Cube Files

Visualize the cube prop files using moly to get a look at the HOMO/LUMO of your molecule

parser.moly_plot_molecular_orbital(
    'Psi_a_1_1-A1.cube'
)
PreviousZ-Matrix StoreNextGlobalChem Molecule

Last updated 3 years ago