pathsim.blocks.integrator module
- class pathsim.blocks.integrator.Integrator(initial_value=0.0)[source]
Bases:
BlockIntegrates the input signal using a numerical integration engine like this:
\[y(t) = \int_0^t u(\tau) \ d \tau\]The Integrator block is inherently MIMO capable, so u and y can be vectors.
Example
This is how to initialize the integrator:
from pathsim.blocks import Integrator #initial value 0.0 i1 = Integrator() #initial value 2.5 i2 = Integrator(2.5)
- Parameters:
initial_value (float, array) – initial value of integrator
- update(t)[source]
update system equation fixed point loop
Note
integrator does not have passthrough, therefore this method is performance optimized for this case