Skip to content

Noise model

Choose the forcing

The noise amplitude \(\sigma\) is a physical intensity. Keep it fixed when comparing grid or step-size refinements. Specify the mode weights \(q_k\) with Matérn, band, conservative or explicit modes. The legacy noise normalisation migration explains how to match an illustration from v0.1.0.

Setting What to choose Check before use
Additive Gaussian OU increment with exact linear covariance Variance and FFT conventions
Periodic multiplicative Allen–Cahn Euler–Maruyama or Milstein Milstein regularity
Mean mode Forced or unforced where a switch is available Mean-mode policy
Non-periodic domain Reflection on a periodic grid or a native DCT/DST grid Reflection, bounded intensity
Advection with a complex symbol Exact variance from the real part; full phase for propagation Even-grid Nyquist modes
Vector Burgers Gradient of a scalar Wiener potential Curl-free noise

Regularity and statistics

The linear covariance determines the point-variance screen for each equation. A regularity warning distinguishes the finite-grid scheme from a continuum model that may require additional analysis or renormalisation. Where a model is stable and linear, the stationary spectrum follows from its OU variance. Nonlinear stationary statistics depend on the equation and forcing.

Use the increment API to compare paths on shared noise. The time integration schemes describe drift order, taming and splitting. For time-step extrapolation, see the Richardson estimator.

Derivations and verification

Expand a topic for the normalisation, assumptions and evidence.

Fourier conventions

StochasticAllenCahn uses noise with physical amplitude \(\sigma\) and spectral covariance \(q_k=(1+|k|_{\rm phys}^2)^{-\alpha}\) on a periodic box of side \(\ell\). Write \(h=\Delta t\), \(P=N^d\), \(a=dx^d=(\ell/N)^d\), and \(L_k=-\nu|k|_{\rm phys}^2+\lambda\).

The forward FFT is unnormalised and the inverse divides by \(P\). The real FFT stores the nonnegative frequencies on its final axis. To sum over the full spectrum, weight final-axis DC and even-\(N\) Nyquist entries by \(w_k=1\), and all other entries by \(w_k=2\). Each earlier axis already holds both signs. With \(m(k)\) the number of axes where \(k\) is neither DC nor Nyquist, exponax's coef_extraction divides the raw coefficient by \(D_k=P/2^{m(k)}\). Its reconstruction divisor is \(R_k=P/w_k\).

For independent real \(\xi(x)\sim N(0,1)\), \(E|\widehat{\xi}_k|^2=P\) at every stored mode. Boundary planes obey Hermitian symmetry. A mode whose indices are all DC or Nyquist is purely real. The other modes have real and imaginary variances \(P/2\).

Additive variance and the meaning of σ

The additive step draws one real white field and uses the increment

\[ \widehat O_k=\sigma\sqrt{q_k F_h(L_k)/a}\;\mathrm{rfft}(\xi)_k, \qquad F_h(L)=h\varphi_1(2hL), \quad \varphi_1(z)=\frac{\operatorname{expm1}(z)}{z},\quad \varphi_1(0)=1. \]

\(F_h\) is the integral of \(e^{2Ls}\) from \(0\) to \(h\). The Itô isometry therefore gives raw power \(P\sigma^2q_kF_h(L_k)/a\). Define \(\mathrm{mean}_{\rm full}(f)=P^{-1}\sum_{\rm rfft}w_k f_k\). The physical point variance is \(\sigma^2\,\mathrm{mean}_{\rm full}(qF_h)/a\). For a plain Wiener increment, use \(F_h=h\). With white noise and negligible drift this gives \(\sigma^2h/a\) at each grid point.

\(\sigma\) multiplies the continuum \(Q\)-Wiener forcing, with no time step or grid correction required by the caller. The kernel stores real \(L_k\) and computes \(F_h\) directly, including the large negative \(L_k\) limit \(1/(2|L_k|)\). The step applies the selected deterministic drift and adds \(\widehat O\). The nonlinear dealiasing mask applies to the drift and the additive draw covers the full resolved grid.

Noise spectra

noise_spectrum is a keyword-only parameter on stochastic steppers. The default is exponax_spde.noise.Matern(noise_alpha) for most steppers. This preserves their unit-scale Q-Wiener spectrum and keyed paths. Cahn–Hilliard instead defaults to Conservative(Matern(noise_alpha)).

  • Matern(alpha, length_scale=1.0) gives \(q_k=(1+(\ell|k|)^2)^{-\alpha}\) with physical length scale \(\ell\). The decay exponent is \(2\alpha\). This normalised spectral form follows the Whittle–Matérn construction. Lindgren, Rue & Lindström (2011)
  • Band(k_min, k_max) only forces modes with \(k_{\min}\leq|k|\leq k_{\max}\). Both edges are included. Finite support gives an infinite decay exponent.
  • Conservative(inner) gives \(q_k=|k|^2 q_k^{\mathrm{inner}}\) with Matern or Band as the inner spectrum. It represents the divergence of an isotropic random flux. It excludes DC even if the inner spectrum includes it. The two derivatives in the power spectrum reduce the decay exponent by two following the convention \(q_k\sim |k|^{-p}\). Cook (1970)

noise_alpha is the Matérn exponent used to construct the default spectrum. With an explicit noise_spectrum, that spectrum determines the weights and decay exponent. Leave the unused noise_alpha argument at its default. The mean policy can remove the DC weight selected by the spectrum. For example, a band with a strictly positive lower edge excludes DC even with mean_noise=True. Complex-symbol Hermitian masks still apply.

The roughness screens compare the spectral decay exponent with the equation-specific threshold. For the heat, Allen–Cahn and KS height screens the threshold is \(d-2\) under the conditions below. Milstein requires a decay exponent strictly greater than \(d\), which is the trace-class condition.

