Skip to content

Commit 5fdfc22

Browse files
author
Brad Carman
committed
fixed sing_convention.md
1 parent 4cd2dc0 commit 5fdfc22

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/src/connectors/sign_convention.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,10 @@ using ModelingToolkitStandardLibrary.Hydraulic.IsothermalCompressible
159159
160160
@mtkmodel ConstantMassFlow begin
161161
@parameters begin
162-
p_int
163162
dm
164163
end
165164
@components begin
166-
port = HydraulicPort(; p_int)
165+
port = HydraulicPort()
167166
end
168167
@equations begin
169168
port.dm ~ -dm
@@ -176,7 +175,7 @@ A positive input mass flow leads to an increasing pressure (in this case we get
176175
```@example sign_convention
177176
@mtkmodel System begin
178177
@components begin
179-
volume = FixedVolume(; vol = 10.0, p_int = 0.0)
178+
volume = FixedVolume(; vol = 10.0)
180179
flow = ConstantMassFlow(; dm = 1)
181180
fluid = HydraulicFluid()
182181
end

0 commit comments

Comments
 (0)