Skip to content

Commit 7b0fbf9

Browse files
committed
FixedVolume modified to remove free variables
1 parent c064fda commit 7b0fbf9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Hydraulic/IsothermalCompressible/components.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -423,15 +423,10 @@ Fixed fluid volume.
423423
port = HydraulicPort()
424424
end
425425

426-
begin
427-
dm = port.dm
428-
p = port.p
429-
end
430-
431426
@equations begin
432427
D(rho) ~ drho
433-
rho ~ full_density(port, p)
434-
dm ~ drho * vol
428+
rho ~ full_density(port, port.p)
429+
port.dm ~ drho * vol
435430
end
436431

437432
end

0 commit comments

Comments
 (0)