Boundary conditions via reflection

On a periodic channel-first grid, noise_symmetry="even" or "odd" averages the white draw with its signed reflection separately on each spatial axis before applying the OU filter. Reflection maps index \(i\) to \(-i\bmod N\). Use symmetry.extend(u_half, parity) for symmetric initial data and symmetry.restrict(u_full, parity) to recover the half grid. For even periodic sizes, each half grid includes both endpoints \(0,\ldots,N/2\). The odd helpers set both endpoints to zero. For odd-reflected Cahn–Hilliard, both \(u\) and \(\Delta u\) vanish at the boundary. The periodic extension has zero total mass, and the restricted Dirichlet problem can exchange mass through the boundary. Even fields satisfy homogeneous Neumann conditions, with both normal derivatives zero for the reflected Cahn–Hilliard solution. Odd fields vanish at the boundary. Apply the same parity on every spatial axis.

Stepper Even Odd
Allen–Cahn, Diffusion, Cahn–Hilliard Yes Yes
Swift–Hohenberg Yes Only for an odd polynomial
KS height Yes —
1-D Burgers and conservative KS — Yes
Advection–diffusion and vorticity steppers — —

Reflections are available for additive noise. Supply initial data with the selected symmetry to preserve it throughout a trajectory. noise_symmetry=None preserves existing keyed paths. Replay and coarsening use the same increment API.

Use symmetry.project(u, parity) to re-project a periodic field. Float32 round-off-scale asymmetry can grow with an unstable mode. In the linearised Cahn–Hilliard check, an injected antisymmetric coefficient of about \(4\times10^{-7}\) grew to \(1.27\times 10^{-3}\) in 200 steps. The fitted growth rate was 401.2 against the linear rate 400. Re-projection restored exact reflection parity on the physical grid.

On a half grid, use trapezoid weights \(dx/2\) at even endpoints and \(dx\) on the interior, tensorised across axes. An extended mode has squared grid norm \(2^d\) times its half-grid norm. If \(b\) has half-grid norm one, the periodic orthogonal projection of grid white noise onto \(\operatorname{extend}(b)\) has half-domain coefficient standard deviation \(2^{-d/2}\) relative to half-domain cylindrical noise. The exact OU filter multiplies its variance by the same spectral and time factors as on the full grid. This proof applies to endpoint-inclusive DCT-I cosine modes and to DST-I sine modes with zero endpoints. Lord, Powell & Shardlow (2014)

For a periodic square of side two, the Neumann square has side one. The squared half-grid norm of an interior cosine product is \(1/4\), so a unit white-noise amplitude gives variance one in the unnormalised \(\cos(j\pi x)\cos(k\pi y)\) coefficient. An axis cosine has squared norm \(1/2\) and half that variance. A mode with two fixed frequency indices (DC or Nyquist) has squared norm one and one quarter of that variance. The reference expansion uses unnormalised products with its own weights and excludes DC. Blömker, Sander & Wanner (2016), equation (2.1)

Modes(indices, weights=None) assigns unit spectral power or one power weight per indexed tuple and includes its sign reflections. For instance, Modes([(2, 3)]) with even reflection on the side-two periodic square forces only the product \(\cos(2\pi x)\cos(3\pi y)\). The grid validates each integer index against its Nyquist bound. The family list must contain distinct absolute tuples.

The inclusive Band test compares squared radii with a relative margin of four machine epsilons in the grid dtype. This retains lattice points on the circles in float32 and float64. The caption counts in Fig. 2 of Blömker, Sander & Wanner agree with closed annuli, while their §2.1 states open intervals. Fig. 3 uses half-integer radii, where no lattice point lies on an edge. Blömker, Sander & Wanner (2016)

Noise amplitudes use these conventions. For the periodic reflection row, \(d\) is the dimension and the periodic box has twice the side length of the bounded domain. The paper row refers to its unnormalised cosine products.

Convention Coefficient variance per unit time before OU propagation
Reflected periodic, half-domain orthonormal coefficients \(2^{-d}\sigma^2q\)
Bounded, orthonormal physical basis \(\sigma^2q\)
Bounded, unnormalised products \(\sigma^2q\) in the raw product coefficients
Blömker, Sander & Wanner (2.1) \(\sigma^2 a_{jk}^2\) in the raw cosine coefficients

In two dimensions and on the unit square, the periodic row gives variance \(\sigma^2q\) on raw interior cosine products and half this on axis modes. The bounded unnormalised row uses the raw coefficient variance directly, including axes.

Bounded domains

Use exponax_spde.bounded for additive noise on a cell-centred box \((0,L)^d\) with \(M\) cells on each axis. Diffusion, Allen–Cahn, Cahn–Hilliard and Swift–Hohenberg support Neumann and Dirichlet boundaries. Cahn–Hilliard uses \(u=\Delta u=0\) in the Dirichlet case and the corresponding zero normal derivatives in the Neumann case. Dirichlet Swift–Hohenberg requires an odd polynomial.

Neumann coefficients use the orthonormal DCT-II with indices \(0,\ldots,M-1\). Dirichlet coefficients use an orthonormal DST-II with indices \(1,\ldots,M\). Alternating the sample signs and reversing the cosine coefficients gives the sine transform. The wavenumbers are \(\pi j/L\). The bounded coefficients use a real ETDRK operator with the same linear symbol as the half-sample periodic mirror construction. The retained nonlinear indices satisfy \(j\leq fM-1\) along each axis for dealiasing fraction \(f\). Bounded Allen–Cahn defaults to \(f=1/2\) for an alias-free cubic, while periodic StochasticAllenCahn keeps its \(2/3\) default. See Makhoul (1980) for the fast cosine transform and Kutri and Scheichl (2024) for boundary effects on Whittle–Matérn fields.

