Skip to main content

A formal validation toolkit calculating Many-Body Dispersion bounds connecting geometric theorems derived in Lean.

Project description

MBD Framework: Many-Body Dispersion Computations

mbd-framework is a computational toolkit that calculates precise Many-Body Dispersion (MBD) scaling bounds and Tkatchenko-Scheffler (TS) screening parameters. It acts as the numerical bridge between formal mathematical proofs (derived in Lean 4) and first-principles quantum chemistry computations (powered by PySCF).


🚀 Installation

Install the framework globally via PyPI:

pip install mbd-framework

💻 Quick Start & Command Line Tools

Once installed, the framework provides three native command-line tools to instantly run calculations on your molecular targets:

1. Extract Atomic Density Bounds (mbd-compute)

Run background PySCF calculations to extract absolute finite-field Cartesian dipole tensors, compute precise atomic polarizabilities ($\alpha$), and map them to the universal TS scaling parameter $x = V_{\text{Bohr}} / \alpha$. The results are safely checkpointed into a local database.json.

# Example: Extract the bounds for Benzene using the aug-cc-pVDZ basis set
mbd-compute --molecule Benzene --basis aug-cc-pVDZ

Supported molecules: Benzene, Naphthalene, Ice, He, Ne, Xe

2. Simulate Crystal Dispersion (mbd-crystal)

Generate a structurally symmetric 7x7x7 Cartesian atomic lattice array (thousands of interacting pairs) to compute the macroscopic isotropic dispersion grid ($C_{6} \cdot \varepsilon^{-x} / R^{6}$) against your extracted bounds, yielding total empirical lattice energies in kJ/mol.

# Example: Simulate Benzene dispersion scaling in a vacuum (epsilon = 1.0)
mbd-crystal --target Benzene --epsilon 1.0

3. SERS Mathematical Equivalence (mbd-sers)

A strict numerical checking endpoint that compares the macroscopic structural Surface-Enhanced Raman Scattering (SERS) exponential quenching envelope ($\exp(-\rho)$) against the framework's intrinsic MBD interacting boundaries ($\varepsilon^{-x}$).

# Example: Test SERS equivalence for Benzene
mbd-sers --target Benzene --epsilon 2.0

🛠 Features at a Glance

  • Strictly Typed Physics: The extraction pipeline explicitly intercepts non-converged PySCF Hartree-Fock instabilities, ensuring only physically valid, positive $\alpha$ states pass through.
  • Automated Checkpointing: Computations automatically stack results into a local database.json to prevent losing time-intensive finite-field SCF runs.
  • Seamless Academic Pipeline: Numerically validates mathematical limit theorems bounding dispersion properties for large-scale Molecular Crystals.

For detailed physics explanations, API structures, and Lean 4 formal mathematical proofs, please visit the main academic repository at GitHub: MBD-Theoretical-Framework.

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

mbd_framework-1.0.2.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

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

mbd_framework-1.0.2-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file mbd_framework-1.0.2.tar.gz.

File metadata

  • Download URL: mbd_framework-1.0.2.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for mbd_framework-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b1e0eaa5e39afd7fb24546101b4f9ad27ffcc44b77c6b8299e0e9a7eb844fdff
MD5 261303ecf69c3e05b75a3021af3ff076
BLAKE2b-256 0cd7d9db4b221a4791b8e8a40d69430ca491480e7b36c4f587452d885f5ec782

See more details on using hashes here.

File details

Details for the file mbd_framework-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: mbd_framework-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for mbd_framework-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3d8ca53e53be1b8e4a1a6bbaa7586f299b828c36f644ba239d27eb84ecec4a9d
MD5 4071c380650fe4dbd6e017e6ca6e4862
BLAKE2b-256 86e0d7ea668e8d5afc3c5e6fdf5aa510bb7eb8ca474a5bc0ac96d456c4748edf

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