MultiSum

Sum of Reals: y = k[1]*u[1] + k[2]*u[2] + ... + k[n]*u[n]

    MultiSum

Library

Modelica/Blocks/Math

Description

This blocks computes the scalar Real output "y" as sum of the elements of theReal input signal vector u:

y = k[1]*u[1] + k[2]*u[2] + ... k[N]*u[N];

The input connector is a vector of Real input signals.When a connection line is drawn, the dimension of the inputvector is enlarged by one and the connection is automaticallyconnected to this new free index (thanks to theconnectorSizing annotation).

The usage is demonstrated, e.g., in exampleModelica.Blocks.Examples.RealNetwork1.

If no connection to the input connector "u" is present,the output is set to zero: y=0.

Parameters

MultiSum_0

NameLabelDescriptionData TypeValid Values

mo_nu

nu

Number of input connections

Scalar

mo_k

k

Input gains

Vector

MultiSum_1

NameLabelDescriptionData TypeValid Values

mo_significantDigits

significantDigits

Number of significant digits to be shown in dynamic diagram layer for y

Scalar

MultiSum_2

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

input

1

y

implicit

output

1

See Also