aboutsummaryrefslogtreecommitdiff
path: root/makeBoundary
diff options
context:
space:
mode:
Diffstat (limited to 'makeBoundary')
-rwxr-xr-xmakeBoundary15
1 files changed, 14 insertions, 1 deletions
diff --git a/makeBoundary b/makeBoundary
index 432afb2..b16512e 100755
--- a/makeBoundary
+++ b/makeBoundary
@@ -118,8 +118,21 @@ parser = argparse.ArgumentParser(
parser.add_argument("location", help="boundary location")
args = parser.parse_args()
+if args.location == 'top':
+ inputFilename = "boundaryTop.txt"
+ outputFilename = "BCTop.txt"
+elif args.location == 'bottom':
+ inputFilename = "boundaryBottom.txt"
+ outputFilename = "BCBottom.txt"
+elif args.location == 'left':
+ inputFilename = "boundaryLeft.txt"
+ outputFilename = "BCLeft.txt"
+elif args.location == 'right':
+ inputFilename = "boundaryRight.txt"
+ outputFilename = "BCRight.txt"
+
# read boundary definition file:
-definition_dict = read_definition('boundaryDefinition.txt')
+definition_dict = read_definition(inputFilename)
#for dd in definition_dict:
# print(definition_dict[dd])
slope = abs(definition_dict["slope"]) # slope at top boundary