pathsim.blocks.ode module
- class pathsim.blocks.ode.ODE(func=<function ODE.<lambda>>, initial_value=0.0, jac=None)[source]
Bases:
BlockThis block implements an ordinary differential equation (ODE) defined by its right hand side
d/dt x = func(x, u, t)
with inhomogenity (input) ‘u’ and state vector ‘x’. The function can be nonlinear and the ODE can be of arbitrary order. The block utilizes the integration engine to solve the ODE by integrating the ‘func’, which is the right hand side function.
- Parameters:
func (callable) – right hand side function of ODE
initial_value (array[float]) – initial state / initial condition
jac (callable, None) – jacobian of ‘func’ or ‘None’