If \(V_h(L_k)=h\varphi_1(2hL_k)\), the Euclidean transform coefficients receive independent real increments of variance \(\sigma^2 q_k V_h(L_k)/dx^d\), with \(dx=L/M\). Here \(\sigma\) sets the bounded-domain white-noise intensity. The default noise_basis="orthonormal" uses \(q_k\) in a physical \(L^2\)-orthonormal basis. With noise_basis="unnormalised", \(q_k\) is the power in the raw sine or cosine product coefficients, as in equation (2.1) of Blömker, Sander and Wanner (2016). Multiply \(q_k\) by the product of the discrete squared norms. Each axis contributes \(L/2\), except Neumann index \(0\) and the terminal Dirichlet grid mode \(M\), which both contribute \(L\). The latter has samples of magnitude one at every cell centre. See the intensity table above.

Bounded steppers support the increment API, rollouts and coupled Richardson extrapolation. The increment API's step_fourier name consumes DCT or DST coefficients in this namespace. The periodic structure factor is unavailable. The named energy functionals select the bounded transform automatically and use the volume \(L^d\) and the same Galerkin projection as the drift. For quadratic_energy directly, pass the boundary keyword and multiply by the volume to obtain the integral.

Choose reflected forcing to retain a periodic representation with endpoint-inclusive half grids. Choose bounded steppers to work directly with cell centres and real coefficients, including raw product noise without an axis-dependent rescaling of the reflected periodic spectrum.

Vector Burgers with potential noise

StochasticVectorBurgers solves the periodic non-conservative equation \(du=(\nu\Delta u-b(u\cdot\nabla)u)\,dt+\sigma\nabla dW_Q\) in two or three dimensions. Each spatial direction has one velocity channel. The potential spectrum \(q\) is scalar, with a default Matérn exponent of 7. One shared scalar mode produces the velocity multiplier \(ik\). For normalised Fourier coefficients the one-step covariance is \(\sigma^2 k k^{\mathsf T}q_k V_h(-\nu|k|^2)/dx^d\). Raw FFT coefficients multiply this covariance by \(N^d\). DC and all even-grid Nyquist planes are unforced, using exponax's oddball filter for the odd derivative. Potential Burgers turbulence, Boritchev (2016)

For potential data, \(\partial_j u_i=\partial_i u_j\), so \((u\cdot\nabla)u=\nabla(|u|^2/2)\). For alias-free quadratic products the pre- and post-dealiased convection therefore preserves the discrete curl-free subspace. The scalar diffusion factor and each gradient kick preserve it as well. The Cole–Hopf cross-check uses the 1-D convection convention \(u_t+buu_x=\nu u_{xx}\) and \(u=-(2\nu/b)\partial_x\log\theta\) for a positive heat solution \(\theta\). Hopf (1950) · Cole (1951)

The continuum screen is a sufficient condition. The potential-noise operator in Corollary 5.1 of Brzeźniak, Goldys and Neklyudov is \(\gamma\)-radonifying into \(H^{5,2p}\) for \(p>d\). For spatially homogeneous Fourier forcing the squared Sobolev multipliers sum to \(\sum_k(1+|k|^2)^5q_k\). For algebraic potential decay this is finite when the gradient spectrum \(|k|^2 q_k\) decays with exponent greater than \(d+8\). Construction warns outside this viscous screen. Finite bands or explicit mode families satisfy the decay condition. Brzeźniak, Goldys & Neklyudov (2014)

Complex Fourier symbols

Derived. Advection–diffusion has \(L_k=-\nu|k|^2-i\,v\cdot k\). Itô isometry gives the additive convolution power as \(N^d\sigma^2q_k h\phi_1(2h\operatorname{Re}L_k)/dx^d\). The imaginary part cancels in \(|e^{sL_k}|^2\). It contributes the full phase to propagation and to the weights \(e^{(r-1-j)hL_k}\) used to coarsen increments.

For a real field, a stored rFFT plane at \(k_d=0\) or at even-grid Nyquist contains both members of each conjugate pair. If the upstream symbol fails \(L_{-k\bmod N}=\overline{L_k}\) on either plane, that mode is unforced. The comparison is exact. All other modes retain the specified covariance, subject to mean_noise. Use odd N for complete non-DC forcing. The deterministic update preserves exponax's symbol convention, including the treatment of even-grid odd derivatives. Complex-symbol stochastic forcing is additive in 0.3.

Published context. Da Prato and Zabczyk treat the linear covariance for a skew-symmetric generator in §5.5.2. Majda and Harlim discuss damped forced advection–diffusion signals in §5.2, Turbulent signals for the damped forced advection–diffusion equation. The discrete boundary mask above follows from the stored rFFT reality constraint. Da Prato & Zabczyk (2014) · Majda & Harlim (2012)

Stationary spectrum

For \(\lambda=0\) and \(k\ne0\), divide the one-step raw power by \(1-e^{-2\nu |k|^2h}\) and by \(D_k^2\). This gives the invariant spectrum returned by structure_factor and stochastic_structure_factor:

\[ S_k=\frac{P\sigma^2q_k}{2\nu|k|^2 a D_k^2} =\frac{4^{m(k)}\sigma^2q_k}{2\nu|k|^2\ell^d}. \]

It is independent of \(h\). The spatial mean is Brownian with variance \(\sigma^2t/\ell^d\) from zero, so the stationary comparison excludes DC.

With white noise and a confining gradient drift, the invariant law is Gibbs. The preprint by Bréhier, Busnot Laurent, Debussche and Vilmart treats the one-dimensional setting with a Lipschitz nonlinear gradient drift. The linear Gaussian case is covered by Da Prato and Zabczyk (2014), Chapter 11, §11.3. Bréhier et al. (preprint) · Da Prato & Zabczyk

