imex_ars222_step#
- class braintools.quad.imex_ars222_step(f_exp, f_imp, y, t, *args, max_iter=2, **kwargs)#
ARS(2,2,2) IMEX Runge–Kutta step (Ascher, Ruuth & Spiteri, 1997).
Second-order, L-stable, stiffly accurate IMEX Runge–Kutta scheme with
γ = 1 - 1/sqrt(2)andδ = 1 - 1/(2γ):Explicit tableau (c = [0, γ, 1]):
0 | 0 0 0 γ | γ 0 0 1 | δ 1-δ 0 --+-------------------- | δ 1-δ 0
Implicit tableau (c = [0, γ, 1]):
0 | 0 0 0 γ | 0 γ 0 1 | 0 1-γ γ --+-------------------- | 0 1-γ γ
The two implicit stages are solved with Newton’s method; the new state is the last stage.
- Parameters:
f_exp (
Callable[...,PyTree]) – As inimex_euler_step().f_imp (
Callable[...,PyTree]) – As inimex_euler_step().y (
PyTree) – As inimex_euler_step().t (
Array|ndarray|bool|number|bool|int|float|complex|Quantity) – As inimex_euler_step().*args – As in
imex_euler_step().max_iter (
int) – Newton iterations per implicit stage. One iteration is exact whenf_impis linear iny.
- Returns:
The updated state
y_{n+1}.- Return type:
PyTree