mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
Allmesh scripts: removed unused variables and legacy syntax
This commit is contained in:
@ -18,7 +18,7 @@ runApplication -s collapseFaces \
|
|||||||
|
|
||||||
runApplication checkMesh -allTopology -allGeometry -latestTime
|
runApplication checkMesh -allTopology -allGeometry -latestTime
|
||||||
|
|
||||||
latestTime=`foamListTimes -latestTime`
|
latestTime="$(foamListTimes -latestTime)"
|
||||||
|
|
||||||
# Move the mesh into polyMesh
|
# Move the mesh into polyMesh
|
||||||
rm -rf constant/polyMesh
|
rm -rf constant/polyMesh
|
||||||
|
|||||||
@ -16,9 +16,6 @@ intersectSurfaces()
|
|||||||
surfaceBooleanFeatures "$@" intersection
|
surfaceBooleanFeatures "$@" intersection
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set application name
|
|
||||||
application=$(getApplication)
|
|
||||||
|
|
||||||
# Run the surface preparation script
|
# Run the surface preparation script
|
||||||
./constant/triSurface/surfaceProcess.sh > log.surfaceProcess 2>&1
|
./constant/triSurface/surfaceProcess.sh > log.surfaceProcess 2>&1
|
||||||
|
|
||||||
|
|||||||
@ -4,9 +4,6 @@ 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
|
||||||
|
|
||||||
# Set application name
|
|
||||||
application=$(getApplication)
|
|
||||||
|
|
||||||
# Meshing
|
# Meshing
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
runApplication surfaceFeatures
|
runApplication surfaceFeatures
|
||||||
|
|||||||
@ -4,8 +4,6 @@ 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
|
||||||
|
|
||||||
application=$(getApplication)
|
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
|
|
||||||
echo "Creating channel"
|
echo "Creating channel"
|
||||||
@ -14,7 +12,7 @@ while [ "$i" -lt 3 ] ; do
|
|||||||
cp system/extrudeMeshDict.${i} system/extrudeMeshDict
|
cp system/extrudeMeshDict.${i} system/extrudeMeshDict
|
||||||
echo "Running extrudeMesh, instance" ${i}
|
echo "Running extrudeMesh, instance" ${i}
|
||||||
extrudeMesh > log.extrudeMesh.${i}
|
extrudeMesh > log.extrudeMesh.${i}
|
||||||
i=`expr $i + 1`
|
i=$((i + 1))
|
||||||
done
|
done
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user