diff options
| author | Paul Garlick <pgarlick@tourbillion-technology.com> | 2021-12-22 18:53:02 +0000 | 
|---|---|---|
| committer | Paul Garlick <pgarlick@tourbillion-technology.com> | 2021-12-22 18:53:02 +0000 | 
| commit | 7d1b0725ebe5c41cab835394afc230f1aeb2de3a (patch) | |
| tree | 98f858a00961a5ad18cda04608098cf277696609 | |
| parent | d0f64e2041728634b185fcd46497ec93973c2057 (diff) | |
| download | fullSWOF-utils-7d1b0725ebe5c41cab835394afc230f1aeb2de3a.tar.gz | |
makeBoundary: Format output of total flows.
* fullswof-utils/makeBoundary: Add format to print command.
| -rwxr-xr-x | fullswof-utils/makeBoundary | 4 | 
1 files changed, 3 insertions, 1 deletions
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]  | 
