From 7d1b0725ebe5c41cab835394afc230f1aeb2de3a Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Wed, 22 Dec 2021 18:53:02 +0000 Subject: makeBoundary: Format output of total flows. * fullswof-utils/makeBoundary: Add format to print command. --- fullswof-utils/makeBoundary | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fullswof-utils/makeBoundary') diff --git a/fullswof-utils/makeBoundary b/fullswof-utils/makeBoundary index 87abf44..65c7792 100755 --- a/fullswof-utils/makeBoundary +++ b/fullswof-utils/makeBoundary @@ -289,7 +289,9 @@ for p in range(num_panels): sortedQ = [Q_i[i] for i in panel] # create cumulative discharge list: total_flow = np.cumsum([item[-1] for item in sortedQ]) -print('total_flow = ', total_flow) + +for i in range(len(total_flow)): + print('total_flow[{0}] (/m^3/s) = {1:.3f}'.format(i, total_flow[i])) # target_flow_west = target_flow - Q_i[-1] - Q_i_east[-1] # calculate velocity: note dependence on hydraulic radius velocity_channel = Q_i[panel[0]][-1]/A_i[panel[0]][-1] -- cgit