Derived reversibility screen. On the grid, write the drift as \(-\nabla V\), where \(V(u)=\tfrac12\langle u,(-A)u\rangle+\sum_j F(u_j)\,dx^d\). Let the noise covariance be \(\sigma^2 Q\), with \(Q\) Fourier-diagonal and every \(q_k>0\). In the stationary setting a diffusion with constant non-degenerate covariance is reversible, with density proportional to \(\exp(-2\widetilde V/\sigma^2)\), if and only if \(Q^{-1}\nabla V=\nabla\widetilde V\) for a potential \(\widetilde V\). Pavliotis (2014), §4.6

The quadratic part satisfies the condition because \(A\) and \(Q\) share a Fourier basis. For non-quadratic \(F\), the Jacobian of \(Q^{-1}\nabla F\) is \(Q^{-1}\operatorname{diag}(F''(u_j))\,dx^d\). For this to be symmetric for every \(u\), \(Q^{-1}\) must commute with every diagonal matrix. Translation invariance then forces a flat spectrum (white noise). Coloured noise with the unmodified nonlinear gradient drift is therefore non-reversible and its stationary law has no explicit Gibbs formula in terms of \(V\). With white noise, \(\exp(-2V/\sigma^2)\) is stationary up to normalisation. The preconditioned drift \(-Q\nabla V\) restores reversibility with respect to the same density. Stationary structure_factor results are model-specific. #57

Experimental increment API
  • sample_increment(key) returns the additive convolution in raw rFFT units, including \(\sigma\), or a σ-free multiplicative Wiener increment.
  • step_with_increment(u_hat, increment) applies the deterministic step and applies the supplied increment according to the noise model. It validates the increment shape and takes no key.
  • fine.coarsen_increments(increments) combines \(r\ge2\) consecutive fine increments along the leading axis. With \(E_h=e^{hL_k}\), it applies \(\sum_{j=0}^{r-1} E_h^{r-1-j}\widehat O_j\) to additive increments. It sums the multiplicative Wiener increments before applying the collocation product and optional Milstein term. Match geometry, coefficients, dtype and covariance between the fine and coarse steppers.

The methods support JIT and batching over paths. Use equinox.filter_jit or JIT a closure such as jax.jit(lambda x: fine.coarsen_increments(x)). Sample the fine draws once and coarsen them for the coarse path to share one Brownian path. With additive noise and linear drift, fine and coarse steps agree to round-off. With nonlinear drift or multiplicative noise, coupling preserves the correct marginal noise and exposes the strong time-discretisation error. Higham (2001)

Multiplicative noise and Milstein

The plain Wiener draw contains no \(\sigma\):

\[ \Delta\widehat W_k=\sqrt{q_k h/a}\;\mathrm{rfft}(\xi)_k, \qquad v_W=E[\Delta W(x)^2]=\frac{h}{aP}\sum_{\rm rfft} w_k q_k. \]

The final-axis weights account for all frequencies, including the odd and even grid cases. Translation invariance makes \(v_W\) the same at every grid point.

Write \(D_h(\widehat u)\) for the order-1 deterministic step. Multiply the noise and the step-start state at the grid points (collocation). The drift uses its usual dealiasing mask. The step is

\[ \widehat u_{n+1} =D_h(\widehat u_n) + E_h\,\mathcal F\!\left[\sigma u_n\Delta W + \tfrac12\sigma^2 u_n(\Delta W^2-v_W)\right], \]

with the quadratic term included only when use_milstein=True. The propagated Euler kick follows the stochastic exponential Euler form. Lord & Tambue (2013)

Milstein uses the commutative correction for the linear diffusion \(G(u)=\sigma u\). The centred square has zero expectation and variance \(2v_W^2\). Euler and quadratic kicks have zero cross covariance by Gaussian symmetry. At \(L=0\) the conditional variance is \(u_n^2(\sigma^2v_W+\tfrac12\sigma^4v_W^2)\) with Milstein and \(u_n^2\sigma^2v_W\) with Euler–Maruyama. Milstein requires \(\sum_k q_k<\infty\) in the continuum, equivalently \(\alpha>d/2\). Enabling it for \(\alpha\le d/2\) raises ValueError. Jentzen & Röckner (2015)

Verification by geometric Brownian motion

On the unit box, set \(\lambda=0\), start from a uniform field and suppress nonconstant noise modes with \(\alpha=20\). In the DC-only limit the field obeys \(du=\sigma u\,dW\) with exact endpoint \(u(T)=u_0\exp(\sigma W_T-\sigma^2 T/2)\). Sum the same fine increments into coarse steps. The strong RMS orders are \(1/2\) for Euler–Maruyama and \(1\) for Milstein. The tests use paired bootstrap bounds as the primary check and physverify as a host-side check on final RMS errors. Kloeden & Platen (1992)

When Milstein improves on Euler–Maruyama

For smooth coefficients and test functions under the usual moment and regularity assumptions, Euler–Maruyama and Milstein both have weak order one. The Milstein correction increases the strong order from one half to one in the commutative setting. Kloeden & Platen (1992)

Resolving that gain requires commutative noise, which the diagonal collocation diffusion supplies, and small \(\sigma^2 v_W\) per step. The drift error must be small enough to expose the stochastic error, and the noise must be sufficiently smooth relative to the stiffness of the resolved modes. Jentzen & Röckner (2015), Lord & Tambue (2013)

Weak errors and wall times describe the chosen observable and workload. They cannot rank the schemes by strong accuracy. Compare terminal path errors using the same Brownian increments across resolutions. The v0.1.0 comparisons used independent seeds and the former Milstein term.

Level-difference estimates of strong order

