From 806941c8b78029e908c1113ffa31d683f82f426e Mon Sep 17 00:00:00 2001 From: phresher <16498871+phresher@users.noreply.github.com> Date: Sun, 9 Dec 2018 21:47:31 -0700 Subject: [PATCH] Add Allrun script for MugnusEffect --- MagnusEffect/Allrun | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 MagnusEffect/Allrun diff --git a/MagnusEffect/Allrun b/MagnusEffect/Allrun new file mode 100755 index 0000000..f7c6b03 --- /dev/null +++ b/MagnusEffect/Allrun @@ -0,0 +1,18 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +# Generate the mesh +runApplication gmsh -3 mesh/main.geo -o case/test.msh +runApplication gmshToFoam -case case case/test.msh + +# Modify the boundary conditions +sed -i '22s/patch/empty/' case/constant/polyMesh/boundary +sed -i '29s/patch/wall/' case/constant/polyMesh/boundary + +# Run the solver +runApplication pimpleFoam -case case + +# ----------------------------------------------------------------- end-of-file