Skip to content

Commit

Permalink
-changed to one csv-file
Browse files Browse the repository at this point in the history
-fixed circular import (moved import into function)
-fixed userwarning
-changed u.type from string to float
  • Loading branch information
EPrade committed Oct 16, 2023
1 parent a1392c3 commit 76ed58e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pandapipes/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@ def create_pipe(net, from_junction, to_junction, std_type, length_km, k_mm=0.2,
if pipe_parameter['u_w/mk'] != 'None' and alpha_w_per_m2k == 0.0:
pipe_parameter['u_w/mk'] = float(pipe_parameter['u_w/mk'])
alpha_w_per_m2k = calculate_alpha(pipe_parameter['inner_diameter_mm'], pipe_parameter['u_w/mk'])
#alpha_w_per_m2k = pipe_parameter['u_w/mk'] / (pipe_parameter['inner_diameter_mm']/1000 * np.pi)
elif pipe_parameter['u_w/mk'] !='None' and alpha_w_per_m2k != 0.0:
alpha_w_per_m2k = alpha_w_per_m2k
logger.warning('you have defined alpha which overwrites the heat_transfer value of the pipe standard type')
Expand Down

0 comments on commit 76ed58e

Please sign in to comment.