Skip to content

Commit 95727f2

Browse files
committed
JuliaFormatter applied to code changes
1 parent 65f6e56 commit 95727f2

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

src/Thermal/HeatTransfer/ideal_components.jl

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -202,19 +202,18 @@ This is a model to collect the heat flows from `m` heatports to one single heatp
202202
- `m`: Number of heat ports (e.g. m=2: `port_a1`, `port_a2`)
203203
"""
204204
@mtkmodel ThermalCollector begin
205-
@structural_parameters begin
206-
m::Integer = 1
207-
end
208-
209-
@components begin
210-
port_a = [HeatPort(name = Symbol(:port_a, i)) for i in 1:m]
211-
port_b = HeatPort()
212-
end
205+
@structural_parameters begin
206+
m::Integer = 1
207+
end
213208

214-
@equations begin
215-
port_b.Q_flow + sum(k -> k.Q_flow, port_a) ~ 0
216-
port_b.T ~ port_a[1].T
217-
[port_a[i].T ~ port_a[i + 1].T for i in 1:(m - 1)]
218-
end
209+
@components begin
210+
port_a = [HeatPort(name = Symbol(:port_a, i)) for i in 1:m]
211+
port_b = HeatPort()
212+
end
219213

214+
@equations begin
215+
port_b.Q_flow + sum(k -> k.Q_flow, port_a) ~ 0
216+
port_b.T ~ port_a[1].T
217+
[port_a[i].T ~ port_a[i + 1].T for i in 1:(m - 1)]
218+
end
220219
end

0 commit comments

Comments
 (0)