Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Carman committed Jan 17, 2024
1 parent be15614 commit a190557
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/Hydraulic/IsothermalCompressible/components.jl
Original file line number Diff line number Diff line change
Expand Up @@ -673,17 +673,16 @@ dm ────► │ │ area

push!(eqs, connect(moving_volume.port, volumes[end].port, pipe_bases[end].port_a))
push!(eqs, connect(pipe_bases[1].port_b, damper.port_a))
for i in 1:N-1
for i in 1:(N - 1)
push!(eqs,
connect(volumes[i].port, pipe_bases[i + 1].port_b, pipe_bases[i].port_a))
end

for i in 1:N

push!(eqs,
volumes[i].dx ~ ifelse((vol >= (i - 1) * (x_max / N) * area) &
(vol < (i) * (x_max / N) * area),
direction*flange.v, 0))
push!(eqs,
volumes[i].dx ~ ifelse((vol >= (i - 1) * (x_max / N) * area) &
(vol < (i) * (x_max / N) * area),
direction * flange.v, 0))

push!(eqs, pipe_bases[i].x ~ volumes[i].vol / volumes[i].area)
end
Expand Down
1 change: 0 additions & 1 deletion test/Hydraulic/isothermal_compressible.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ end

for N in [1, 2]
for damping_volume in [0.01 * 0.1 * 0.25]

@named system = System(N; damping_volume)
s = complete(system)
sys = structural_simplify(system)
Expand Down

0 comments on commit a190557

Please sign in to comment.