You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Hydraulic/IsothermalCompressible/components.jl
+29-7Lines changed: 29 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,12 @@
1
1
2
2
"""
3
-
Cap(; name)
3
+
Cap(; p_int, name)
4
4
5
5
Caps a hydraulic port to prevent mass flow in or out.
6
6
7
+
# Parameters:
8
+
- `p_int`: [Pa] initial pressure (set by `p_int` argument)
9
+
7
10
# Connectors:
8
11
- `port`: hydraulic port
9
12
"""
@@ -25,10 +28,13 @@ Caps a hydraulic port to prevent mass flow in or out.
25
28
end
26
29
27
30
"""
28
-
Open(; name)
31
+
Open(; p_int, name)
29
32
30
33
Provides an "open" boundary condition for a hydraulic port such that mass flow `dm` is non-zero. This is opposite from an un-connected hydraulic port or the `Cap` boundary component which sets the mass flow `dm` to zero.
31
34
35
+
# Parameters:
36
+
- `p_int`: [Pa] initial pressure (set by `p_int` argument)
37
+
32
38
# Connectors:
33
39
- `port`: hydraulic port
34
40
"""
@@ -224,11 +230,12 @@ end
224
230
@deprecate Pipe Tube
225
231
226
232
"""
227
-
FlowDivider(; n, name)
233
+
FlowDivider(;p_int, n, name)
228
234
229
235
Reduces the flow from `port_a` to `port_b` by `n`. Useful for modeling parallel tubes efficiently by placing a `FlowDivider` on each end of a tube.
230
236
231
237
# Parameters:
238
+
- `p_int`: [Pa] initial pressure
232
239
- `n`: divide flow from `port_a` to `port_b` by `n`
Valve with `area` input and discharge coefficient `Cd` defined by https://en.wikipedia.org/wiki/Discharge_coefficient. The `Cd_reverse` parameter allows for directional flow restriction, making it possible to define a check valve.
316
323
317
324
# Parameters:
325
+
- `p_a_int`: [Pa] initial pressure for `port_a`
326
+
- `p_b_int`: [Pa] initial pressure for `port_b`
327
+
- `area_int`: [m^2] initial valve opening
318
328
- `Cd`: discharge coefficient flowing from `a → b`
319
329
- `Cd_reverse`: discharge coefficient flowing from `b → a`
320
330
- `minimum_area`: when `reversible = false` applies a forced minimum area
@@ -513,7 +523,7 @@ See also [`FixedVolume`](@ref), [`DynamicVolume`](@ref)
Volume with moving wall with `flange` connector for converting hydraulic energy to 1D mechanical. The `direction` argument aligns the mechanical port with the hydraulic port, useful when connecting two dynamic volumes together in oppsing directions to create an actuator.
0 commit comments