Package qubx :: Module maths :: Class DrivenODESystem
[hide private]
[frames] | no frames]

Class DrivenODESystem

source code

object --+
         |
        DrivenODESystem

Instance Methods [hide private]
 
__init__(self, expr, method=0, locals=None)
Initializes a differential integrator.
source code
 
__call__(self, xx, *var0, **signals)
Integrates the ODEs.
source code
 
solve_odeint(self, xx, var0, driven_ixs, inputs) source code
 
solve_vode(self, xx, var0, driven_ixs, inputs) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, expr, method=0, locals=None)
(Constructor)

source code 

Initializes a differential integrator.

Parameters:
  • expr - ODE system suitable for qubx.accept.acceptODEs(static=['x'], custom=True)
Overrides: object.__init__

__call__(self, xx, *var0, **signals)
(Call operator)

source code 

Integrates the ODEs.

Parameters:
  • xx - numpy.array of x (aka t) values
  • var0 - one positional argument per differential equation: float initial value
  • signals - name -> numpy.array or float for all names in self.input_names
Returns:
numpy.array, len(xx) rows, len(self.diffeq_names) columns