mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: biconic25-55Run35: add overwrite flag to collapseEdges
This commit is contained in:
@ -4,15 +4,15 @@ cd ${0%/*} || exit 1 # run from this directory
|
|||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
moveTimeMeshToConstant()
|
#moveTimeMeshToConstant()
|
||||||
{
|
#{
|
||||||
DT=`foamInfoExec -times | tail -1`
|
# DT=`foamInfoExec -times | tail -1`
|
||||||
if [ "$DT" != 0 ]
|
# if [ "$DT" != 0 ]
|
||||||
then
|
# then
|
||||||
mv ${DT}/polyMesh/* constant/polyMesh
|
# mv ${DT}/polyMesh/* constant/polyMesh
|
||||||
rm -rf ${DT}
|
# rm -rf ${DT}
|
||||||
fi
|
# fi
|
||||||
}
|
#}
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
|
|
||||||
@ -20,8 +20,8 @@ runApplication datToFoam grid256.dat
|
|||||||
|
|
||||||
CONST="constant"
|
CONST="constant"
|
||||||
cat $CONST/pointsHeader $CONST/points.tmp > $CONST/polyMesh/points
|
cat $CONST/pointsHeader $CONST/points.tmp > $CONST/polyMesh/points
|
||||||
runApplication collapseEdges
|
runApplication collapseEdges -overwrite
|
||||||
moveTimeMeshToConstant
|
#moveTimeMeshToConstant
|
||||||
|
|
||||||
echo "Changing patch type to wedge type in boundary file"
|
echo "Changing patch type to wedge type in boundary file"
|
||||||
mv $CONST/polyMesh/boundary $CONST/polyMesh/boundary.bak
|
mv $CONST/polyMesh/boundary $CONST/polyMesh/boundary.bak
|
||||||
|
|||||||
Reference in New Issue
Block a user