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

*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.

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.4.tar.gz (14.7 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.4-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mbd_framework-1.0.4.tar.gz
  • Upload date:
  • Size: 14.7 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.4.tar.gz
Algorithm Hash digest
SHA256 2ee13e0b2b4f61bceb90d0157683de2986a28189c3b9db5a8eac1bf0b7de3653
MD5 6b71835d0e82089320c59be11446a7dd
BLAKE2b-256 7ea46f3e516cdc32dea86ed429fe0aad3890c9bcf1e78fa80121fc3e4c87ee78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mbd_framework-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d2bf8fd409c4b14a13019b7a3993d7f263d17c6addb60a57bb4ce3917876742d
MD5 025fa443199de6ce786e618e16398767
BLAKE2b-256 bb913ab595e0a0fa5d5a9b6d505ea309d49b223a3e341533804b91424bcfa49d

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