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
"""
@@ -21,10 +24,13 @@ Caps a hydraulic port to prevent mass flow in or out.
21
24
end
22
25
23
26
"""
24
-
Open(; name)
27
+
Open(; p_int, name)
25
28
26
29
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.
27
30
31
+
# Parameters:
32
+
- `p_int`: [Pa] initial pressure (set by `p_int` argument)
33
+
28
34
# Connectors:
29
35
- `port`: hydraulic port
30
36
"""
@@ -220,11 +226,12 @@ end
220
226
@deprecate Pipe Tube
221
227
222
228
"""
223
-
FlowDivider(; n, name)
229
+
FlowDivider(;p_int, n, name)
224
230
225
231
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.
226
232
227
233
# Parameters:
234
+
- `p_int`: [Pa] initial pressure
228
235
- `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.
312
319
313
320
# Parameters:
321
+
- `p_a_int`: [Pa] initial pressure for `port_a`
322
+
- `p_b_int`: [Pa] initial pressure for `port_b`
323
+
- `area_int`: [m^2] initial valve opening
314
324
- `Cd`: discharge coefficient flowing from `a → b`
315
325
- `Cd_reverse`: discharge coefficient flowing from `b → a`
316
326
- `minimum_area`: when `reversible = false` applies a forced minimum area
@@ -497,7 +507,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