#!/bin/sh
cd “${0%/*}” || exit 1 # Run from this directory# Source tutorial run functions
. “$WM_PROJECT_DIR/bin/tools/RunFunctions”runApplication blockMesh
runApplication datToFoam constant/grid256.dat
points=”constant/polyMesh/points”
pointsTmp=”constant/points.tmp”
sed -i -e ‘s/binary/ascii/’ -ne ‘1,17p’ $points
cat $pointsTmp >> $points
rm $pointsTmprunApplication collapseEdges -overwrite
echo “Changing patch type to wedge type in boundary file”
sed -i ‘/wedge/,/nFaces/{s/patch/wedge/}’ constant/polyMesh/boundaryrunApplication “$(getApplication)”
#——————————————————————————
実行年月:10/01/2020