Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions docs/src/connectors/sign_convention.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,10 @@ using ModelingToolkitStandardLibrary.Hydraulic.IsothermalCompressible

@mtkmodel ConstantMassFlow begin
@parameters begin
p_int
dm
end
@components begin
port = HydraulicPort(; p_int)
port = HydraulicPort()
end
@equations begin
port.dm ~ -dm
Expand All @@ -176,7 +175,7 @@ A positive input mass flow leads to an increasing pressure (in this case we get
```@example sign_convention
@mtkmodel System begin
@components begin
volume = FixedVolume(; vol = 10.0, p_int = 0.0)
volume = FixedVolume(; vol = 10.0)
flow = ConstantMassFlow(; dm = 1)
fluid = HydraulicFluid()
end
Expand Down
Loading
Loading