Sum

Output the sum of the elements of the input vector

    Sum

Library

Modelica/Blocks/Math

Description

This blocks computes output y assum of the elements of the input signal vectoru:

    y = u[1] + u[2] + ...;

Example:

     parameter:   nin = 3;  results in the following equations:     y = u[1] + u[2] + u[3];

Parameters

Sum_0

NameLabelDescriptionData TypeValid Values

mo_nin

nin

Number of inputs

Scalar

mo_k

k

Optional: sum coefficients

Vector

Sum_1

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

Connector of Real input signals

input

1

y

implicit

Connector of Real output signal

output

1

See Also