Integrator¶
- 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\]or in differential form like this:
\[\begin{split}\begin{eqnarray} \dot{x}(t) &= u(t) \\ y(t) &= x(t) \end{eqnarray}\end{split}\]The Integrator block is inherently MIMO capable, so u and y can be vectors.
Example
This is how to initialize the 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
- Parameters:
t (float) – evaluation time