EX1: Topology of Electron DensityΒΆ

Compute critical points and visualize it for cyclobutadiene.

../../_images/sphx_glr_ex001_top_plot_001.png
from chemtools import Molecule, UniformGrid, TopologicalTool

# 1. Build Topology model

mol = Molecule.from_file('c4h4.fchk')
cub = UniformGrid.from_molecule(mol, spacing=0.1, extension=0.1, rotate=False)
top = TopologicalTool.from_molecule(mol, points=cub.points)

# 2. Generate vmd script: fname.vmd
#    To visualize the iso-surface, use command: $ vmd -e fname.vmd

top.generate_scripts('c4h4.vmd')

Total running time of the script: ( 0 minutes 28.828 seconds)

Generated by Sphinx-Gallery