numra-spde
Stochastic partial differential equation solvers for the Numra workspace — Method of Lines with SDE time stepping, white and colored noise sources.
Solves SPDEs ∂u/∂t = L[u] + σ(u) ξ(x,t) by discretizing the spatial operator L with finite differences (sharing numra-pde's discretization machinery) and time-stepping the resulting SDE system with numra-sde's steppers. Supports additive and multiplicative noise, ensemble runs, and adaptive time control.
Example
use Grid1D;
use ;
// Stochastic heat equation: ∂T/∂t = α ∂²T/∂x² + σ ξ(x,t)
What's in this crate
SpdeSystemtrait — drift, diffusion, optional noise-correlation hooksMolSdeSolver— Method-of-Lines stepper composingnumra-pdediscretizations withnumra-sdetime integratorsSpdeEnsemble— Rayon-parallel Monte Carlo over realizationsSpdeOptions/SpdeResult/SpdeStats— configuration and diagnosticsSpdeMethod— selectable underlying SDE stepper- Noise sources:
WhiteNoise,ColoredNoise,ColoredNoiseGenerator,SpaceTimeNoise,NoiseCorrelation
Composes with
numra-pde— provides spatial grids and finite-difference operatorsnumra-sde— provides the time-stepping schemes underneath MOLnumra-stats— ensemble mean / std / percentile across realizationsnumra-interp— post-hoc resampling of fields onto common grids
See cross-formalism tests for the SPDE = PDE + SDE composition check.
Install
[]
= "0.1"
Or via the umbrella crate:
[]
= "0.1"
Documentation
- API: https://docs.rs/numra-spde
- Book: Stochastic PDEs
- Source: https://github.com/moussaoutlook/numra-rs/tree/main/numra-spde
License
Numra Academic & Research License (Non-Commercial). Academic and research use is free; commercial use requires a separate license — contact contact@spectralautomata.com. See LICENSE.