blockAddn
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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | k1 | +1 | Gain of upper input |
| Real | k2 | +1 | Gain of lower input |
| Integer | n | Dimension of the inputs |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput[n] | u1 | Connector of Real input signal 1 | |
| Modelica.Blocks.Interfaces.RealInput[n] | u2 | Connector of Real input signal 2 | |
| Modelica.Blocks.Interfaces.RealOutput[n] | y | Connector of Real output signal |