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
Variable length internal flow model of the fully developed incompressible flow friction. Includes optional inertia term when `add_inertia = true` to model wave propagation. Hydraulic ports have equal flow but variable pressure. Density is averaged over the pressures, used to calculated average flow velocity and flow friction.
60
60
@@ -63,7 +63,6 @@ Variable length internal flow model of the fully developed incompressible flow f
63
63
- `ddm`: [kg/s^2] Rate of change of mass flow rate in control volume.
64
64
65
65
# Parameters:
66
-
- `p_int`: [Pa] initial pressure
67
66
- `area`: [m^2] tube cross sectional area
68
67
- `length_int`: [m] initial tube length
69
68
- `perimeter`: [m] perimeter of the pipe cross section (needed only for non-circular pipes)
@@ -145,12 +144,11 @@ Variable length internal flow model of the fully developed incompressible flow f
Constant length internal flow model discretized by `N` (`FixedVolume`: `N`, `TubeBase`:`N-1`) which models the fully developed flow friction, compressibility (when `N>1`), and inertia effects when `add_inertia = true`. See `TubeBase` and `FixedVolume` for more information.
151
150
152
151
# Parameters:
153
-
- `p_int`: [Pa] initial pressure
154
152
- `area`: [m^2] tube cross sectional area
155
153
- `length`: [m] real length of the tube
156
154
- `perimeter`: [m] perimeter of the pipe cross section (needed only for non-circular pipes)
@@ -198,7 +196,7 @@ Constant length internal flow model discretized by `N` (`FixedVolume`: `N`, `Tub
198
196
for i in1:(N -1)
199
197
x =TubeBase(add_inertia; name =Symbol("p$i"),
200
198
shape_factor =ParentScope(shape_factor),
201
-
p_int =ParentScope(p_int), area =ParentScope(area),
199
+
area =ParentScope(area),
202
200
length_int =ParentScope(length) / (N -1),
203
201
head_factor =ParentScope(head_factor),
204
202
perimeter =ParentScope(perimeter))
@@ -208,8 +206,7 @@ Constant length internal flow model discretized by `N` (`FixedVolume`: `N`, `Tub
# here the structural_simplify of the initialization system fails, this is an indication that something needs to be fixed with the way the defaults/initial equaitons are defined
0 commit comments