aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-01 12:06:44 +0100
committerPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-01 12:06:44 +0100
commitda737763230728774c728b616990b4bd6cc2dc43 (patch)
tree33af571470db438643416e83ed4b57c599229abf
parenta9c204f48ed66ee56e10e42d429f406421775c5f (diff)
downloadfullSWOF-utils-da737763230728774c728b616990b4bd6cc2dc43.tar.gz
read boundary location from boundary definition file.
-rwxr-xr-xmakeBoundary.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/makeBoundary.py b/makeBoundary.py
index 37a45d7..1fc6b69 100755
--- a/makeBoundary.py
+++ b/makeBoundary.py
@@ -25,8 +25,9 @@ definition_dict = read_definition('boundaryDefinition.txt')
# m, c = np.polyfit(ych, zch, 1)
# print('gradient =', m, 'intercept =', c)
-slope = abs(definition_dict["slope"]) # slope at top boundary
+slope = abs(definition_dict["slope"]) # slope at top boundary
target_flow = definition_dict["target_flow"] # imposed discharge
+location = definition_dict["location"] # boundary location
print(target_flow)
with open('../topography/top_boundary.xyz', "r") as topo: