Skip to content

Commit 07c7914

Browse files
committed
Hydraulic updates deleted
1 parent eefec54 commit 07c7914

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed

docs/src/assets/Project.toml

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Hydraulic/IsothermalCompressible/components.jl

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11

22
"""
3-
Cap(; name)
3+
Cap(; p_int, name)
44
55
Caps a hydraulic port to prevent mass flow in or out.
66
7+
# Parameters:
8+
- `p_int`: [Pa] initial pressure (set by `p_int` argument)
9+
710
# Connectors:
811
- `port`: hydraulic port
912
"""
@@ -21,10 +24,13 @@ Caps a hydraulic port to prevent mass flow in or out.
2124
end
2225

2326
"""
24-
Open(; name)
27+
Open(; p_int, name)
2528
2629
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.
2730
31+
# Parameters:
32+
- `p_int`: [Pa] initial pressure (set by `p_int` argument)
33+
2834
# Connectors:
2935
- `port`: hydraulic port
3036
"""
@@ -220,11 +226,12 @@ end
220226
@deprecate Pipe Tube
221227

222228
"""
223-
FlowDivider(; n, name)
229+
FlowDivider(;p_int, n, name)
224230
225231
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.
226232
227233
# Parameters:
234+
- `p_int`: [Pa] initial pressure
228235
- `n`: divide flow from `port_a` to `port_b` by `n`
229236
230237
# Connectors:
@@ -306,11 +313,14 @@ end
306313
end
307314

308315
"""
309-
Valve(reversible = false; Cd, Cd_reverse = Cd, minimum_area = 0, name)
316+
Valve(reversible = false; p_a_int, p_b_int, area_int, Cd, Cd_reverse = Cd, minimum_area = 0, name)
310317
311318
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.
312319
313320
# 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
314324
- `Cd`: discharge coefficient flowing from `a → b`
315325
- `Cd_reverse`: discharge coefficient flowing from `b → a`
316326
- `minimum_area`: when `reversible = false` applies a forced minimum area
@@ -497,7 +507,7 @@ See also [`FixedVolume`](@ref), [`DynamicVolume`](@ref)
497507
end
498508

499509
"""
500-
DynamicVolume(N, add_inertia=true; area, x_int = 0, x_max, x_min = 0, x_damp = x_min, direction = +1, perimeter = 2 * sqrt(area * pi), shape_factor = 64, head_factor = 1, Cd = 1e2, Cd_reverse = Cd, name)
510+
DynamicVolume(N, add_inertia=true; p_int, area, x_int = 0, x_max, x_min = 0, x_damp = x_min, direction = +1, perimeter = 2 * sqrt(area * pi), shape_factor = 64, head_factor = 1, Cd = 1e2, Cd_reverse = Cd, name)
501511
502512
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.
503513
@@ -670,11 +680,14 @@ dm ────► │ │ area
670680
end
671681

672682
"""
673-
SpoolValve(reversible = false; Cd, d, name)
683+
SpoolValve(reversible = false; p_a_int, p_b_int, x_int, Cd, d, name)
674684
675685
Spool valve with `x` valve opening input as mechanical flange port and `d` diameter of orifice. See `Valve` for more information.
676686
677687
# Parameters:
688+
- `p_a_int`: [Pa] initial pressure for `port_a`
689+
- `p_b_int`: [Pa] initial pressure for `port_b`
690+
- `x_int`: [m] initial valve opening
678691
- `d`: [m] orifice diameter
679692
- `Cd`: discharge coefficient flowing from `a → b`
680693
@@ -714,13 +727,18 @@ See [`Valve`](@ref) for more information.
714727
end
715728

716729
"""
717-
SpoolValve2Way(reversible = false; m, g, Cd, d, name)
730+
SpoolValve2Way(reversible = false; p_s_int, p_a_int, p_b_int, p_r_int, m, g, x_int, Cd, d, name)
718731
719732
2-ways spool valve with 4 ports and spool mass. Fluid flow direction S → A and B → R when `x` is positive and S → B and A → R when `x` is negative.
720733
721734
# Parameters:
735+
- `p_s_int`: [Pa] initial pressure for `port_s`
736+
- `p_a_int`: [Pa] initial pressure for `port_a`
737+
- `p_b_int`: [Pa] initial pressure for `port_b`
738+
- `p_r_int`: [Pa] initial pressure for `port_r`
722739
- `m`: [kg] mass of the spool
723740
- `g`: [m/s²] gravity field acting on the spool, positive value acts in the positive direction
741+
- `x_int`: [m] initial valve opening
724742
- `d`: [m] orifice diameter
725743
- `Cd`: discharge coefficient flowing from `s → a` and `b → r`
726744
@@ -770,6 +788,8 @@ end
770788

771789
"""
772790
Actuator(N, add_inertia = true, reversible = false;
791+
p_a_int,
792+
p_b_int,
773793
area_a,
774794
area_b,
775795
perimeter_a = 2 * sqrt(area_a * pi),
@@ -799,6 +819,8 @@ Actuator made of two DynamicVolumes connected in opposite direction with body ma
799819
800820
# Parameters:
801821
## volume
822+
- `p_a_int`: [Pa] initial pressure for `port_a`
823+
- `p_b_int`: [Pa] initial pressure for `port_b`
802824
- `area_a`: [m^2] moving wall area of volume `A`
803825
- `area_b`: [m^2] moving wall area of volume `B`
804826
- `length_a_int`: [m] initial wall position for `A`

src/Hydraulic/IsothermalCompressible/sources.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
MassFlow(; name)
2+
MassFlow(; name, p_int)
33
44
Hydraulic mass flow input source
55

0 commit comments

Comments
 (0)