Skip to content
Blocks.Add3.md

Blocks.Add3 ​

Usage ​

TranslatedComponents.Blocks.Add3(k1=1, k2=1, k3=1)

Parameters: ​

NameDescriptionUnitsDefault value
k1–1
k2–1
k3–1

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)

  • u3 - 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 k1 #hide
@variables k2 #hide
@variables k3 #hide
@named sys = TranslatedComponents.Blocks.Add3(k1=k1, k2=k2, k3=k3) #hide
full_equations(sys) #hide
<< @example-block not executed in draft mode >>

Source ​

dyad
component Add3
  u1 = RealInput()
  u2 = RealInput()
  u3 = RealInput()
  y = RealOutput()
  parameter k1::Real = 1
  parameter k2::Real = 1
  parameter k3::Real = 1
relations
  y = k1 * u1 + k2 * u2 + k3 * u3
end
Flattened Source
dyad
component Add3
  u1 = RealInput()
  u2 = RealInput()
  u3 = RealInput()
  y = RealOutput()
  parameter k1::Real = 1
  parameter k2::Real = 1
  parameter k3::Real = 1
relations
  y = k1 * u1 + k2 * u2 + k3 * u3
metadata {}
end


Test Cases ​

No test cases defined.

  • Examples

  • Experiments

  • Analyses