diff options
Diffstat (limited to 'makeBoundary')
-rwxr-xr-x | makeBoundary | 5 |
1 files changed, 3 insertions, 2 deletions
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 |