For the fixed-grid SPDE test, the Milstein fit against a finite T/1024 reference was 1.11. A leading error of \(C(h-h_{\rm ref})\) predicts 1.12 on those levels because its local log-log slope is \(h/(h-h_{\rm ref})\). The primary estimator now fits the RMS of \(X_h-X_{h/2}\) against \(h\), using the same Brownian path at both levels and resampling whole paths for the confidence interval. The finite-reference fit remains a secondary diagnostic. Giles (2008) · Higham (2001)

Continuum noise regularity

At positive diffusivity, the linear heat convolution has high-mode variance proportional to \(|k|^{-2\alpha-2}\). A shell at radius \(r\) contains order \(r^{d-1}\) modes, so the continuum point variance is finite if \(\alpha > d/2 - 1\). At equality it diverges logarithmically with the grid cutoff. Below the threshold the divergence is algebraic. This condition concerns the linear covariance. Nonlinear continuum models have additional regularity assumptions.

For \(d\ge2\), \(\sigma>0\), \(\nu>0\) and \(\alpha \le d/2 - 1\), the constructor emits exponax_spde.NoiseRegularityWarning for both additive and multiplicative Euler–Maruyama noise. In particular, space-time white noise in continuum Allen–Cahn in 2-D and 3-D requires renormalisation. Da Prato & Debussche (2003) · Hairer (2014) · Hairer, Ryser & Weber (2012)

In the rough multiplicative regime the finite-grid collocation product has no classical continuum pointwise interpretation. The critical 2-D stochastic heat flow illustrates this issue in a linear multiplicative model with space-time noise and critical scaling. Caravenna, Sun & Zygouras (2023)

The warnings leave the finite-grid algorithm available. Suppress the category locally for an intentional finite-grid experiment:

import warnings
from exponax_spde import NoiseRegularityWarning
from exponax_spde.stepper import StochasticAllenCahn

with warnings.catch_warnings():
    warnings.filterwarnings("ignore", category=NoiseRegularityWarning)
    stepper = StochasticAllenCahn(2, 1.0, 32, 0.001, noise_alpha=0.0)

Warnings occur at construction only. With \(\sigma=0\) there is no stochastic forcing. With \(\nu=0\) the model is a grid-level SDE system with no continuum claim and no regularity warning. Negative noise_alpha, sigma and diffusivity raise ValueError. Enabling Milstein always requires a decay exponent greater than \(d\) (\(\alpha>d/2\) for Matérn) and raises ValueError otherwise.

The sign checks accept Python scalars and concrete JAX scalar arrays. During transformations that construct the stepper, a traced argument skips its sign check. The regularity warning requires all three arguments to be concrete. Validate traced inputs before applying the JAX transformation.

Noise correction #4 · Regularity #8 · Figure regeneration #17

Equation-specific regularity screens

For scalar periodic diffusion with positive diffusivity, the Fourier symbol is \(L_k=-\nu|k|^2\). At any fixed \(t>0\), high-mode stochastic convolution powers decay as \(|k|^{-2(\alpha+1)}\). Counting modes in shells gives finite point variance when \(\alpha > d/2-1\). At or below that threshold, StochasticDiffusion emits NoiseRegularityWarning for nonzero concrete sigma. This derived screen follows from Gaussian convolution regularity and semigroup smoothing. The finite-grid solution remains available. Da Prato & Zabczyk (2014), §§5.1.2, 5.4.1 and 5.5.3

For viscous Burgers in one dimension the same bound includes every \(\alpha\geq 0\). Writing the quadratic drift in flux form leaves a first spatial derivative on the smoothing semigroup, with an integrable \(t^{-1/2}\) singularity. This gives a derived local periodic screen, so StochasticBurgers accepts white noise without a roughness warning. Da Prato, Debussche & Temam prove mild existence and uniqueness for additive white noise on an interval with Dirichlet data in Theorem 3.1. The periodic model here includes its own DC mode. Da Prato, Debussche & Temam (1994)

StochasticAdvectionDiffusion has the same regularity screen as StochasticDiffusion. The advection term changes the propagator phase, and the real part still controls convolution variance. See complex Fourier symbols.

StochasticAllenCahn uses the continuum noise regularity checks above. Constructors use NoiseRegularityWarning for their continuum screens. TamedPolynomialNonlinearFun acts on the drift. When StochasticAllenCahn uses taming with drift order above one it emits TamingOrderWarning. See drift order.

Kuramoto–Sivashinsky

StochasticKuramotoSivashinsky and StochasticKuramotoSivashinskyConservative use upstream's \(L_k=\beta_2|k|^2-\beta_4\sum_j k_j^4\). In \(d\geq2\) this is the anisotropic, unmixed fourth-order operator \(\sum_j\partial_j^4\). Keeping it preserves upstream deterministic parity. The same regularity screens apply because \(\sum_j k_j^4\geq |k|^4/d\). With \(L_k>0\) the exact convolution factor remains positive and grows with the interval length. Such a forced unstable mode has no stationary linear variance. The height form uses a squared gradient with upstream's nonlinear DC correction. The conservative 1-D form uses the derivative of a quadratic flux by default.

Form Continuum statement Basis
Height For positive fourth-order dissipation, \(\alpha>d/2-1\) gives positive spatial Hölder regularity for the Gaussian gradient, sufficient for a local classical squared-gradient product. Derived from stochastic-convolution regularity and semigroup smoothing.
Conservative For positive fourth-order dissipation, \(\alpha>d/2-2\) suffices for the local flux product. The semigroup absorbs one derivative with an integrable \(t^{-1/4}\) factor. All allowed \(\alpha\geq0\) satisfy it in 1-D. Derived from the same smoothing argument.
1-D stochastic KS Duan and Ervin analyse well-posedness for their boundary and forcing assumptions. Published, for the problem specified in their paper.
Truncated explicit 1-D scheme Hutzenthaler, Jentzen and Salimova prove strong convergence for a nonlinearity-truncated accelerated exponential Euler method. Published, for the analysed conservative nonlinearity and truncated discretisation.

