pvpumpingsystem.pipenetwork.PipeNetwork¶
-
class
pvpumpingsystem.pipenetwork.
PipeNetwork
(h_stat, l_tot, diam, roughness=0, material=None, fittings=None, optimism=None)¶ Class representing a simple hydraulic network.
-
h_stat
¶ static head [m]
Type: float,
-
l_tot
¶ total length of pipes (not necessarily horizontal) [m]
Type: float,
-
diam
¶ fixed pipe diameter for all the network (propose to correct with fluids.piping.nearest_pipe()? ) [m]
Type: float,
-
roughness
¶ roughness of pipes [m]
Type: float, default is 0
-
material
¶ If given and roughness == 0, the roughness will be changed to the one of the material if the material is found in a database of roughnesses.
Type: str, default is None
-
fittings
¶ dictionnary of fittings, with angles as keys and number as values (check in fluids module how to define it)
Type: dict, NOT IMPLEMENTED YET. default is None
-
optimism
¶ For values of roughness coming from material, a minimum, maximum, and average value is normally given; if True, returns the minimum roughness; if False, the maximum roughness; if None, the average roughness.
Type: boolean, default is None
-
__init__
(h_stat, l_tot, diam, roughness=0, material=None, fittings=None, optimism=None)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(h_stat, l_tot, diam[, roughness, …])Initialize self. dynamichead
(Qlpm[, T, verbose])Calculates the dynamic head of the pipe network according to the flow given Q, and using the Darcy-Weisbach equation. -