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
Merge pull request #1 from matthew-kapp/change-readme
Hydraulic docstrings updated to match code
- updated docstrings in utils.jl to remove P_int (in docstrings)
- updated docstrings in sources.jl to remove P_int (in docstrings)
- updated docstrings in components.jl to remove P_int, P_a_int, etc (in docstrings)
- solves issue #354
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
"""
@@ -24,13 +21,10 @@ Caps a hydraulic port to prevent mass flow in or out.
24
21
end
25
22
26
23
"""
27
-
Open(; p_int, name)
24
+
Open(; name)
28
25
29
26
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.
30
27
31
-
# Parameters:
32
-
- `p_int`: [Pa] initial pressure (set by `p_int` argument)
33
-
34
28
# Connectors:
35
29
- `port`: hydraulic port
36
30
"""
@@ -226,12 +220,11 @@ end
226
220
@deprecate Pipe Tube
227
221
228
222
"""
229
-
FlowDivider(;p_int, n, name)
223
+
FlowDivider(; n, name)
230
224
231
225
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.
232
226
233
227
# Parameters:
234
-
- `p_int`: [Pa] initial pressure
235
228
- `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.
319
312
320
313
# 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
324
314
- `Cd`: discharge coefficient flowing from `a → b`
325
315
- `Cd_reverse`: discharge coefficient flowing from `b → a`
326
316
- `minimum_area`: when `reversible = false` applies a forced minimum area
@@ -507,7 +497,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