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.3.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.3-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mbd_framework-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 e3364b162054de8dbb27d59ecc17b3967e488b4b4ffc8194b498a0eb93182a0d
MD5 4878fe4f47c743c13ae05d74e6234741
BLAKE2b-256 cbc632369818fab70fcd2ff7c4ebcc795c43dfce7a7b2bf056b6f74b4275142c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mbd_framework-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f40510cd777fa9eb4a66cd1e28b4c4a919ed9a7d327c204c92dd842efdc04e55
MD5 cb9d4df7a0bd03c8b79123ff18c41ee6
BLAKE2b-256 f7678a39714121d4414d0e87d6bea9186b1cd3f15cf67eda7b12d6eea71b64c0

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