Blocks.LinearDependency ​
This component extends from SI2SO
Usage ​
TranslatedComponents.Blocks.LinearDependency(y0=0, k1=0, k2=0)
Parameters: ​
| Name | Description | Units | Default value |
|---|---|---|---|
y0 | – | 0 | |
k1 | – | 0 | |
k2 | – | 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 ​
julia
using TranslatedComponents #hide
using ModelingToolkit #hide
@variables y0 #hide
@variables k1 #hide
@variables k2 #hide
@named sys = TranslatedComponents.Blocks.LinearDependency(y0=y0, k1=k1, k2=k2) #hide
full_equations(sys) #hide<< @example-block not executed in draft mode >>Source ​
dyad
component LinearDependency
extends SI2SO
parameter y0::Real = 0
parameter k1::Real = 0
parameter k2::Real = 0
relations
y = y0 + k1 * u1 + k2 * u2
endFlattened Source
dyad
component LinearDependency
u1 = RealInput()
u2 = RealInput()
y = RealOutput()
parameter y0::Real = 0
parameter k1::Real = 0
parameter k2::Real = 0
relations
y = y0 + k1 * u1 + k2 * u2
metadata {}
endTest Cases ​
No test cases defined.
Related ​
Examples
Experiments
Analyses