molecular_modeling
k-yoshimi / molecular_modeling
ボロノイセル最適化で分子配向を決定し、QE・VASP・CIF 形式の構造ファイルを出力する ASE ベースの分子モデリングツールキット
概要
(説明は未登録です)
典型的な利用シーン
- 分子を含むスーパーセルを構築し、第一原理計算の入力構造を作りたい
README
Molecular Modeling Toolkit
日本語版 README はこちら (README_ja.md)
A molecular modeling toolkit built on ASE (Atomic Simulation Environment) with Voronoi cell optimization. Reads TOML-based molecular definitions, builds supercells, optimizes molecular orientations via Voronoi IoU maximization, and exports structure files in QE / VASP / CIF formats.
Features
- Supercell Construction: Build ASE
Atomsobjects from TOML configuration with replication and substitution support - Voronoi Optimization: Determine molecular orientations by maximizing Voronoi cell IoU via Euler angle grid search
- Structure File Export: Quantum ESPRESSO (
qe.in), VASP (POSCAR,INCAR,KPOINTS), and CIF formats - 3D Visualization: Generate Voronoi cell overlay images with matplotlib
- GUI: Interactive molecular modeling interface based on tkinter (ASE-GUI extension)
Setup
Requires Python 3.11 or later.
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -e .
For development (testing and documentation):
pip install -e ".[dev]"
Usage
Run all commands from the repository root.
CLI — Pipeline Execution
python run.py
Pipeline flow:
- Read
input/input.toml+data/*.tomland build ASEAtoms - Optimize molecular orientations by maximizing Voronoi cell IoU
- Save Voronoi cell overlay images to
voronoi_pngs/ - Export structure files to
structure_out/
GUI — Interactive Interface
python molecular_modeling_gui.py
Documentation
Tests
pytest # all tests
pytest -m "not slow" # skip slow tests
pytest tests/test_voronoi_geom.py # single file
Repository Structure
molecular_modeling/ <- repository root
├── README.md <- this file (English)
├── README_ja.md <- Japanese README
├── LICENSE <- LGPL-2.1-or-later
├── .github/workflows/ <- CI (GitHub Actions)
├── pyproject.toml <- dependencies and build config
├── run.py <- CLI entry point
├── molecular_modeling_gui.py <- GUI entry point
├── source/ <- main package (= molecular_modeling)
│ ├── main.py <- main pipeline
│ ├── voronoi_geom.py <- Voronoi geometry
│ ├── build_system_from_toml.py
│ ├── optimize_voronoi_overlap.py
│ ├── render_voronoi_overlays.py
│ ├── write_structure.py
│ └── gui/ <- GUI modules
├── input/ <- runtime config (input.toml)
├── data/ <- molecule definitions (*.toml)
├── tests/ <- test suite
├── docs/ <- documentation (Sphinx / PDF)
├── structure_out/ <- output: structure files
└── voronoi_pngs/ <- output: visualization images
License
This project is licensed under the GNU Lesser General Public License v2.1 or later (LGPL-2.1-or-later).
See LICENSE for details.
出典: https://github.com/k-yoshimi/molecular_modeling の README
充実度
充実度 = ドキュメント(docs)・サンプル(examples)・テスト(tests)の3項目の整備状況を★3で表示します(1星=1項目/下のチェックリストが内訳)。リポジトリ情報を取得していない(手動で登録した)ソフトウェアは自動評価の対象外で、充実度の絞り込み(1 以上)では表示されません。
- あり: README
- あり: LICENSE
- あり: docs
- なし: examples
- あり: tests
- なし: CITATION
- なし: release
情報
- 主要言語
- Python
- 言語
- Python
- ライセンス
- LGPL-2.1
- 提供元
- github