The height constructor warns at or below \(\alpha=d/2-1\) when forcing is enabled. The conservative constructor supports 1-D and accepts white noise. These screens describe the local products. Global behaviour and singular continuum limits have additional hypotheses. The renormalisation-group analysis of Cuerno and Lauritsen concerns KPZ-type large-scale behaviour. Da Prato & Zabczyk (2014), §§5.4.1 and 5.5.3 · Duan & Ervin (2001) · Hutzenthaler, Jentzen & Salimova (2018) · Cuerno & Lauritsen (1995)

Both 2-D solvers add a Fourier OU increment to exponax's deterministic step. The linear symbol is \(L_k=-\nu |k|^2+\lambda\), where drag is \(\lambda\). Kolmogorov flow also includes the deterministic sinusoidal drive. The random increment always has zero DC. The mean is constant at zero drag. For nonzero drag it follows the upstream deterministic law \(\bar\omega(t)=e^{\lambda t}\bar\omega(0)\).

Derived screen. If \(q_k\) decays as \(|k|^{-p}\), the high-mode OU power scales as \(|k|^{-p-2}\) for positive viscosity. The sum for 2-D point variance converges for \(p>0\). At zero viscosity the linear damping has no spatial smoothing, so finite point variance requires the spectrum itself to be summable, \(p>2\) in 2-D. For nonzero forcing the constructor warns at \(p\leq 0\) with viscosity and at \(p\leq 2\) without viscosity. This screen concerns the convolution's point variance. The singular nonlinear equation requires its own well-posedness analysis.

Published context. The velocity space–time white noise studied by Da Prato & Debussche corresponds to vorticity power growing as \(|k|^2\) (roughly Matérn \(\alpha=-1\)). It lies outside this screen and the supported Matérn range. The finitely forced setting studied by Hairer & Mattingly lies inside the screen and can be represented by finite-support spectra such as Band. An annular Band can include more modes than a specific finite forcing set. The regularity screen gives no ergodicity guarantee. Da Prato & Debussche (2002) · Hairer & Mattingly (2006) · E, Mattingly & Sinai (2001)

For the budget diagnostic, use squared norms (twice enstrophy and energy). Parseval weights give the vorticity norm from squared vorticity and the velocity norm from the same sum with the nonzero-mode weight \(1/|k|^2\). The nonlinear terms cancel in both. With \(\mu=-\lambda\), the undriven enstrophy budget subtracts \(2(\nu\,\mathbb{E}\|\nabla\omega\|^2+\mu\,\mathbb{E}\|\omega\|^2)\) and adds the Itô noise injection. Energy uses the same mode weights throughout. The test uses left-step dissipation quadrature. Its gate uses the conditional-expectation estimator \(\mathbb{E}[\|\omega_{n+1}\|^2\mid\omega_n]=\|D(\omega_n)\|^2+\mathbb{E}\|O_n\|^2\), where \(D\) is the deterministic update and \(O_n\) is the OU increment. This checks the deterministic part of the Itô budget. The conditional law tests check the noise amplitude. The raw enstrophy and energy residual slopes were 0.455 and 0.202. At small steps the residual plateaus because the coupled martingale term is nearly identical across levels. Kuksin & Shirikyan (2012), §5.1 · Boffetta & Ecke (2012)

The coupled-path strong convergence checks are also fixed-grid checks. The more general time-discretisation results in the literature address different schemes and assumptions. Carelli & Prohl (2012) · Bessaih & Millet (2019)

Cahn–Hilliard and Cook forcing

The drift is \(\nu\Delta(c_1u+c_3u^3-\gamma\Delta u)\). The default divergence-of-flux forcing uses Conservative(Matern(noise_alpha)). An explicit scalar or conservative spectrum is available. The solver always zeros DC, so the spatial mean is conserved on every path.

Derived screen. For \(\nu\gamma>0\) the OU variance has high-mode behaviour \(|k|^{-p-4}\). A nonzero noise amplitude warns at \(p\le d-4\). A white flux gives \(p=-2\), so it passes this screen in 1-D and warns in 2-D and 3-D. The screen concerns the linear convolution. The nonlinear equation and degenerate fourth-order coefficients require separate analysis.

Derived equilibrium and linear spectrum. On a finite grid at fixed mass, write the gradient drift as \(-(-\Delta)\nabla F\) and include the mobility factor \(\nu\) in \(F\). Then \(-\Delta\) is the mobility associated with the \(H^{-1}\) metric. For \(Q=-\Delta\) the reversibility condition gives the formal density proportional to \(\exp(-2F/\sigma^2)\) when normalisable. A coloured conservative spectrum generally fails that condition for an unmodified nonlinear drift.

With the cubic term switched off, \(L_k=-\nu|k|^2(c_1+\gamma|k|^2)\). A stable nonzero mode has stationary power \(\sigma^2q_k/(2|L_k|)\) in the unit-volume spectral normalisation. For white flux, \(q_k=|k|^2\), this becomes the Ornstein–Zernike form \(\sigma^2/[2\nu(c_1+\gamma|k|^2)]\). For general volumes and stored Fourier powers apply the grid-volume and FFT convention above. Unstable spinodal modes instead use the finite-time OU law.

Published context. Cook introduced noise through a random flux. Da Prato & Debussche treated non-conservative white noise in \(d\le 3\). The cited discretisation results have their own covariance and boundary assumptions. Cook (1970) · Da Prato & Debussche (1996) · Kovács, Larsson & Mesforush (2011) · Furihata et al. (2018) · Cui, Hong & Sun (2021)

