blockAddn

Gives the n dimension sum of two n dimension inputs
Diagram of Addn

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

Hypothesis and equations

This model returns the sum, element by element, of two n dimension inputs, weighted by two factors k1 and k2.

Bibliography

Model based on Modelica.Blocks.Math.Add, adding the n dimension to input/ouput.

y[1:n] = k1*u1[1:n] + k2*u2[1:n]

Instructions for use

none

Known limits / Use precautions

none

Validations

Validated model - Aurélie Kaemmerlen 11/2010

--------------------------------------------------------------
Licensed by EDF under a 3-clause BSD-license
Copyright © EDF 2009 - 2023
BuildSysPro version 3.6.0
Author : Aurélie KAEMMERLEN, EDF (2010)
Initial model : Add, Martin Otter, Copyright © Modelica Association and DLR.
--------------------------------------------------------------

Parameters

TypeNameDefaultDescription
Realk1+1Gain of upper input
Realk2+1Gain of lower input
IntegernDimension of the inputs

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInput[n]u1Connector of Real input signal 1
Modelica.Blocks.Interfaces.RealInput[n]u2Connector of Real input signal 2
Modelica.Blocks.Interfaces.RealOutput[n]yConnector of Real output signal