bte.utils.IMEX_RK2#
Module Contents#
Classes#
IMEX-RK method |
|
IMEX-RK method |
|
IMEX-RK method |
|
IMEX-RK method |
|
IMEX-RK method |
|
IMEX-RK method |
- class bte.utils.IMEX_RK2.IMEX_RK(b1, A1, b2, A2)[source]#
IMEX-RK method
y_t = f(t,y) + g(t,y)
# f(t,y) non-stiff, explicit # g(t,y) stiff, implicit
- Parameters:
b1 ([type]) – [description]
A1 ([type]) – [description]
b2 ([type]) – [description]
A2 ([type]) – [description]
- Raises:
ValueError – A1,b1,A2,b2 shape must be consistent.
- __call__(t0, y0, h, f, g, g_solver)[source]#
__call__ [summary]
- Parameters:
f ([type]) – [description]
t0 ([type]) – [description]
y0 ([type]) – [description]
h ([type]) – [description]
g ([type]) – [description]
g_solver ([type]) – the solver of u^{(i)}=H(tilde u^{(i)},Delta t A_{ii};G), u=g_solver(tilde_u, Delta t A_{ii})
- Returns:
[description]
- Return type:
[type]
- class bte.utils.IMEX_RK2.IMEX_RK1[source]#
Bases:
IMEX_RKIMEX-RK method
y_t = f(t,y) + g(t,y)
# f(t,y) non-stiff, explicit # g(t,y) stiff, implicit
- Parameters:
b1 ([type]) – [description]
A1 ([type]) – [description]
b2 ([type]) – [description]
A2 ([type]) – [description]
- Raises:
ValueError – A1,b1,A2,b2 shape must be consistent.
- class bte.utils.IMEX_RK2.IMEX_RK2[source]#
Bases:
IMEX_RKIMEX-RK method
y_t = f(t,y) + g(t,y)
# f(t,y) non-stiff, explicit # g(t,y) stiff, implicit
- Parameters:
b1 ([type]) – [description]
A1 ([type]) – [description]
b2 ([type]) – [description]
A2 ([type]) – [description]
- Raises:
ValueError – A1,b1,A2,b2 shape must be consistent.
- class bte.utils.IMEX_RK2.IMEX_RK3[source]#
Bases:
IMEX_RKIMEX-RK method
y_t = f(t,y) + g(t,y)
# f(t,y) non-stiff, explicit # g(t,y) stiff, implicit
- Parameters:
b1 ([type]) – [description]
A1 ([type]) – [description]
b2 ([type]) – [description]
A2 ([type]) – [description]
- Raises:
ValueError – A1,b1,A2,b2 shape must be consistent.
- class bte.utils.IMEX_RK2.IMEX_RK1_stiff[source]#
Bases:
IMEX_RKIMEX-RK method
y_t = f(t,y) + g(t,y)
# f(t,y) non-stiff, explicit # g(t,y) stiff, implicit
- Parameters:
b1 ([type]) – [description]
A1 ([type]) – [description]
b2 ([type]) – [description]
A2 ([type]) – [description]
- Raises:
ValueError – A1,b1,A2,b2 shape must be consistent.
- class bte.utils.IMEX_RK2.IMEX_RK2_stiff[source]#
Bases:
IMEX_RKIMEX-RK method
y_t = f(t,y) + g(t,y)
# f(t,y) non-stiff, explicit # g(t,y) stiff, implicit
- Parameters:
b1 ([type]) – [description]
A1 ([type]) – [description]
b2 ([type]) – [description]
A2 ([type]) – [description]
- Raises:
ValueError – A1,b1,A2,b2 shape must be consistent.