aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-14 11:56:29 +0100
committerPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-14 11:56:29 +0100
commitb4ea3eb3004d858b63b1ec84426499aebe0de8cd (patch)
tree68144dc1d9e3fffcfb8ca16d971e105734a8e429
parent923b0baf830ff8063653e8a37e52689a584b5345 (diff)
downloadfullSWOF-utils-b4ea3eb3004d858b63b1ec84426499aebe0de8cd.tar.gz
read overtpping tolerance from boundary definition file.
-rw-r--r--boundaryDefinition.txt3
-rwxr-xr-xmakeBoundary.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/boundaryDefinition.txt b/boundaryDefinition.txt
index ab3b2af..fd6f3c0 100644
--- a/boundaryDefinition.txt
+++ b/boundaryDefinition.txt
@@ -20,6 +20,9 @@ markers: [4.3]
# Channel index (panel identifier):
channel: 0
+# Overtopping tolerance (/m):
+ztol: 0.01
+
# Manning's n coefficients:
n_co_chan: 0.035
n_co_west: 0.040
diff --git a/makeBoundary.py b/makeBoundary.py
index 89b3769..358bd29 100755
--- a/makeBoundary.py
+++ b/makeBoundary.py
@@ -31,6 +31,7 @@ n_co_east = definition_dict["n_co_east"] # coefficient for general surface
height_data = definition_dict["height_data"] # topography
markers = definition_dict["markers"] # distances from corner point
channel = definition_dict["channel"] # identifier of channel panel
+ztol = definition_dict["ztol"] # tolerance in overtopping height
# print(len(markers))
@@ -109,7 +110,6 @@ for p in range(num_panels):
# print(zregion)
# print(xin[12:20])
-ztol = 0.01 # tolerance in overtopping height
zmin = zregion[channel].min() # minimum height
zmax = zregion[channel].max()-ztol # overtopping height
zmax_west = zmax