-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.py
More file actions
21 lines (17 loc) · 1.15 KB
/
test.py
File metadata and controls
21 lines (17 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# from open_flow import TrapezoidalChannel, TriangularChannel, CircularChannel, RectangularChannel
# from sympy import sin, acos, sqrt
# from pipe_flow import Pipe
# from utils import formater_str
# # Perdidas de carga h
# pipe1 = Pipe(Q=10, D=0.2, e=0.005, L=100)
# print(formater_str(pipe1.__dict__, ['Q', 'D', 'a', 'e', 'eD', 'v', 'nu', 'Re', 'L', 'method', 'flow_type', 'fr', 'h', 'hf']))
# pipe1 = Pipe(Q=1, D=0.9, L=100, method='Hazen-Williams', C=140)
# print(formater_str(pipe1.__dict__, ['Q', 'D', 'a', 'v', 'nu', 'Re', 'L', 'method', 'C', 'flow_type', 'fr', 'h', 'hf']))
# print(RectangularChannel(b=2, n=0.0013, So=0.0075, Q = 3.5).__dict__)
# print(RectangularChannel(b=2, n=0.0013, So=0.0075, y = .1177).__dict__)
# print(TrapezoidalChannel(b=2, n=0.013, So=0.0075, Q = 3.5, z=1.5).__dict__)
# print(TrapezoidalChannel(b=2, n=0.013, So=0.0075, y = 0.426, z=1.5).__dict__)
# print(CircularChannel(D=1, n=0.013, So=0.0075, Q = 2.1).__dict__)
# print(CircularChannel(D=1, n=0.0013, So=0.0075, y = 0.2777).__dict__)
# print(TriangularChannel(z=1.5, n=0.0013, So=0.0075, Q = 3.5).__dict__)
# print(TriangularChannel(z=1.5, n=0.0013, So=0.0075, y = 0.354).__dict__)