Solvers
Interface to nonlinear and ODE solvers
factory(module, name)
¤
Factory method for the solvers
Parameters:
Name | Type | Description | Default |
---|---|---|---|
module |
str
|
Name of library providing solvers (diffrax, runge_kutta...) |
required |
name |
str
|
Name of function to be used (ODE, newton...) |
required |
Returns:
Type | Description |
---|---|
(Callable, Callable)
|
Two functions, to build the solution object and to extract the states (qs) from this objects |
Source code in feniax/systems/sollibs/__init__.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
Diffrax¤
ode(F, args, sett, q0, t0, t1, tn, dt, **kwargs)
¤
Diffrax ODE solover
Source code in feniax/systems/sollibs/diffrax.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
pull_newton(sol)
¤
Extract states from diffrax Newton solution object
Source code in feniax/systems/sollibs/diffrax.py
108 109 110 111 112 113 |
|
pull_ode(sol)
¤
Extract states from diffrax ODE solution object
Source code in feniax/systems/sollibs/diffrax.py
100 101 102 103 104 105 |
|