From b4ea3eb3004d858b63b1ec84426499aebe0de8cd Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Mon, 14 Oct 2019 11:56:29 +0100 Subject: read overtpping tolerance from boundary definition file. --- boundaryDefinition.txt | 3 +++ makeBoundary.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- cgit