IC
Sets the initial value of the signal.
blockType: InitialCondition
Path in the library:
|
Description
The IC block sets the initial condition of the signal on its input port, such as the signal value at the time you start the simulation . To do this, the block outputs the specified initial condition when you start the simulation, regardless of the actual value of the input signal. The block then outputs the actual value of the input signal.
The IC block is useful for providing an initial assumption for algebraic state variables in a loop.
Behaviour for non-zero calculation step offset
If block IC has a non-zero calculation step offset , it outputs its initial value at time:
,
where is the smallest integer such that .
That is, the block IC outputs its initial value when the blocks are first executed with the calculation step , which may be after .
Ports
Input
#
IN_1
—
input signal
scalar
| vector
| matrix
Details
Input signal as a scalar, vector or matrix. The block sets the initial condition of this signal to the parameters Initial value.
Data types |
|
Complex numbers support |
Yes |
Output
#
OUT_1
—
output signal
scalar
| vector
| matrix
Details
The output signal is provided as the value of the parameters Initial value, followed by the actual values of the input signal.
Data types |
|
Complex numbers support |
Yes |
Parameters
Main
#
Initial value —
initial value
Scalar / array of real and/or complex numbers
Details
Set the initial value of the input signal as a scalar, vector or matrix. The value must have the same dimensionality as the input signal.
Default value |
|
Program usage name |
|
Tunable |
Yes |
Evaluatable |
Yes |