Skip to main content

OrbitalPlay: Interactive Molecular Orbital Education

Project description

OrbitalPlay

Interactive Molecular Orbital Education. Solve the Schrödinger equation for simple molecules in real-time and visualize the resulting orbitals.

📚 Full Documentation | 🚀 Interactive Tutorial

Open In Colab

What is OrbitalPlay?

OrbitalPlay is a "Visual Orbital Engine" designed to bridge the gap between abstract quantum mechanics and physical chemical intuition. It transforms complex mathematical wavefunctions into interactive 3D visualizations that students can manipulate in real-time.

Core Features

  • Interactive Playground: Move atoms and watch bonding/anti-bonding orbitals "warp" on the fly.
  • Scientific Rigor: Powered by PySCF, using the Hartree-Fock method and STO-3G basis sets to ensure accuracy.
  • Spin Visualization: Explore open-shell systems (like the ·OH radical) and see how Alpha and Beta electrons occupy different spatial regions.
  • Notebook Ready: Full integration with Jupyter and Google Colab for guided classroom discovery.

Why it Matters

Most introductory chemistry students only see static, 2D representations of orbitals in textbooks. OrbitalPlay provides a dynamic environment where the connection between molecular geometry and electronic structure becomes tangible.


Installation

pip install orbital-play

Usage

Streamlit App

Launch the main interactive dashboard:

streamlit run app.py

Python Library

Integrate the engine into your own research or educational notebooks:

from orbital_play import engine, show_orbital

# Define and calculate
geo = engine.generate_geometry("H2O", dist=0.96, angle=104.5)
mol, mf = engine.run_calculation(geo)

# Visualize the HOMO
cube = engine.generate_cube_string(mol, mf, mo_index=4)
show_orbital(mol, cube)

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

orbital_play-0.1.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

orbital_play-0.1.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file orbital_play-0.1.1.tar.gz.

File metadata

  • Download URL: orbital_play-0.1.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for orbital_play-0.1.1.tar.gz
Algorithm Hash digest
SHA256 23c7f50d40d1752e1d347f3b77f7e649033c70c3ad4bcff950486966776d93f5
MD5 e3b3c6f256865bd54b77965e660a727a
BLAKE2b-256 0bd78959c0d7b7fcbc6a60cae90286eea5a2c7b75b244489ebfea93255bee8a9

See more details on using hashes here.

File details

Details for the file orbital_play-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: orbital_play-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for orbital_play-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0fac135c9cd9f8cfb5355a734f830bcca4dfeb0f3158e9f821d4d75d0270c5f9
MD5 6054178958f3c0b190ba90f3678044c8
BLAKE2b-256 5ae002a20120745c10804ff70a364365438a8ce5bc674a31af4ea255f4300041

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