Skip to content

Commit

Permalink
Merge pull request #332 from SciML/bgc/hydraulic_init
Browse files Browse the repository at this point in the history
Remove defaults for Hydraulic components
  • Loading branch information
ChrisRackauckas authored Sep 23, 2024
2 parents 2544d26 + 099d5e8 commit 36f4018
Show file tree
Hide file tree
Showing 8 changed files with 283 additions and 255 deletions.
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

0 comments on commit 36f4018

Please sign in to comment.