Model iterator

| Vectorized |
in the palette on the schematic

The unit allows multiple calculation of the model within one time step of integration. The block causes additional intermediate calculation steps at which the model blocks are calculated. The call of the intermediate steps continues as long as the value at the input of the block differs from the value at the previous step (integration step or intermediate step) by more than the accuracy value specified in the properties of the block (that is, if the value changed by more than the accuracy value as a result of calculating the intermediate step). If a vector is supplied to the input port of the block, then the block continues to call intermediate steps until the described condition is met for at least one element of the input vector:

where Uk is the vector on the input port of the block at the current intermediate step, Uk-1 is the vector on the input port of the block at the previous step, i is the number of the element of the input vector, Tol is the vector of accuracy values specified in the properties of the block.

Depending on the properties of the block, either the input value or the residual is fed to the output of the block: Uk – Uk-1 .

This block can be used to iterate algebraic loops of the model.

Input ports

  • inport – input evaluated vector.

Output ports

  • outport – output port with an input vector or with a residual.

Properties

  • Absolute accuracy – a vector of accuracy values for each element of the input vector;
  • Initial value – vector of initial values of the output port of the block;
  • Block output – indicates which value will be fed to the block output ("Input value"/"Residual").

Parameters

None