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
+127-1Lines changed: 127 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,17 @@ Caps a hydraulic port to prevent mass flow in or out.
25
25
ODESystem(eqs, t, vars, pars; name, systems)
26
26
end
27
27
28
+
"""
29
+
Open(; p_int, name)
30
+
31
+
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.
32
+
33
+
# Parameters:
34
+
- `p_int`: [Pa] initial pressure (set by `p_int` argument)
35
+
36
+
# Connectors:
37
+
- `port`: hydraulic port
38
+
"""
28
39
@componentfunctionOpen(; p_int, name)
29
40
pars =@parameters p_int = p_int
30
41
@@ -447,6 +458,10 @@ dm ────► │ │ area
447
458
└─► x (= ∫ flange.v * direction)
448
459
```
449
460
461
+
# Features:
462
+
- volume discretization with flow resistance and inertia: use `N` to control number of volume and resistance elements. Set `N=0` to turn off volume discretization. See `TubeBase` for more information about flow resistance.
463
+
- minimum volume flow shutoff with damping and directional resistance. Use `reversible=false` when problem defines volume position `x` and solves for `dm` to prevent numerical instability.
464
+
450
465
# Parameters:
451
466
## volume
452
467
- `p`: [Pa] initial pressure
@@ -514,7 +529,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.
Actuator made of two DynamicVolumes connected in opposite direction with body mass attached.
861
+
862
+
# Features:
863
+
- volume discretization with flow resistance and inertia: use `N` to control number of volume and resistance elements. Set `N=0` to turn off volume discretization. See `TubeBase` for more information about flow resistance.
864
+
- minimum volume flow shutoff with damping and directional resistance. Use `reversible=false` when problem defines volume position `x` and solves for `dm` to prevent numerical instability.
865
+
866
+
# Parameters:
867
+
## volume
868
+
- `p_a_int`: [Pa] initial pressure for `port_a`
869
+
- `p_b_int`: [Pa] initial pressure for `port_b`
870
+
- `area_a`: [m^2] moving wall area of volume `A`
871
+
- `area_b`: [m^2] moving wall area of volume `B`
872
+
- `length_a_int`: [m] initial wall position for `A`
873
+
- `length_b_int`: [m] initial wall position for `b`
874
+
875
+
## mass
876
+
- `m`: [kg] mass of the body
877
+
- `g`: [m/s²] gravity field acting on the mass, positive value acts in the positive direction
878
+
- `x_int`: [m] initial flange position
879
+
880
+
## flow resistance
881
+
- `perimeter_a`: [m] perimeter of the cross section `A` (needed only for non-circular volumes)
882
+
- `perimeter_b`: [m] perimeter of the cross section `B` (needed only for non-circular volumes)
883
+
- `shape_factor_a`: shape factor of `A`, see `friction_factor` function
884
+
- `shape_factor_b`: shape factor of `B`, see `friction_factor` function
885
+
- `head_factor_a`: effective length multiplier for `A`, used to account for addition friction from flow development and additional friction such as pipe bends, entrance/exit lossses, etc.
886
+
- `head_factor_b`: effective length multiplier for `B`, used to account for addition friction from flow development and additional friction such as pipe bends, entrance/exit lossses, etc.
887
+
888
+
## flow shut off and damping
889
+
- `minimum_volume_a`: [m^3] minimum volume `A` that shuts off flow and prevents negative volume.
890
+
- `minimum_volume_b`: [m^3] minimum volume `B` that shuts off flow and prevents negative volume.
891
+
- `damping_volume_a`: [m^3] volume of `A` that initiates a linear damping region before reaching full flow shut off. Helps provide a smooth end stop.
892
+
- `damping_volume_b`: [m^3] volume of `B` that initiates a linear damping region before reaching full flow shut off. Helps provide a smooth end stop.
893
+
- `Cd`: discharge coefficient for flow out of the volume. *Note: area is 1m² when valve is fully open. Ensure this does not induce unwanted flow resistance.*
894
+
- `Cd_reverse`: discharge coefficient for flow into the volume. Use a lower value to allow easy wall release, in some cases the wall can "stick".
0 commit comments