modelAdd2

Output the sum of the two real inputs (graphics can be changed)
Diagram of Add2

Information

This blocks computes output y as sum of the two input signals u1 and u2:

    y = u1 + u2;

The second input can be obtained either from left side of block or from bottom. The corresponding connectors are u2 or u2b, respectively.

Parameters

TypeNameDefaultDescription
BooleanfromLefttrueTrue, if second input is left (else below)
Integern1Number of inputs = number of outputs

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInput[n]u1
Modelica.Blocks.Interfaces.RealInput[n]u2
Modelica.Blocks.Interfaces.RealOutput[n]y
Modelica.Blocks.Interfaces.RealInput[n]u2b

Components

TypeNameDefaultDescription
Add[n]add