mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
tutorials: Remove the unnecessary "\"s on "cp", "rm" and "mv"
Resolves bug-report http://bugs.openfoam.org/view.php?id=2077
This commit is contained in:
@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
rm -rf processor*
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Set application name
|
||||
application=`getApplication`
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
cp -r 0.orig 0
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
@ -5,13 +5,13 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
# remove surface
|
||||
\rm -f constant/triSurface/DTC-scaled.stl.gz > /dev/null 2>&1
|
||||
\rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
\rm -f constant/triSurface/DTC-scaled.eMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/DTC-scaled.stl.gz > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/DTC-scaled.eMesh > /dev/null 2>&1
|
||||
|
||||
cleanCase
|
||||
\rm constant/polyMesh/boundary > /dev/null 2>&1
|
||||
\rm -rf 0 > /dev/null 2>&1
|
||||
\rm system/topoSetDict > /dev/null 2>&1
|
||||
rm constant/polyMesh/boundary > /dev/null 2>&1
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
rm system/topoSetDict > /dev/null 2>&1
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -22,8 +22,8 @@ done
|
||||
|
||||
runApplication snappyHexMesh -overwrite
|
||||
|
||||
\rm -rf 0
|
||||
\cp -r 0.orig 0
|
||||
rm -rf 0
|
||||
cp -r 0.orig 0
|
||||
|
||||
runApplication setFields
|
||||
|
||||
|
||||
@ -6,8 +6,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0 > /dev/null 2>&1
|
||||
\rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
\rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Set application name
|
||||
application=`getApplication`
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
|
||||
# Meshing
|
||||
runApplication blockMesh
|
||||
@ -20,7 +20,7 @@ runApplication mergeOrSplitBaffles -split -overwrite
|
||||
runApplication createPatch -overwrite
|
||||
|
||||
# Copy fields after meshing to avoind the generation of unnecessary patch fields
|
||||
\cp -r 0.orig 0
|
||||
cp -r 0.orig 0
|
||||
|
||||
# Initialize alpha
|
||||
runApplication setFields
|
||||
|
||||
@ -5,13 +5,13 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
# remove surface
|
||||
\rm -f constant/triSurface/DTC-scaled.stl.gz > /dev/null 2>&1
|
||||
\rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
\rm -f constant/triSurface/DTC-scaled.eMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/DTC-scaled.stl.gz > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/DTC-scaled.eMesh > /dev/null 2>&1
|
||||
|
||||
cleanCase
|
||||
\rm constant/polyMesh/boundary > /dev/null 2>&1
|
||||
\rm -rf 0 > /dev/null 2>&1
|
||||
\rm system/topoSetDict > /dev/null 2>&1
|
||||
rm constant/polyMesh/boundary > /dev/null 2>&1
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
rm system/topoSetDict > /dev/null 2>&1
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -22,8 +22,8 @@ done
|
||||
|
||||
runApplication snappyHexMesh -overwrite
|
||||
|
||||
\rm -rf 0
|
||||
\cp -r 0.orig 0
|
||||
rm -rf 0
|
||||
cp -r 0.orig 0
|
||||
|
||||
runApplication setFields
|
||||
|
||||
|
||||
@ -5,10 +5,10 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
# remove surface
|
||||
\rm -f constant/triSurface/propellerTip.obj.gz > /dev/null 2>&1
|
||||
rm -f constant/triSurface/propellerTip.obj.gz > /dev/null 2>&1
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0 > /dev/null 2>&1
|
||||
\rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
\rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
|
||||
|
||||
@ -19,7 +19,7 @@ runApplication snappyHexMesh -overwrite
|
||||
runApplication renumberMesh -overwrite
|
||||
|
||||
# force removal of fields generated by snappy
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
|
||||
|
||||
# - generate face/cell sets and zones
|
||||
|
||||
@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
# Remove surface
|
||||
\rm -f constant/triSurface/bullet.stl.gz
|
||||
rm -f constant/triSurface/bullet.stl.gz
|
||||
|
||||
# Remove copy of 0.orig
|
||||
rm -rf 0
|
||||
|
||||
@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Set application name
|
||||
application=`getApplication`
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
cp -r 0.orig 0
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Set application name
|
||||
application=`getApplication`
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
cp -r 0.orig 0
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Set application name
|
||||
application=`getApplication`
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
cp -r 0.orig 0
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Set application name
|
||||
application=`getApplication`
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
cp -r 0.orig 0
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
Reference in New Issue
Block a user