Skip to main content

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

*Note: Cross-validation is on by default. Use `--methods rhf` for HF only, or `--methods rks-pbe,rks-b3lyp` to compare functionals.*

*Supported molecules:* `Benzene`, `Naphthalene`, `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`.

```bash
# 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: Detects and corrects SCF convergence to saddle points via Pople stability iteration before computing properties.
  • 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.

Metadata

Release files for mbd-framework 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mbd-framework 1.0.4
File Size Uploaded Provenance Actions
mbd_framework-1.0.4.tar.gz 14.7 kB Without provenance Details for mbd_framework-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mbd-framework 1.0.4
File Interpreter ABI Platform Actions
mbd_framework-1.0.4-py3-none-any.whl Python 3 none any Details for mbd_framework-1.0.4-py3-none-any.whl

Total release size: 27.8 kB

Release files / mbd_framework-1.0.4.tar.gz

Download URL mbd_framework-1.0.4.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2ee13e0b2b4f61bceb90d0157683de2986a28189c3b9db5a8eac1bf0b7de3653
BLAKE2b-256 checksum
How to use checksums
7ea46f3e516cdc32dea86ed429fe0aad3890c9bcf1e78fa80121fc3e4c87ee78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / mbd_framework-1.0.4-py3-none-any.whl

Download URL mbd_framework-1.0.4-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2bf8fd409c4b14a13019b7a3993d7f263d17c6addb60a57bb4ce3917876742d
BLAKE2b-256 checksum
How to use checksums
bb913ab595e0a0fa5d5a9b6d505ea309d49b223a3e341533804b91424bcfa49d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for mbd-framework 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page