blockParts
Divide the input value by weights
Extends from Modelica.Blocks.Interfaces.SIMO (Single Input Multiple Output continuous control block).
Information
This blocks divide input value u to output array y by weights. The sum of output values is equal to input value u:
u = (w[1]*y[1] + w[2]*y[2] + ... + w[n]*y[n]) / (w[1] + w[2] + ... + w[n]);
Example:
parameter: nin = 3; w=ones(3); results in the following equations:
y[1]=u/3, y[2]=u/3, y[3]=u/3;
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nout (from SIMO) | 1 | Number of outputs |
| Real[nout] | w | ones(nout) | Optional: weight coefficients |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u (from SIMO) | Connector of Real input signal | |
| RealOutput[nout] | y (from SIMO) | Connector of Real output signals |