aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-16 00:51:09 +0100
committerPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-16 00:51:09 +0100
commit9af463c1930d6b9d2a200fb268629c611f91e88d (patch)
tree3d4e7702cd628651584589ba20f5520dcdf79ed2
parentc9c002df8c28a37d47bb665f18e34060701e5fd3 (diff)
downloadfullSWOF-utils-9af463c1930d6b9d2a200fb268629c611f91e88d.tar.gz
use list objects for plotting.
-rwxr-xr-xmakeBoundary.py27
1 files changed, 6 insertions, 21 deletions
diff --git a/makeBoundary.py b/makeBoundary.py
index f20ed2e..ac86d16 100755
--- a/makeBoundary.py
+++ b/makeBoundary.py
@@ -204,27 +204,12 @@ for p in range(num_panels):
zregion[p],
zmin[p],
zmax)
-
-plot_region(h_i-zmin, 'maximum depth / m',
- r_h, 'hydraulic radius / m',
- K_i, r'conveyance / $m^3/s$',
- Q_i, r'discharge / $m^3/s$', 'main channel flow')
-
-p_i_west, A_i_west, r_h_west, h_i_west, K_i_west, Q_i_west = conveyance(
- numH, n_co_west, xregion_west, zregion_west, zmin_west, zmax_west)
-
-plot_region(h_i_west-zmin_west, 'maximum depth / m',
- r_h_west, 'hydraulic radius / m',
- K_i_west, r'conveyance / $m^3/s$',
- Q_i_west, r'discharge / $m^3/s$', 'west overland flow')
-
-p_i_east, A_i_east, r_h_east, h_i_east, K_i_east, Q_i_east = conveyance(
- numH, n_co_east, xregion_east, zregion_east, zmin_east, zmax_east)
-
-plot_region(h_i_east-zmin_east, 'maximum depth / m',
- r_h_east, 'hydraulic radius / m',
- K_i_east, r'conveyance / $m^3/s$',
- Q_i_east, r'discharge / $m^3/s$', 'east overland flow')
+ plot_region(
+ h_i[p]-zmin[p], 'maximum depth / m',
+ r_h[p], 'hydraulic radius / m',
+ K_i[p], r'conveyance / $m^3/s$',
+ Q_i[p], r'discharge / $m^3/s$',
+ 'Panel {}'.format(p))
target_flow_west = target_flow - Q_i[-1] - Q_i_east[-1]
# calculate velocity: note dependence on hydraulic radius