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:
Henry Weller 2016-05-05 15:17:55 +01:00
parent 637ee8830f
commit cf4b35693c
37 changed files with 84 additions and 84 deletions

View File

@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
\rm -rf 0 chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII
rm -rf 0 chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII
#------------------------------------------------------------------------------

View File

@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
\rm -rf 0 chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII
rm -rf 0 chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII
#------------------------------------------------------------------------------

View File

@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
\rm -rf 0 chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII
rm -rf 0 chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII
#------------------------------------------------------------------------------

View File

@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
\rm -rf 0 chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII
rm -rf 0 chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII
#------------------------------------------------------------------------------

View File

@ -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

View File

@ -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
runApplication topoSet -dict system/createInletOutletSets.topoSetDict

View File

@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
# remove surface
\rm -f constant/triSurface/motorBike.obj.gz
rm -f constant/triSurface/motorBike.obj.gz
rm -rf 0 > /dev/null 2>&1

View File

@ -21,10 +21,10 @@ runApplication checkMesh -allTopology -allGeometry -latestTime
latestTime=`foamInfoExec -latestTime`
# Move the mesh into polyMesh
\rm -rf constant/polyMesh
\mv "${latestTime}"/polyMesh constant
rm -rf constant/polyMesh
mv "${latestTime}"/polyMesh constant
# Clean up intermediate meshes
\rm -r [1-9]*
rm -r [1-9]*
#------------------------------------------------------------------------------

View File

@ -4,9 +4,9 @@
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
# remove surface and features
\rm -f constant/triSurface/motorBike.obj.gz > /dev/null 2>&1
\rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
\rm -f constant/triSurface/motorBike.eMesh > /dev/null 2>&1
rm -f constant/triSurface/motorBike.obj.gz > /dev/null 2>&1
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -f constant/triSurface/motorBike.eMesh > /dev/null 2>&1
rm -rf 0 > /dev/null 2>&1

View File

@ -4,10 +4,10 @@
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
# remove surface and features
\rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
\rm -f constant/triSurface/rotatingZone.eMesh > /dev/null 2>&1
\rm -f constant/triSurface/fixed.eMesh > /dev/null 2>&1
\rm -f 0/pointLevel > /dev/null 2>&1
\rm -f 0/cellLevel > /dev/null 2>&1
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -f constant/triSurface/rotatingZone.eMesh > /dev/null 2>&1
rm -f constant/triSurface/fixed.eMesh > /dev/null 2>&1
rm -f 0/pointLevel > /dev/null 2>&1
rm -f 0/cellLevel > /dev/null 2>&1
cleanCase

View File

@ -6,19 +6,19 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
\rm -rf 0
\rm -rf constant/extendedFeatureEdgeMesh/
\rm -f constant/triSurface/*.eMesh*
\rm -f constant/triSurface/*.stl
\rm -f constant/triSurface/*.obj
\rm -f constant/triSurface/problemFaces
\rm -f *.obj
rm -rf 0
rm -rf constant/extendedFeatureEdgeMesh/
rm -f constant/triSurface/*.eMesh*
rm -f constant/triSurface/*.stl
rm -f constant/triSurface/*.obj
rm -f constant/triSurface/problemFaces
rm -f *.obj
\rm -f constant/backgroundMeshDecomposition/polyMesh/boundary
\rm -f constant/backgroundMeshDecomposition/polyMesh/faces
\rm -f constant/backgroundMeshDecomposition/polyMesh/neighbour
\rm -f constant/backgroundMeshDecomposition/polyMesh/owner
\rm -f constant/backgroundMeshDecomposition/polyMesh/points
rm -f constant/backgroundMeshDecomposition/polyMesh/boundary
rm -f constant/backgroundMeshDecomposition/polyMesh/faces
rm -f constant/backgroundMeshDecomposition/polyMesh/neighbour
rm -f constant/backgroundMeshDecomposition/polyMesh/owner
rm -f constant/backgroundMeshDecomposition/polyMesh/points
#------------------------------------------------------------------------------

View File

@ -19,7 +19,7 @@ intersectSurfaces()
# Set application name
application=$(getApplication)
\rm -rf 0
rm -rf 0
# Run the surface preparation script
@ -71,7 +71,7 @@ done
# Meshing
\cp system/controlDict.mesh system/controlDict
cp system/controlDict.mesh system/controlDict
runApplication blockMesh -region backgroundMeshDecomposition
@ -97,8 +97,8 @@ runApplication reconstructParMesh -latestTime
# Copy the mesh from the latest time folder into polyMesh and delete that
# latest time folder
latestTime=$(foamListTimes -latestTime)
\cp -r $latestTime/polyMesh constant
\rm -rf $latestTime
cp -r $latestTime/polyMesh constant
rm -rf $latestTime
#------------------------------------------------------------------------------

View File

@ -4,12 +4,12 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
\cp system/controlDict.flow system/controlDict
cp system/controlDict.flow system/controlDict
# Set application name
application=$(getApplication)
\rm -rf 0
rm -rf 0
runApplication createBaffles -overwrite
runApplication mergeOrSplitBaffles -split -overwrite
@ -18,7 +18,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

View File

@ -2,7 +2,7 @@
cd ${0%/*} || exit 1 # Run from this directory
\cp rawSurfaces/*.stl .
cp rawSurfaces/*.stl .
# Vessel surface
@ -25,10 +25,10 @@ surfaceOrient -inside shaft.stl "(0 0.1 1)" shaft.stl
surfaceSplitByTopology stirrer.stl stirrer.stl
surfaceOrient -inside stirrer.stl "(0 0.1 1)" stirrer.stl
\mv stirrer_bafflePart_0.stl stirrer_baffles.stl
mv stirrer_bafflePart_0.stl stirrer_baffles.stl
surfaceCheck stirrer_baffles.stl
\mv stirrer_baffles_0.obj stirrer_baffles_plate.obj
mv stirrer_baffles_0.obj stirrer_baffles_plate.obj
#------------------------------------------------------------------------------

View File

@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
# remove surface
\rm -f constant/triSurface/flange.stl.gz
rm -f constant/triSurface/flange.stl.gz
rm -rf 0 > /dev/null 2>&1
rm -f ./flange ./*.obj > /dev/null 2>&1

View File

@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
\rm -rf 0
rm -rf 0
#------------------------------------------------------------------------------

View File

@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
\rm -rf 0
rm -rf 0
rm -rf processor*
#------------------------------------------------------------------------------

View File

@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
\rm -rf 0
rm -rf 0
#------------------------------------------------------------------------------

View File

@ -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

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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

View File

@ -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
#------------------------------------------------------------------------------

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
\rm -rf 0
rm -rf 0
#------------------------------------------------------------------------------

View File

@ -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

View File

@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
\rm -rf 0
rm -rf 0
#------------------------------------------------------------------------------

View File

@ -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

View File

@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
\rm -rf 0
rm -rf 0
#------------------------------------------------------------------------------

View File

@ -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

View File

@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
\rm -rf 0
rm -rf 0
#------------------------------------------------------------------------------

View File

@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
\rm -rf 0
rm -rf 0
#------------------------------------------------------------------------------

View File

@ -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