Swift–Hohenberg

The deterministic drift is \(ru-(k_c+\Delta)^2u+g(u)\), with reactivity \(r\), critical-number parameter \(k_c\) and polynomial \(g\). The default spectrum is Matérn. The linear shell is unstable wherever \(L_k=r-(k_c-|k|^2)^2>0\). Those modes receive the exact growing finite-time OU convolution. The default includes stochastic forcing of DC when the spectrum includes it. Set mean_noise=False to suppress the stochastic mean increment. The deterministic drift can still move the mean.

Derived screen. For spectral decay exponent \(p\) the high-mode convolution varies as \(|k|^{-p-4}\). With nonzero noise amplitude the constructor warns when \(p\le d-4\). This point-variance screen concerns the linear convolution.

Published context. Swift and Hohenberg describe fluctuation effects near convection onset. Hohenberg and Swift analyse additive noise near the onset of Rayleigh–Bénard convection. Swift & Hohenberg (1977) · Hohenberg & Swift (1992)

Mean-mode policy

mean_noise=False sets \(q_0=0\). It is the default for both KS forms. The height DC correction and the conservative periodic drift leave the mean constant with unforced DC. In Diffusion and Burgers, use the same switch to preserve the initial mean. With mean_noise=True, their mean and the KS mean have Brownian increments of variance \(\sigma^2 t/\ell^d\). Allen–Cahn, advection–diffusion, Diffusion and Burgers default to mean_noise=True. Allen–Cahn's reaction can change the mean, and multiplicative kicks can generate DC through products. If DC is excluded from the Wiener field, Milstein's centring variance excludes that mode.

Truncated schemes for convective SPDEs

The cited strong-convergence proofs for Kuramoto–Sivashinsky and Burgers cover nonlinearity-truncated exponential Euler variants. Here the untruncated ETDRK drift is checked empirically on coupled paths. Allen–Cahn's Hutzenthaler–Jentzen taming is specific to its polynomial drift. Hutzenthaler, Jentzen & Salimova (2018) · Jentzen, Salimova & Welti (2019)

With convection in the explicit drift, ETDRK1 can become unstable in advection-dominated runs. The turbulence notebook uses ETDRK4 for its nonlinear stationary balance and spectrum experiments.

Drift order

StochasticAllenCahn(order=k) selects the deterministic exponential integrator, with \(k=1,2,3,4\) and default \(k=1\). Orders 2–4 evaluate the full ETDRK drift before adding the existing stochastic increment. With sigma=0 and taming disabled, the result matches installed exponax Allen–Cahn with the same drift settings and order.

