Skip to content

Commit 61bc146

Browse files
Brad Carmanoxinabox
authored andcommitted
format
1 parent 99f5149 commit 61bc146

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/Hydraulic/IsothermalCompressible/components.jl

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ end
263263
end
264264

265265
vars = @variables begin
266-
area(t) = area_int
267-
y(t) = area_int
266+
area(t) = area_int
267+
y(t) = area_int
268268
end
269269

270270
# let
@@ -539,13 +539,11 @@ dm ────► │ │ area
539539
end
540540

541541
ratio = (x - x_min) / (x_damp - x_min)
542-
damper_area = ifelse(x >= x_damp,
543-
one(x),
544-
ifelse((x < x_damp) & (x > x_min),
545-
ratio,
546-
zero(x)
547-
)
548-
)
542+
damper_area = ifelse(x >= x_damp,
543+
one(x),
544+
ifelse((x < x_damp) & (x > x_min),
545+
ratio,
546+
zero(x)))
549547

550548
eqs = [vol ~ x * area
551549
D(x) ~ flange.v * direction

src/Hydraulic/IsothermalCompressible/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Reference: Introduction to Fluid Mechanics, Fox & McDonald, 5th Edition, equatio
9595
"""
9696
function friction_factor(dm, area, d_h, density, viscosity, shape_factor)
9797
u = abs(dm) / (density * area)
98-
98+
9999
Re = density * u * d_h / viscosity
100100
f_laminar = shape_factor * regPow(Re, -1, 1e-6)
101101

0 commit comments

Comments
 (0)