From e5b8f01b57823c7acf94f3f6f1eabe43f481b02a Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Tue, 29 Oct 2019 13:44:47 +0000 Subject: specify boundary type in boundary definition file. --- makeBoundary | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'makeBoundary') diff --git a/makeBoundary b/makeBoundary index 590bcaf..fbb99f0 100755 --- a/makeBoundary +++ b/makeBoundary @@ -102,13 +102,13 @@ def save_bc(outputfile): elif panel_x == panel[ind_p]: # imposed discharge within part-filled panel f.write('{:6.2f} {:>2} {:10.6f} {:9.6f}\n'.format( - xitem, 5, + xitem, btype, -csa[ind_z]*panel_target_flow/csa_p[panel_x], h_extra-zitem)) else: # imposed discharge within filled panels f.write('{:6.2f} {:>2} {:10.6f} {:9.6f}\n'.format( - xitem, 5, + xitem, btype, -csa[ind_z]*Q_i[panel_x][-1]/csa_p[panel_x], zmax-zitem)) @@ -141,6 +141,7 @@ elif args.location == 'right': definition_dict = read_definition(inputFilename) #for dd in definition_dict: # print(definition_dict[dd]) +btype = definition_dict["type"] # boundary type (1--5) slope = abs(definition_dict["slope"]) # slope at top boundary target_flow = definition_dict["target_flow"] # imposed discharge plotting = definition_dict["plotting"] # enable or disable plotting -- cgit