Skip to content

Commit 36f4018

Browse files
Merge pull request #332 from SciML/bgc/hydraulic_init
Remove defaults for Hydraulic components
2 parents 2544d26 + 099d5e8 commit 36f4018

File tree

8 files changed

+283
-255
lines changed

8 files changed

+283
-255
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)