Skip to content

Commit a190557

Browse files
author
Brad Carman
committed
format
1 parent be15614 commit a190557

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/Hydraulic/IsothermalCompressible/components.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -673,17 +673,16 @@ dm ────► │ │ area
673673

674674
push!(eqs, connect(moving_volume.port, volumes[end].port, pipe_bases[end].port_a))
675675
push!(eqs, connect(pipe_bases[1].port_b, damper.port_a))
676-
for i in 1:N-1
676+
for i in 1:(N - 1)
677677
push!(eqs,
678678
connect(volumes[i].port, pipe_bases[i + 1].port_b, pipe_bases[i].port_a))
679679
end
680680

681681
for i in 1:N
682-
683-
push!(eqs,
684-
volumes[i].dx ~ ifelse((vol >= (i - 1) * (x_max / N) * area) &
685-
(vol < (i) * (x_max / N) * area),
686-
direction*flange.v, 0))
682+
push!(eqs,
683+
volumes[i].dx ~ ifelse((vol >= (i - 1) * (x_max / N) * area) &
684+
(vol < (i) * (x_max / N) * area),
685+
direction * flange.v, 0))
687686

688687
push!(eqs, pipe_bases[i].x ~ volumes[i].vol / volumes[i].area)
689688
end

test/Hydraulic/isothermal_compressible.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ end
139139

140140
for N in [1, 2]
141141
for damping_volume in [0.01 * 0.1 * 0.25]
142-
143142
@named system = System(N; damping_volume)
144143
s = complete(system)
145144
sys = structural_simplify(system)

0 commit comments

Comments
 (0)