Time integration schemes¶
- ETDRK drift orders describe the deterministic integration used with the stochastic increment.
- Multiplicative Euler–Maruyama and Milstein are available for periodic Allen–Cahn. Milstein needs trace-class noise.
- Taming controls the Allen–Cahn cubic and caps deterministic accuracy at order one.
- Lie and Strang splitting for Allen–Cahn use an exact reaction flow with additive noise.
exponax_spde.TamedPolynomialNonlinearFun ¶
Evaluate a polynomial with optional Hutzenthaler–Jentzen taming.
The nonlinearity evaluates \(p(u)=\sum_i c_i u^i\) on the pre-dealiased physical field. When taming is enabled, it applies \(p(u)/(1+h|p(u)|)\) and returns the post-dealiased Fourier transform. The Allen–Cahn cubic uses coefficients [0, 0, 0, −λ].
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num_spatial_dims
|
int
|
Number of spatial dimensions. |
required |
num_points
|
int
|
Grid points per spatial axis. |
required |
dealiasing_fraction
|
float
|
Fraction of modes retained by the nonlinear evaluation. |
required |
coefficients
|
Sequence[float]
|
Polynomial coefficients in ascending order of power. |
required |
dt
|
float
|
Time step used in the taming denominator. |
required |
use_taming
|
bool
|
Whether to tame the evaluated polynomial. |
True
|
exponax_spde.TamingOrderWarning ¶
Taming limits convergence to first order against the untamed model.
exponax_spde.stepper.phi1 ¶
phi1(z: Array) -> Array
Evaluate \(\varphi_1(z)=(e^z-1)/z\) with its analytic zero limit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
z
|
Array
|
Scalar or array of real or complex arguments. |
required |
Returns:
| Type | Description |
|---|---|
Array
|
Values of \(\varphi_1\), with \(\varphi_1(0)=1\) and derivative \(1/2\) at zero. |