ETDRK Integrator
ETDRK¤
torchfsm.integrator.ETDRKIntegrator
¤
Bases: Enum
ETDRK Integrator Provides a unified interface for all ETDRK methods.
Source code in torchfsm/integrator/_etdrk.py
85 86 87 88 89 90 91 92 93 |
|
torchfsm.integrator._etdrk.ETDRK0
¤
Exactly solve a linear PDE in Fourier space
Source code in torchfsm/integrator/_etdrk.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
__init__
¤
__init__(dt: float, linear_coef: Tensor)
Source code in torchfsm/integrator/_etdrk.py
15 16 17 18 19 20 21 |
|
step
¤
step(u_hat)
Source code in torchfsm/integrator/_etdrk.py
23 24 25 26 27 |
|
torchfsm.integrator._etdrk.ETDRK1
¤
Bases: ETDRK0
First-order ETDRK method.
Source code in torchfsm/integrator/_etdrk.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
__init__
¤
__init__(
dt: float,
linear_coef: Tensor,
nonlinear_func: Callable[[Tensor], Tensor],
)
Source code in torchfsm/integrator/_etdrk.py
35 36 37 38 39 40 41 42 43 44 45 |
|
step
¤
step(u_hat)
Source code in torchfsm/integrator/_etdrk.py
47 48 49 50 51 |
|
torchfsm.integrator._etdrk.ETDRK2
¤
Bases: ETDRK1
Second-order ETDRK method.
Source code in torchfsm/integrator/_etdrk.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
__init__
¤
__init__(
dt: float,
linear_coef: Tensor,
nonlinear_func: Callable[[Tensor], Tensor],
)
Source code in torchfsm/integrator/_etdrk.py
59 60 61 62 63 64 65 66 67 68 69 70 |
|
step
¤
step(u_hat)
Source code in torchfsm/integrator/_etdrk.py
72 73 74 75 76 77 78 79 80 81 82 |
|