On a smooth fixed-grid problem with small additive noise, the strong error scale is \(C_1h^k+C_2\sigma h\), and the weak scale for smooth observables is \(C'_1h^k+C_3\sigma^2h\). A higher-order drift can reduce error while the deterministic term dominates. At positive noise amplitude it does not raise the stochastic weak order. Keep Richardson's default weak_order=1. For multiplicative noise the present Euler–Maruyama and Milstein treatments retain their fixed-grid strong orders of one half and one, respectively, under the usual regularity assumptions. See Milstein & Tretyakov, weak and mean-square.

In the coupled fixed-grid benchmark at \(N=8\), \(\alpha=12\) and \(\sigma=10^{-6}\), the order-four drift's adjacent-level RMS slopes fell from 4.10794 on the coarse pair to 0.99796 on the fine pair. The independent drift and noise error scales predict a crossover near \(h=0.0287\). This is a finite-grid example with smooth noise.

Taming replaces the cubic term \(\mathcal{N}\) by \(\mathcal{N}/(1+h|\mathcal{N}|)\) at each stage. This changes the drift at \(O(h)\), which limits accuracy to first order relative to the untamed equation. Construction emits TamingOrderWarning when a higher drift order and taming are enabled with concrete parameters.

The increment API and its coarsening formulas are independent of order. Each additional drift stage adds one forward and one inverse FFT.

Drift order FFTs per additive step FFTs per multiplicative step
1 5 8
2 7 10
3 9 12
4 11 14

These counts are for physical-space steps with a sampled increment. The multiplicative counts apply with and without Milstein. Fourier-space entry points take two fewer transforms. Stochastic stage integrals for genuinely higher stochastic order are tracked in #14.

Exact-flow Allen–Cahn splitting

StochasticAllenCahn(scheme="strang") splits the Allen–Cahn reaction and linear stochastic flow. strang_split_step instead couples an SSA system to an SPDE stepper.

scheme="lie" and scheme="strang" use the exact pointwise reaction \(\Phi_t(u)=u/\sqrt{u^2+(1-u^2)e^{-2\lambda t}}\). The linear operator in both cases is \(L=\nu\Delta\). With exact heat convolution \(O_h\), one Lie step is \(e^{hL}\Phi_h(u)+O_h\). Strang applies a half reaction, then \(e^{hL}\cdot+O_h\), then the second half reaction. The nonlinear substep is collocated without dealiasing. The Strang post-flow changes the law of the final state even when the initial field is zero. sample_increment and coarsen_increments refer to the linear heat-convolution substep in both schemes.

The default scheme is ETDRK. use_taming=None enables taming for ETDRK and disables it for splitting. Splitting requires additive noise and order=1, with neither taming nor Milstein. Deterministic splitting has first order for Lie and second order for Strang on smooth fixed grids. For 1-D additive space-time white noise, analyses of the reaction-then-diffusion splitting give strong rates near \(1/4\) and weak rate \(1/2\) under the papers' hypotheses. These results concern the analysed schemes and boundary conditions. Our periodic coloured noise order test records a diagnostic. Bréhier & Goudenège (2019) · Bréhier & Goudenège (2020) · Bréhier, Cui & Hong (2019)

Weak extrapolation

Richardson extrapolation estimates an expected terminal observable. At fixed spatial resolution and final time, suppose the observable has the expansion \(E[P_h] = \mu + C h^p + O(h^{p+\delta})\) with a common leading coefficient and \(\delta>0\). Combining \(h\) and \(h/2\) with weights \(a=2^p/(2^p-1)\) and \(-b=-1/(2^p-1)\) cancels the leading bias. Set weak_order=p and pass a pure JAX observable for nonlinear statistics. The expansion needs regularity of the noise, drift and observable. A weak convergence bound alone does not establish it. See Talay & Tubaro (1990), Wang (2016) and Bréhier (2024).

For \(M\) independent coarse and fine samples with marginal variances \(V_c\) and \(V_f\), the extrapolated mean has variance \((a^2 V_f + b^2 V_c)/M\). For paired observables \(F,C\) sharing noise, the variance is \((a^2 V_f + b^2 V_c - 2ab\,\mathrm{Cov}(F,C))/M\). Set \(a=b=1\) for the variance of the fine-minus-coarse mean. The reported standard errors use sample variances with ddof=1. See Giles (2008).

The independent sampler is the default. Prefer coupled=True for compatible stochastic steppers, which share Brownian paths through the experimental increment protocol. Coupling is especially useful for estimating the fine-minus-coarse correction. An observed correction below its sampling uncertainty gives an inconclusive order estimate. The validation notebook displays both samplers together, with the coupled estimate first.

Frozen-coefficient Cahn–Hilliard stability

Derived ETD1 check. Around a constant \(u=\pm U\), a retained mode with Laplacian magnitude \(\kappa\) has multiplier \(g=e^{hL}+h\phi_1(hL)\lambda\), where \(L=-\nu c_1\kappa-\nu\gamma\kappa^2\) and \(\lambda=-3\nu c_3U^2\kappa\). Solve \(g=-1\) for the first bound among the retained modes. When \(L\ne0\) and a crossing exists, the crossing is \(\log(1-2L/(L+\lambda))/L\). At \(L=0\) use \(-2/\lambda\). The controlling wavenumber is generally on the scale \(1/\gamma\), so the highest grid mode need not control the step.

\(\varepsilon\) \(U\) Retained index cutoff Binding \(h\) \(\gamma\kappa\)
0.025 1 15 \(1.7260\times10^{-4}\) 2.776
0.005 1 255 \(6.6469\times10^{-6}\) 3.193
0.005 1.2 255 \(3.5412\times10^{-6}\) 4.242

On the side-two periodic grid with \(N=64\), the deterministic stress run started at \(1+10^{-9}\cos(15\pi x)\cos(15\pi y)\) with \(\varepsilon=0.025\). Through time 0.03 it was finite at \(h=2\times10^{-4}\) and non-finite at \(3\times10^{-4}\). The first step exceeds the linear bound, so finite amplitude on this horizon does not establish stability above that bound.

Energy functionals

The exponax_spde.functionals module uses the channel-first periodic grid. The quadratic terms use rFFT Parseval multipliers, with each conjugate pair counted once. The scalar quadratic_energy(u) uses unit total volume. Pass a scalar volume, or spatial Fourier multipliers times the volume, as weights. The free-energy routines read the physical volume and Fourier wavenumbers from the stepper and use \(dx^d\) for local potential terms.

  • ginzburg_landau(stepper, u) integrates the Allen–Cahn gradient term and double well \(\lambda(u^2-1)^2/4\). Allen & Cahn (1979)
  • van_der_waals(stepper, u) uses the \(H^{-1}\) mobility \(-\Delta\) with \(\nu\gamma|\nabla u|^2/2\) and local potential \(\nu(c_1 u^2/2 + c_3u^4/4)\). Exponax writes \(+\Delta(c_1u+c_3u^3-\gamma\Delta u)\). The paper writes \(-\Delta(f(u)+\varepsilon^2\Delta u)\), so its \(F'=-f\) equals \(c_1u+c_3u^3\), up to the mobility factor \(\nu\). For the paper's unit diffusivity and double-well coefficients, add \(|\Omega|/4\) to match its potential energy zero. Cahn & Hilliard (1958) · Blömker, Sander & Wanner (2016)
  • swift_hohenberg(stepper, u) integrates the squared operator \(\|(k_c+\Delta)u\|^2/2\), subtracts \(r\|u\|^2/2\), and subtracts the polynomial antiderivative of the reaction. Swift & Hohenberg (1977) · Cross & Hohenberg (1993)

For a dealiased drift, the antiderivative of its nonlinear polynomial is evaluated at \(Pu\), with \(P\) the drift's mask. Variation gives \(P F'(Pu)\) because \(P\) is self-adjoint. Terms in the linear symbol remain unfiltered. This is the Galerkin energy for the untamed Allen–Cahn and Swift–Hohenberg \(L^2\) flows and the Cahn–Hilliard \(H^{-1}\) flow.

Derived fixed-grid checks. The deterministic energy decay and mass checks use the declared stable timestep. The Itô diagnostic tests the conditional energy of the deterministic step \(a\) plus its independent centred OU increment \(O\). For the double well and local variance \(s^2\) the correction to \(F(a)\) is \((6a^2s^2+3s^4-2s^2)/4\) at unit well strength. The spectral gradient term adds the OU derivative power to the deterministic gradient power. The residual compares this exact conditional energy change with the left-point quadrature of dissipation and \(\sigma^2\operatorname{tr}(Q D^2 E)/2\). A projected nonlinear drift can have a different mesh energy, so the three gradient-flow diagnostics use the unfiltered drift. The Burgers and conservative-KS quadratic budgets use dealiased convection on the retained band. The Diffusion and advection–diffusion budgets use their exact linear drift.