$(instance)Add3Test Icon

Add3Test

Usage

Add3Test()

Behavior

\[ \begin{align} \mathtt{add3.u1}\left( t \right) &= \mathtt{c1.y}\left( t \right) \\ \mathtt{add3.u2}\left( t \right) &= \mathtt{c2.y}\left( t \right) \\ \mathtt{add3.u3}\left( t \right) &= \mathtt{c3.y}\left( t \right) \\ \mathtt{c1.y}\left( t \right) &= \mathtt{c1.k} \\ \mathtt{c2.y}\left( t \right) &= \mathtt{c2.k} \\ \mathtt{c3.y}\left( t \right) &= \mathtt{c3.k} \\ \mathtt{add3.y}\left( t \right) &= \mathtt{add3.k1} \mathtt{add3.u1}\left( t \right) + \mathtt{add3.k2} \mathtt{add3.u2}\left( t \right) + \mathtt{add3.k3} \mathtt{add3.u3}\left( t \right) \end{align} \]

Source

component Add3Test
  c1 = Constant(k=1)
  c2 = Constant(k=2)
  c3 = Constant(k=3)
  add3 = Add3()
relations
  connect(add3.u1, c1.y)
  connect(add3.u2, c2.y)
  connect(add3.u3, c3.y)
metadata {
  "JuliaSim": {"tests": {"case1": {"stop": 5, "expect": {"final": {"add3.y": 6}}}}}
}
end
Flattened Source
component Add3Test
  c1 = Constant(k=1)
  c2 = Constant(k=2)
  c3 = Constant(k=3)
  add3 = Add3()
relations
  connect(add3.u1, c1.y)
  connect(add3.u2, c2.y)
  connect(add3.u3, c3.y)
metadata {
  "JuliaSim": {"tests": {"case1": {"stop": 5, "expect": {"final": {"add3.y": 6}}}}}
}
end

Test Cases

Test Case case1

  • Examples
  • Experiments
  • Analyses