TanabeSugano
A python-solver for Tanabe-Sugano and energy-correlation diagrams
Install / Use
/learn @Anselmoo/TanabeSuganoREADME
🔬 TanabeSugano
A Python-based Eigensolver for Tanabe-Sugano & Energy-Correlation Diagrams
Interactive visualization of d-orbital splitting in transition metal complexes
📊 Build & Quality
📦 Package Info
📚 Resources
🚀 Quick Start • ✨ Features • 📖 Documentation • 🎨 Examples • 🤝 Contributing
</div>📋 Table of Contents
- Overview
- Quick Start
- Features
- Usage
- Examples
- Interactive Diagrams
- Scientific Background
- Contributing
- Citation
- License
🌟 Overview
TanabeSugano is a comprehensive Python package for calculating and visualizing Tanabe-Sugano and Energy-Correlation diagrams for d<sup>2</sup>-d<sup>8</sup> transition metal ions. Based on the pioneering work of Yukito Tanabe and Satoru Sugano, this tool provides both computational accuracy and interactive visualization capabilities.
Why TanabeSugano?
- 🎯 Accurate Calculations - Based on rigorous quantum mechanical principles
- 📊 Beautiful Visualizations - Generate publication-quality diagrams
- 🔄 Interactive Exploration - Explore diagrams with Plotly integration
- 🚀 Easy to Use - Simple CLI and Python API
- 📱 Cloud-Ready - Run in Google Colab or locally
🚀 Quick Start
Installation
Choose your preferred installation method:
# 📦 Install from PyPI (recommended)
pip install TanabeSugano
# 🔧 Install with interactive plotting support
pip install TanabeSugano[plotly]
# 🌐 Install from GitHub (latest development version)
pip install git+https://github.com/Anselmoo/TanabeSugano.git
Basic Usage
Generate a Tanabe-Sugano diagram in seconds:
# Generate diagram for d6 configuration
tanabesugano -d 6
# Customize parameters
tanabesugano -d 6 -Dq 8000 -B 860 1.0 -C 3850 1.0
✨ Features
<table> <tr> <td width="50%">📊 Visualization
- Static Plots via Matplotlib
- Interactive Diagrams via Plotly
- Export Formats: PNG, HTML, TXT
- Publication-Ready output quality
⚙️ Calculations
- Eigen-Energies for all term symbols
- Customizable Parameters: B, C ratios
- Slater-Condon Parameters: F², F⁴
- Crystal Field Splitting: 10Dq control
🎯 Supported Systems
- d² through d⁸ configurations
- Octahedral complexes
- Atomic term symbols
- Energy correlations
📤 Export Options
- Tables via PrettyTable
- Diagrams as images or HTML
- Data as text files
- Interactive HTML exports
📖 Usage
Command Line Interface
<details> <summary>🔧 <strong>View all CLI options</strong></summary>tanabesugano --help
usage: __main__.py [-h] [-d D] [-Dq DQ] [-cut CUT] [-B B B] [-C C C] [-n N]
[-ndisp] [-ntxt] [-slater]
optional arguments:
-h, --help show this help message and exit
-d D Number of unpaired electrons (default d5)
-Dq DQ 10Dq crystal field splitting (default 10Dq = 8065 cm-)
-cut CUT 10Dq crystal field splitting (default 10Dq = 8065 cm-)
-B B B Racah Parameter B and the corresponding reduction (default B = 860 cm- * 1.)
-C C C Racah Parameter C and the corresponding reduction (default C = 4.477*860 cm- * 1.)
-n N Number of roots (default nroots = 500)
-ndisp Plot TS-diagram (default = on)
-ntxt Save TS-diagram and dd energies (default = on)
-slater Using Slater-Condon F2,F4 parameter instead Racah-Parameter B,C (default = off)
-v, --version Print version number and exit
-html Save TS-diagram and dd energies (default = on)
</details>
Python API
from tanabesugano import TanabeSugano
# Create a d6 configuration
ts = TanabeSugano(d=6, Dq=8065, B=860, C=3850)
# Generate and display diagram
ts.plot()
# Export to HTML for interactive use
ts.export_html('d6_diagram.html')
🎨 Examples
Static Matplotlib Plot
High-quality diagram for d<sup>6</sup> configuration with B = 860 cm⁻¹ and C = 3850 cm⁻¹:
<div align="center">
Figure: Tanabe-Sugano diagram showing energy levels as a function of crystal field strength
</div>Interactive Plotly Visualization
Interactive diagram for d<sup>6</sup> with Slater-Condon parameters F² = 1065 cm⁻¹ and F⁴ = 5120 cm⁻¹:
<div align="center">
Figure: Interactive diagram with hover tooltips and zoom capabilities
</div>🌐 Interactive Diagrams
✨ NEW: Explore all Tanabe-Sugano diagrams online!
All diagrams (d² through d⁸) are now available on our interactive GitHub Pages site with full Plotly integration:
<div align="center">🔗 View Interactive Diagrams →
No installation required - just click and explore!
</div>📚 Scientific Background
This implementation is based on the seminal work of Yukito Tanabe and Satoru Sugano:
📄 Original Publications
<details> <summary><strong>📖 Paper I: Absorption Spectra of Complex Ions</strong></summary>Authors: Yukito Tanabe, Satoru Sugano
Journal: Journal of the Physical Society of Japan, Vol. 9, pp. 753-766 (1954)
DOI: 10.1143/JPSJ.9.753
Link: https://journals.jps.jp/doi/10.1143/JPSJ.9.753
Authors: Yukito Tanabe, Satoru Sugano
Journal: Journal of the Physical Society of Japan, Vol. 9, pp. 766-779 (1954)
DOI: 10.1143/JPSJ.9.766
Link: https://journals.jps.jp/doi/10.1143/JPSJ.9.766
Authors: Yukito Tanabe, Satoru Sugano
Journal: Journal of the Physical Society of Japan, Vol. 11, pp. 864-877 (1956)
DOI: 10.1143/JPSJ.11.864
Link: https://journals.jps.jp/doi/10.1143/JPSJ.11.864
🤝 Contributing
We welcome contributions! Whether you're fixing bugs, adding features, or improving documentation, your help is appreciated.
- 📖 Read our Contributing Guide
- 🐛 Report issues on GitHub Issues
- 💡 Suggest features or improvements
- 🔧 Submit pull requests
📝 Citation
If you use TanabeSugano in your research, please cite:
@software{tanabesugano,
author = {Anselm Hahn},
title = {TanabeSugano: Python-based Eigensolver for Tanabe-Sugano Diagrams},
year = {2024},
publisher = {Zenodo},
doi = {10.5281/zenodo.206847682},
url = {https://github.com/Anselmoo/TanabeSugano}
}
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
<div align="center">
Made with ❤️ for the scientific community
⭐ Star us on GitHub — it helps!
</div>Related Skills
claude-opus-4-5-migration
109.8kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
349.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
51.0k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.8kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
