diff options
-rw-r--r-- | boundaryDefinition.txt | 3 | ||||
-rwxr-xr-x | makeBoundary.py | 2 |
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 |