Skip to content
Blocks.LinearDependency.md

Blocks.LinearDependency

This component extends from SI2SO

Usage

TranslatedComponents.Blocks.LinearDependency(y0=0, k1=0, k2=0)

Parameters:

NameDescriptionUnitsDefault value
y0Initial value0
k1Gain of u10
k2Gain of u20

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

y(t)=y0+k1u1(t)+k2u2(t)

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
end
Flattened 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 {}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses