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

TypeNameDefaultDescription
Integernout (from SIMO)1Number of outputs
Real[nout]wones(nout)Optional: weight coefficients

Connectors

TypeNameDefaultDescription
RealInputu (from SIMO)Connector of Real input signal
RealOutput[nout]y (from SIMO)Connector of Real output signals