Add3

Output the sum of the three inputs

    Add3

Library

Modelica/Blocks/Math

Description

This blocks computes output y as sum of the three input signals u1, u2 and u3:

    y = k1*u1 + k2*u2 + k3*u3;

Example:

     parameter:   k1= +2, k2= -3, k3=1;

  results in the following equations:

     y = 2 * u1 - 3 * u2 + u3;

Parameters

Add3_0

NameLabelDescriptionData TypeValid Values

mo_k1

k1

Gain of input signal 1

Scalar

mo_k2

k2

Gain of input signal 2

Scalar

mo_k3

k3

Gain of input signal 3

Scalar

Add3_1

NameLabelDescriptionData TypeValid Values

mo_u1

u1

u1

Structure

mo_u1/fixed

fixed

Cell of scalars

true
false

mo_u1/start

start

Cell of scalars

mo_u2

u2

u2

Structure

mo_u2/fixed

fixed

Cell of scalars

true
false

mo_u2/start

start

Cell of scalars

mo_u3

u3

u3

Structure

mo_u3/fixed

fixed

Cell of scalars

true
false

mo_u3/start

start

Cell of scalars

mo_y

y

y

Structure

mo_y/fixed

fixed

Cell of scalars

true
false

mo_y/start

start

Cell of scalars

Ports

NameTypeDescriptionIO TypeNumber

u1

implicit

Connector of Real input signal 1

input

1

u2

implicit

Connector of Real input signal 2

input

2

u3

implicit

Connector of Real input signal 3

input

3

y

implicit

Connector of Real output signal

output

1