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
+7-29Lines changed: 7 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,9 @@
1
1
2
2
"""
3
-
Cap(; p_int, name)
3
+
Cap(; 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
-
10
7
# Connectors:
11
8
- `port`: hydraulic port
12
9
"""
@@ -31,13 +28,10 @@ Caps a hydraulic port to prevent mass flow in or out.
31
28
end
32
29
33
30
"""
34
-
Open(; p_int, name)
31
+
Open(; name)
35
32
36
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.
37
34
38
-
# Parameters:
39
-
- `p_int`: [Pa] initial pressure (set by `p_int` argument)
40
-
41
35
# Connectors:
42
36
- `port`: hydraulic port
43
37
"""
@@ -236,12 +230,11 @@ end
236
230
@deprecate Pipe Tube
237
231
238
232
"""
239
-
FlowDivider(;p_int, n, name)
233
+
FlowDivider(; n, name)
240
234
241
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.
242
236
243
237
# Parameters:
244
-
- `p_int`: [Pa] initial pressure
245
238
- `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.
329
322
330
323
# Parameters:
331
-
- `p_a_int`: [Pa] initial pressure for `port_a`
332
-
- `p_b_int`: [Pa] initial pressure for `port_b`
333
-
- `area_int`: [m^2] initial valve opening
334
324
- `Cd`: discharge coefficient flowing from `a → b`
335
325
- `Cd_reverse`: discharge coefficient flowing from `b → a`
336
326
- `minimum_area`: when `reversible = false` applies a forced minimum area
@@ -517,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