gotran.solver package¶
Submodules¶
gotran.solver.odesolver module¶
-
gotran.solver.odesolver.
ODESolver
(ode, method='scipy', **options)[source]¶ A generic ODE solver for solving problem of the types on the form,
\[\dot{y} = f(t,y), \quad y(t_0) = y_0.\]Here one need to specific the backend which is either Scipy or Assimulo.
Arguments
- ode : gotran.ODE or gotran.CellModel
- The ode you want to solve in a gotran object
- method : str
- Solver method. Possible inputs are or ‘scipy’ (Default:’sundials’)
- options : dict:
- Options for the solver, see list_solver_options
gotran.solver.scipysolver module¶
gotran.solver.sundialssolver module¶
To use install assimulo which is a python wrapper of the sundials solvers
conda install assimulo
-
class
gotran.solver.sundialssolver.
SundialsSolver
(ode, method='cvode', **options)[source]¶ Bases:
gotran.solver.odesolver.Solver
-
problem
¶
-
solver
¶
-
gotran.solver.utils module¶
-
class
gotran.solver.utils.
suppress_stdout_stderr
[source]¶ Bases:
object
A context manager for doing a “deep suppression” of stdout and stderr in Python, i.e. will suppress all print, even if the print originates in a compiled C/Fortran sub-function. This will not suppress raised exceptions, since exceptions are printed to stderr just before a script exits, and after the context manager has exited (at least, I think that is why it lets exceptions through).