mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Sprucing up the tutorials folder and adding -dict to "collapseEdges"
Patch provided by Bruno Santos Resolves patch application request http://www.openfoam.org/mantisbt/view.php?id=2015
This commit is contained in:
@ -4,12 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runRefineMesh ()
|
||||
{
|
||||
echo "Running refineMesh on $PWD"
|
||||
refineMesh -dict system/refineMeshDict -overwrite > log.refineMesh 2>&1
|
||||
}
|
||||
|
||||
# copy DTC hull surface from resources folder
|
||||
cp $FOAM_TUTORIALS/resources/geometry/DTC-scaled.stl.gz constant/triSurface/
|
||||
|
||||
@ -17,17 +11,13 @@ runApplication surfaceFeatureExtract
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
i=1
|
||||
if [ -f log.topoSet.6 ] ; then
|
||||
i=7
|
||||
fi
|
||||
while [ "$i" -lt 7 ] ; do
|
||||
cp system/topoSetDict.${i} system/topoSetDict
|
||||
runApplication topoSet
|
||||
runRefineMesh
|
||||
mv log.topoSet log.topoSet.$i
|
||||
mv log.refineMesh log.refineMesh.$i
|
||||
i=$(expr $i + 1)
|
||||
for i in 1 2 3 4 5 6
|
||||
do
|
||||
runApplication -s $i \
|
||||
topoSet -dict system/topoSetDict.${i}
|
||||
|
||||
runApplication -s $i \
|
||||
refineMesh -dict system/refineMeshDict -overwrite
|
||||
done
|
||||
|
||||
runApplication snappyHexMesh -overwrite
|
||||
|
||||
Reference in New Issue
Block a user