Blocks.LinearDependency
This component extends from SI2SO
Usage
TranslatedComponents.Blocks.LinearDependency(y0=0, k1=0, k2=0)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
y0 | Initial value | – | 0 |
k1 | Gain of u1 | – | 0 |
k2 | Gain of u2 | – | 0 |
Connectors
u1- This connector represents a real signal as an input to a component (RealInput)u2- This connector represents a real signal as an input to a component (RealInput)y- This connector represents a real signal as an output from a component (RealOutput)
Behavior
Source
dyad
component LinearDependency
extends SI2SO
# Initial value
parameter y0::Real = 0
# Gain of u1
parameter k1::Real = 0
# Gain of u2
parameter k2::Real = 0
relations
y = y0 + k1 * u1 + k2 * u2
endFlattened Source
dyad
component LinearDependency
u1 = RealInput()
u2 = RealInput()
y = RealOutput()
# Initial value
parameter y0::Real = 0
# Gain of u1
parameter k1::Real = 0
# Gain of u2
parameter k2::Real = 0
relations
y = y0 + k1 * u1 + k2 * u2
metadata {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses