Skip to content

Commit e953585

Browse files
committed
Add tests
1 parent 02a4c85 commit e953585

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/stream_connectors.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,10 @@ sys = expand_connections(compose(simple, [vp1, vp2, vp3]))
208208
vp1.v[2] ~ vp3.v[2]
209209
0 ~ -vp1.i[1] - vp2.i[1] - vp3.i[1]
210210
0 ~ -vp1.i[2] - vp2.i[2] - vp3.i[2]], by = string)
211+
212+
@connector function VectorHeatPort(; name, N = 100, T0 = 0.0, Q0 = 0.0)
213+
@variables (T(t))[1:N]=T0 (Q(t))[1:N]=Q0 [connect = Flow]
214+
ODESystem(Equation[], t, [T; Q], []; name = name)
215+
end
216+
217+
@test_nowarn @named a = VectorHeatPort()

0 commit comments

Comments
 (0)