exponax-spde
Stochastic PDE steppers, ensembles and diagnostics for exponax.
Steppers accept JAX keys and compose with jit, vmap and grad.
Documentation · Capability matrix · Validation evidence
Install
pip install exponax-spde
To try unreleased changes, install from GitHub:
pip install --force-reinstall 'exponax-spde @ git+https://github.com/GVourvachakis/exponax-spde'
Quickstart
import jax
import exponax as ex
import exponax_spde as spde
step = spde.StochasticAllenCahn(1, 1.0, 64, 5e-4, sigma=0.1, noise_alpha=1.5)
initial = ex.ic.GaussianRandomField(1, powerlaw_exponent=3.0)(64, key=jax.random.key(0))
rollout = jax.jit(spde.stochastic_rollout(step, 200, include_init=True))
trajectory = rollout(initial, jax.random.key(1)) # shape (201, 1, 64)
spectrum = jax.jit(spde.stochastic_structure_factor(step, 200, 16))
power = spectrum(initial, jax.random.key(2))
| Equation | Domains | Noise |
|---|---|---|
| Diffusion, Cahn–Hilliard, Swift–Hohenberg | Periodic, reflected, bounded | Additive |
| Allen–Cahn | Periodic, reflected, bounded | Additive and periodic multiplicative |
| Advection–diffusion | Periodic | Additive with complex propagation |
| Scalar Burgers, KS height and conservative KS | Periodic, reflected | Additive |
| Vector Burgers | Periodic | Additive potential forcing |
| Navier–Stokes vorticity and Kolmogorov flow | Periodic | Additive with no mean forcing |
Bounded steppers support Neumann and Dirichlet grids. See the capability matrix for dimensional, parity and scheme limits.
Notebooks
- Quickstart covers four stepper families with keyed rollouts.
- Cahn–Hilliard nucleation compares white and mode-selective forcing.
- Two-dimensional turbulence checks stationary balances and plots the vorticity spectrum.
- Swift–Hohenberg onset shows noise-rounded onset.
- KS roughening estimates growth and late-time roughness exponents.
- Allen–Cahn validation compares paths, moments and convergence with analytical predictions.
Cahn–Hilliard nucleation with white noise on the paper preset at h = 5 × 10⁻⁷.
Single-mode forcing on the paper grid at h = 2 × 10⁻⁶. The dashed lines show each forcing mode’s nodes.
Band-forced vorticity and its shell-energy spectrum after nonlinear redistribution.
See the bibliographic references, software concept DOI, and MIT licence.
Metadata
Release files for exponax-spde 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exponax_spde-0.4.0.tar.gz | 36.9 kB | With provenance | Details for exponax_spde-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exponax_spde-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for exponax_spde-0.4.0-py3-none-any.whl |
Total release size: 87.0 kB
Release files / exponax_spde-0.4.0.tar.gz
| Download URL | exponax_spde-0.4.0.tar.gz |
|---|---|
| Size | 36.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e31a1ddb1fafe9c4cd66235cc75e4676bdaac56ecd1c09ae09caf78a40da7d4f
|
|
BLAKE2b-256 checksum How to use checksums |
a4f96aa3561a59eb37a36bc0a2b054baf1c8a9905ecacc3a74a9b5e6ec218fda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / exponax_spde-0.4.0-py3-none-any.whl
| Download URL | exponax_spde-0.4.0-py3-none-any.whl |
|---|---|
| Size | 50.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42098e1b0404366be493459a27d1986aee45ea7fc5acabd3908dc9e03be2c37a
|
|
BLAKE2b-256 checksum How to use checksums |
0a1f04fa6ebe59ebcbe8c48af6eff6f660808897e9f065c61d0ca925ca14a6f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for exponax-spde 0.4.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for exponax_spde-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA 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.