mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: remove unnecessary stdout, stderr /dev/null redirects
- no stderr redirect needed:
* 'command -v'
- no stdout/stderr redirect needed:
* 'rm -f'
STYLE: consistent spacing after redirects
This commit is contained in:
committed by
Andrew Heather
parent
ec7e3c88e4
commit
e6dfb39c66
@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
rm log.* 2>/dev/null # No application, clean manually
|
||||
rm -f log.* # No application, clean manually
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,6 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cleanCase
|
||||
rm -rf Fieldview > /dev/null 2>&1
|
||||
rm -rf Fieldview
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -11,7 +11,7 @@ runApplication decomposePar -force
|
||||
|
||||
runParallel potentialFoam -pName pPotential -initialiseUBCs
|
||||
|
||||
\rm -f processor*/0/phi
|
||||
rm -f processor*/0/phi
|
||||
|
||||
runParallel XiDyMFoam
|
||||
|
||||
|
||||
@ -6,8 +6,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
mv ./-180 temp180
|
||||
cleanCase
|
||||
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
rm -f constant/polyMesh/boundary > /dev/null 2>&1
|
||||
rm -rf 0
|
||||
rm -f constant/polyMesh/boundary
|
||||
|
||||
mv temp180 ./-180
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
@ -21,4 +22,3 @@ gnuplot<<EOF
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
@ -22,4 +22,3 @@ gnuplot<<EOF
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
@ -22,4 +22,3 @@ gnuplot<<EOF
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
@ -22,4 +22,3 @@ gnuplot<<EOF
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@ -55,8 +55,8 @@ EOF
|
||||
}
|
||||
|
||||
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm constant/triSurface/membrane-*.stl.gz 2> /dev/null
|
||||
rm -f constant/triSurface/membrane-*.stl.gz
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm constant/geometry/boundaryLayer.obj > /dev/null 2>&1
|
||||
rm -f constant/geometry/boundaryLayer.obj
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm externalCoupled.control 2> /dev/null
|
||||
rm -f externalCoupled.control
|
||||
|
||||
rm -rf comms
|
||||
### rm -rf VTK
|
||||
|
||||
@ -22,7 +22,7 @@ then
|
||||
# ## Can verify parallel operation of createExternalCoupledPatchGeometry
|
||||
if [ "$coupling" = true ] && [ "$testCreate" = true ]
|
||||
then
|
||||
\rm -f log.createExternalCoupledPatchGeometry
|
||||
rm -f log.createExternalCoupledPatchGeometry
|
||||
runParallel createExternalCoupledPatchGeometry \
|
||||
coupleGroup \
|
||||
-commsDir $PWD/comms
|
||||
|
||||
@ -36,7 +36,7 @@ refGrad=0
|
||||
valueFraction=1
|
||||
|
||||
# Remove any old junk
|
||||
\rm -f $lockFile 2>/dev/null
|
||||
rm -f "$lockFile"
|
||||
|
||||
log()
|
||||
{
|
||||
@ -208,7 +208,7 @@ case "$action" in
|
||||
log "done"
|
||||
|
||||
# Cleanup. Remove the lock file
|
||||
\rm -f $lockFile 2>/dev/null
|
||||
rm -f "$lockFile"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
cleanCase0
|
||||
|
||||
# Remove copies of common files
|
||||
\rm -rf constant
|
||||
rm -rf constant
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
echo "Use common files for 0/, constant/ and blockMeshDict"
|
||||
\rm -rf 0 constant
|
||||
rm -rf 0 constant
|
||||
\cp -r ../common/0.orig 0
|
||||
\cp -r ../common/constant constant
|
||||
|
||||
|
||||
@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
cleanCase0
|
||||
|
||||
# Remove copies of common files
|
||||
\rm -rf constant
|
||||
rm -rf constant
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
echo "Use common files for 0/, constant/ and blockMeshDict"
|
||||
\rm -rf 0 constant
|
||||
rm -rf 0 constant
|
||||
\cp -r ../common/0.orig 0
|
||||
\cp -r ../common/constant constant
|
||||
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm constant/geometry/boundaryLayer.obj > /dev/null 2>&1
|
||||
rm -f constant/geometry/boundaryLayer.obj
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*.eMesh*
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -10,6 +10,7 @@ rm -f \
|
||||
constant/cellTable \
|
||||
constant/polyMesh/cellTableId \
|
||||
constant/polyMesh/interfaces \
|
||||
constant/polyMesh/origCellId > /dev/null 2>&1
|
||||
constant/polyMesh/origCellId \
|
||||
;
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -15,8 +15,8 @@ rm -f \
|
||||
constant/cellTable \
|
||||
constant/polyMesh/cellTableId \
|
||||
constant/polyMesh/interfaces \
|
||||
constant/polyMesh/origCellId > /dev/null 2>&1
|
||||
|
||||
constant/polyMesh/origCellId \
|
||||
;
|
||||
|
||||
if isParallel "$@"
|
||||
then
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform > /dev/null 2>&1
|
||||
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform > /dev/null 2>&1
|
||||
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform > /dev/null 2>&1
|
||||
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform > /dev/null 2>&1
|
||||
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -87,8 +87,8 @@ EOF
|
||||
|
||||
echo "createGraphs:"
|
||||
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "FOAM FATAL ERROR: gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@ trap '\rm -f comms/OpenFOAM.lock 2>/dev/null' INT
|
||||
runApplication decomposePar -allRegions
|
||||
|
||||
## Can verify parallel operation of createExternalCoupledPatchGeometry
|
||||
# \rm -f log.createExternalCoupledPatchGeometry
|
||||
# rm -f log.createExternalCoupledPatchGeometry
|
||||
# runParallel createExternalCoupledPatchGeometry \
|
||||
# -regions '(topAir heater)' coupleGroup \
|
||||
# -commsDir $PWD/comms
|
||||
|
||||
@ -32,7 +32,7 @@ refGrad=0
|
||||
valueFraction=1
|
||||
|
||||
# Remove any old junk
|
||||
\rm -f $lockFile 2>/dev/null
|
||||
rm -f "$lockFile"
|
||||
|
||||
log()
|
||||
{
|
||||
@ -168,7 +168,7 @@ done
|
||||
log "done"
|
||||
|
||||
# Remove the lock file too
|
||||
\rm -f $lockFile 2>/dev/null
|
||||
rm -f "$lockFile"
|
||||
|
||||
# For log collector:
|
||||
echo "End"
|
||||
|
||||
@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cleanCase0
|
||||
\rm allVisibleFaces.obj 2>/dev/null
|
||||
rm -f allVisibleFaces.obj
|
||||
|
||||
rm -rf constant/cellToRegion
|
||||
rm -rf constant/*/polyMesh # region meshes
|
||||
|
||||
@ -5,8 +5,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
rm -f constant/triSurface/*.eMesh
|
||||
|
||||
rm -rf VTK
|
||||
rm -rf constant/cellToRegion
|
||||
|
||||
@ -17,7 +17,7 @@ trap '\rm -f comms/OpenFOAM.lock 2>/dev/null' INT
|
||||
runApplication decomposePar -allRegions
|
||||
|
||||
## Can verify parallel operation of createExternalCoupledPatchGeometry
|
||||
# \rm -f log.createExternalCoupledPatchGeometry
|
||||
# rm -f log.createExternalCoupledPatchGeometry
|
||||
# runParallel createExternalCoupledPatchGeometry \
|
||||
# -regions '(topAir heater)' coupleGroup \
|
||||
# -commsDir $PWD/comms
|
||||
|
||||
@ -32,7 +32,7 @@ refGrad=0
|
||||
valueFraction=1
|
||||
|
||||
# Remove any old junk
|
||||
\rm -f $lockFile 2>/dev/null
|
||||
rm -f "$lockFile"
|
||||
|
||||
log()
|
||||
{
|
||||
@ -169,7 +169,7 @@ done
|
||||
log "done"
|
||||
|
||||
# Remove the lock file too
|
||||
\rm -f $lockFile 2>/dev/null
|
||||
rm -f "$lockFile"
|
||||
|
||||
# For log collector:
|
||||
echo "End"
|
||||
|
||||
@ -37,8 +37,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Stop on first error
|
||||
set -e
|
||||
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "FOAM FATAL ERROR: gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -6,8 +6,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
cleanCase0
|
||||
|
||||
# Remove surface and features
|
||||
rm -f constant/triSurface/motorBike.obj.gz > /dev/null 2>&1
|
||||
rm -f constant/triSurface/motorBike.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/motorBike.obj.gz
|
||||
rm -f constant/triSurface/motorBike.eMesh
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Clean time directories and processors
|
||||
rm -rf *[1-9]* processor*
|
||||
@ -8,6 +9,6 @@ rm -rf *[1-9]* processor*
|
||||
rm -rf optimisation constant/controlPoints
|
||||
|
||||
# Clean logs
|
||||
rm -f log.* 2>/dev/null
|
||||
rm -f log.*
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -36,8 +36,9 @@ done
|
||||
if notTest $@
|
||||
then
|
||||
# create validation plot
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ copyParallelPointDisplacement()
|
||||
if [ -d "$proc/$latestTime" -a ! -d "$proc/$deltaT" ]
|
||||
then
|
||||
mv $proc/$latestTime $proc/$deltaT
|
||||
\rm -rf $proc/$deltaT/uniform
|
||||
rm -rf "$proc/$deltaT/uniform"
|
||||
fi
|
||||
done
|
||||
)
|
||||
|
||||
@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Cleanup old junk that may prevent things from starting
|
||||
\rm -f comms/OpenFOAM.lock
|
||||
rm -f comms/OpenFOAM.lock
|
||||
|
||||
# If OpenFOAM stops prematurely, trigger the external solver to stop
|
||||
trap '[ -e comms/OpenFOAM.lock ] && echo "status=done" > comms/OpenFOAM.lock' EXIT TERM INT
|
||||
|
||||
@ -10,7 +10,7 @@ cp $FOAM_TUTORIALS/resources/geometry/building_wtc2.obj constant/triSurface/
|
||||
# runApplication surfaceFeatureExtract
|
||||
runApplication blockMesh
|
||||
|
||||
\rm -f constant/polyMesh/*Level
|
||||
rm -f constant/polyMesh/*Level
|
||||
|
||||
unset parallel
|
||||
parallel=true
|
||||
@ -23,7 +23,7 @@ then
|
||||
# Serial
|
||||
|
||||
runApplication snappyHexMesh -overwrite
|
||||
\rm -f constant/polyMesh/refinementHistory*
|
||||
rm -f constant/polyMesh/refinementHistory*
|
||||
|
||||
restore0Dir
|
||||
|
||||
|
||||
@ -4,6 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cleanCase
|
||||
\rm -rf constant/boundaryData *.png
|
||||
rm -rf constant/boundaryData *.png
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@ -29,8 +29,9 @@ runParallel $(getApplication)
|
||||
if notTest $@
|
||||
then
|
||||
# create validation plot
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm -f ppGeometry.vtp 2>/dev/null
|
||||
rm -f ppGeometry.vtp
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -6,8 +6,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
cleanCase0
|
||||
|
||||
# Remove surfaces and features
|
||||
rm -f constant/triSurface/propellerTip.obj.gz > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/propellerTip.obj.gz
|
||||
rm -f constant/triSurface/*.eMesh*
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
cleanCase0
|
||||
|
||||
# Remove surfaces and features
|
||||
rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*.eMesh*
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -26,7 +26,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
(
|
||||
cd wingMotion2D_pimpleFoam || exit 1
|
||||
|
||||
\rm -rf constant/polyMesh
|
||||
rm -rf constant/polyMesh
|
||||
\cp -r ../wingMotion2D_simpleFoam/constant/polyMesh constant
|
||||
restore0Dir
|
||||
runApplication mapFields ../wingMotion2D_simpleFoam -sourceTime latestTime -consistent
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
tail -n +4 ../postProcessing/probes/0/U | \
|
||||
tr -s " " | tr -d '(' | cut -d " " -f2-3 > ../Numerical.dat
|
||||
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
cleanCase0
|
||||
|
||||
# Remove copies of common files
|
||||
\rm -rf constant
|
||||
rm -rf constant
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
echo "Use common files for 0/, constant/ and blockMeshDict"
|
||||
\rm -rf 0 constant
|
||||
rm -rf 0 constant
|
||||
\cp -r ../common/0.orig 0
|
||||
\cp -r ../common/constant constant
|
||||
|
||||
|
||||
@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
cleanCase0
|
||||
|
||||
# Remove copies of common files
|
||||
\rm -rf constant
|
||||
rm -rf constant
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
echo "Use common files for 0/, constant/ and blockMeshDict"
|
||||
\rm -rf 0 constant
|
||||
rm -rf 0 constant
|
||||
\cp -r ../common/0.orig 0
|
||||
\cp -r ../common/constant constant
|
||||
|
||||
|
||||
@ -5,8 +5,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm *.obj > /dev/null 2>&1
|
||||
rm -r constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm constant/triSurface/boundaryAndFaceZones.eMesh > /dev/null 2>&1
|
||||
rm -f *.obj
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
rm -f constant/triSurface/boundaryAndFaceZones.eMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,8 +1,9 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Clean time directories only
|
||||
|
||||
rm -rf *[1-9]*
|
||||
rm -f log.* 2>/dev/null
|
||||
rm -f log.*
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf *.dat *.png
|
||||
rm -rf *.dat *.png
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@ -10,8 +10,8 @@ if notTest $@
|
||||
then
|
||||
# Create validation plots
|
||||
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
@ -25,8 +25,8 @@ then
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Test if awk exists on the system
|
||||
command -v awk >/dev/null 2>&1 || {
|
||||
# Require awk
|
||||
command -v awk >/dev/null || {
|
||||
echo "awk not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
@ -71,7 +71,7 @@ EOF1
|
||||
foamDictionary -entry boundaryField.lowerWall.value -value $timeDir/wallShearStress | \
|
||||
sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' > tau.$$
|
||||
paste -d ' ' Cx.$$ tau.$$ >> tauw.dat
|
||||
\rm -f Cx.$$ tau.$$
|
||||
rm -f Cx.$$ tau.$$
|
||||
|
||||
graphNameTau="backwardStep2D_tau.png"
|
||||
echo "Creating wallshear stress graph to $graphNameTau"
|
||||
|
||||
@ -4,6 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cleanCase
|
||||
\rm -f *.png
|
||||
rm -rf *.png
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -92,14 +92,14 @@ if notTest $@
|
||||
then
|
||||
# Create validation plots
|
||||
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
# Require gnuplot
|
||||
command -v gnuplot >/dev/null || {
|
||||
echo "gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Test if awk exists on the system
|
||||
command -v awk >/dev/null 2>&1 || {
|
||||
# Require awk
|
||||
command -v awk >/dev/null || {
|
||||
echo "awk not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -6,8 +6,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
cleanCase0
|
||||
|
||||
# Remove surface and features
|
||||
rm -f constant/triSurface/motorBike.obj.gz > /dev/null 2>&1
|
||||
rm -f constant/triSurface/motorBike.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/motorBike.obj.gz
|
||||
rm -f constant/triSurface/motorBike.eMesh
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -6,10 +6,10 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
cleanCase
|
||||
|
||||
# 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
|
||||
rm -f constant/triSurface/rotatingZone.eMesh
|
||||
rm -f constant/triSurface/fixed.eMesh
|
||||
rm -f 0/pointLevel
|
||||
rm -f 0/cellLevel
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0 postProcessing-*
|
||||
\rm -f *.dat *.png constant/turbulenceProperties
|
||||
rm -rf 0 postProcessing-*
|
||||
rm -f *.dat *.png constant/turbulenceProperties
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/buildings.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
rm -f constant/triSurface/buildings.eMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
# rm -f constant/triSurface/cyclone.stl.gz > /dev/null 2>&1
|
||||
# rm -f constant/triSurface/cyclone.stl*
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -10,7 +10,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
runApplication decomposePar
|
||||
runParallel $(getApplication)
|
||||
runApplication reconstructPar -latestTime
|
||||
rm log.reconstructPar
|
||||
rm -f log.reconstructPar
|
||||
runApplication reconstructPar -lagrangianFields \
|
||||
'(collisionRecordsPairAccessed collisionRecordsPairData \
|
||||
collisionRecordsPairOrigIdOfOther \
|
||||
|
||||
@ -25,7 +25,7 @@ nz=2
|
||||
|
||||
|
||||
tmpSetSet='patchify.setSet'
|
||||
rm -f patchify.setSet >/dev/null 2>&1
|
||||
rm -f patchify.setSet
|
||||
|
||||
|
||||
initialiseFaceSet()
|
||||
|
||||
@ -11,7 +11,7 @@ restore0Dir
|
||||
# initialise with potentialFoam solution
|
||||
runApplication potentialFoam
|
||||
|
||||
\rm -f 0/phi
|
||||
rm -f 0/phi
|
||||
|
||||
# run the solver
|
||||
runApplication $(getApplication)
|
||||
|
||||
@ -11,7 +11,7 @@ restore0Dir
|
||||
# initialise with potentialFoam solution
|
||||
runApplication potentialFoam
|
||||
|
||||
\rm -f 0/phi
|
||||
rm -f 0/phi
|
||||
|
||||
# run the solver
|
||||
runApplication $(getApplication)
|
||||
|
||||
@ -10,7 +10,7 @@ runApplication blockMesh
|
||||
runApplication potentialFoam
|
||||
|
||||
# Remove incompatible (volumetric) flux field
|
||||
\rm -f 0/phi 2>/dev/null
|
||||
rm -f 0/phi
|
||||
|
||||
runApplication $(getApplication)
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ runApplication blockMesh
|
||||
runApplication potentialFoam
|
||||
|
||||
# Remove incompatible (volumetric) flux field
|
||||
\rm -f 0/phi 2>/dev/null
|
||||
rm -f 0/phi
|
||||
|
||||
runApplication decomposePar
|
||||
|
||||
|
||||
@ -5,19 +5,18 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm -rf constant/triSurface/blob.stl.gz > /dev/null 2>&1
|
||||
rm -rf constant/triSurface/blob.stl.gz
|
||||
|
||||
rm -rf constant/cellAlignments > /dev/null 2>&1
|
||||
rm -rf constant/targetCellSize > /dev/null 2>&1
|
||||
rm -rf constant/internalDelaunayVertices > /dev/null 2>&1
|
||||
rm -rf constant/cellAlignments
|
||||
rm -rf constant/targetCellSize
|
||||
rm -rf constant/internalDelaunayVertices
|
||||
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/boundary > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/faces > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/neighbour > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/owner > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/points > /dev/null 2>&1
|
||||
(
|
||||
cd constant/backgroundMeshDecomposition/polyMesh 2>/dev/null || exit 1
|
||||
rm -f boundary faces neighbour owner points
|
||||
)
|
||||
|
||||
rm -rf snapToSurface?.obj > /dev/null 2>&1
|
||||
rm -rf tetsToSnapTo.obj > /dev/null 2>&1
|
||||
rm -rf snapToSurface?.obj
|
||||
rm -rf tetsToSnapTo.obj
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,18 +5,17 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm -r constant/triSurface/flange.stl.gz > /dev/null 2>&1
|
||||
rm -r constant/triSurface/flange.stl.gz
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -r constant/ccx constant/ccy constant/ccz > /dev/null 2>&1
|
||||
rm -r constant/internalDelaunayVertices constant/targetCellSize > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
rm -r constant/ccx constant/ccy constant/ccz
|
||||
rm -r constant/internalDelaunayVertices constant/targetCellSize
|
||||
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/boundary > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/faces > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/neighbour > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/owner > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/points > /dev/null 2>&1
|
||||
(
|
||||
cd constant/backgroundMeshDecomposition/polyMesh 2>/dev/null && \
|
||||
rm -f faces neighbour owner points
|
||||
)
|
||||
|
||||
rm -r *.obj > /dev/null 2>&1
|
||||
rm -r *.obj
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -16,7 +16,7 @@ intersectSurfaces()
|
||||
}
|
||||
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
|
||||
|
||||
# Run the surface preparation script
|
||||
@ -76,7 +76,7 @@ then
|
||||
runApplication reconstructParMesh -latestTime
|
||||
|
||||
\cp -r $latestTime/polyMesh constant
|
||||
\rm -rf $latestTime
|
||||
rm -rf $latestTime
|
||||
fi
|
||||
|
||||
|
||||
|
||||
@ -5,13 +5,12 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm -r constant/extendedFeatureEdgeMesh constant/internalDelaunayVertices > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*.eMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*_orient* > /dev/null 2>&1
|
||||
rm -r constant/tetDualMesh > /dev/null 2>&1
|
||||
rm -r constant/extendedFeatureEdgeMesh constant/internalDelaunayVertices
|
||||
rm -f constant/triSurface/*.eMesh
|
||||
rm -f constant/triSurface/*_orient*
|
||||
rm -r constant/tetDualMesh
|
||||
|
||||
rm -r snapToSurface?.obj tetsToSnapTo.obj > /dev/null 2>&1
|
||||
|
||||
rm domain coneAndSphere > /dev/null 2>&1
|
||||
rm -r snapToSurface?.obj tetsToSnapTo.obj
|
||||
rm -f domain coneAndSphere
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,8 +5,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -rf constant/triSurface/*.eMesh > /dev/null 2>&1
|
||||
rm -rf MeshedSurface.obj > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
rm -rf constant/triSurface/*.eMesh
|
||||
rm -rf MeshedSurface.obj
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,8 +5,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -rf constant/triSurface/jaggedBoundary.eMesh > /dev/null 2>&1
|
||||
rm -rf MeshedSurface.obj > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
rm -rf constant/triSurface/jaggedBoundary.eMesh
|
||||
rm -rf MeshedSurface.obj
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,8 +5,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -rf constant/triSurface/unit_cube.eMesh > /dev/null 2>&1
|
||||
rm -rf MeshedSurface*.obj > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
rm -rf constant/triSurface/unit_cube.eMesh
|
||||
rm -rf MeshedSurface*.obj
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,11 +5,11 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm -f ./flange ./*.obj > /dev/null 2>&1
|
||||
rm -f ./flange ./*.obj
|
||||
|
||||
# Remove surface and features
|
||||
rm -f constant/triSurface/flange.stl.gz > /dev/null 2>&1
|
||||
rm -f constant/triSurface/flange.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/flange.stl.gz
|
||||
rm -f constant/triSurface/flange.eMesh
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
cleanCase0
|
||||
|
||||
# Remove surface and features
|
||||
rm -f constant/triSurface/*.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*.eMesh
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,6 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cleanCase0
|
||||
rmdir constant 2> /dev/null
|
||||
rmdir constant 2>/dev/null
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf 0/polyMesh > /dev/null 2>&1
|
||||
rm system/topoSetDict > /dev/null 2>&1
|
||||
rm -rf 0/polyMesh
|
||||
rm -f system/topoSetDict
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm system/topoSetDict > /dev/null 2>&1
|
||||
rm -rf processor[0-9] > /dev/null 2>&1
|
||||
rm -f system/topoSetDict
|
||||
rm -rf processor[0-9]
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf 0/polyMesh > /dev/null 2>&1
|
||||
rm system/topoSetDict > /dev/null 2>&1
|
||||
rm -rf 0/polyMesh
|
||||
rm -f system/topoSetDict
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -3,6 +3,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Clean time directories only
|
||||
rm -rf *[1-9]*
|
||||
rm -f log.* 2>/dev/null
|
||||
rm -f log.*
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,6 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cleanCase
|
||||
rm system/topoSetDict > /dev/null 2>&1
|
||||
|
||||
rm -f system/topoSetDict
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,11 +5,11 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm system/topoSetDict > /dev/null 2>&1
|
||||
rm -f system/topoSetDict
|
||||
|
||||
# Remove surfaces and features
|
||||
rm -f constant/triSurface/DTC-scaled.stl.gz > /dev/null 2>&1
|
||||
rm -f constant/triSurface/DTC-scaled.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/DTC-scaled.stl.gz
|
||||
rm -f constant/triSurface/DTC-scaled.eMesh
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,11 +5,11 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm system/topoSetDict > /dev/null 2>&1
|
||||
rm -f system/topoSetDict
|
||||
|
||||
# Remove surface and features
|
||||
rm -f constant/triSurface/DTC-scaled.stl.gz > /dev/null 2>&1
|
||||
rm -f constant/triSurface/DTC-scaled.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/DTC-scaled.stl.gz
|
||||
rm -f constant/triSurface/DTC-scaled.eMesh
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
rm -f constant/triSurface/*.eMesh*
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -3,7 +3,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
\rm -rf 0
|
||||
rm -rf 0
|
||||
|
||||
# Meshing
|
||||
runApplication blockMesh
|
||||
|
||||
@ -6,9 +6,9 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
cleanCase0
|
||||
|
||||
# Remove surface and features
|
||||
\rm -f constant/triSurface/motorBike.obj.gz > /dev/null 2>&1
|
||||
\rm -f constant/triSurface/motorBike.eMesh > /dev/null 2>&1
|
||||
\rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/motorBike.obj.gz
|
||||
rm -f constant/triSurface/motorBike.eMesh
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
|
||||
\cp system/controlDict_run system/controlDict
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ runApplication blockMesh
|
||||
# Serial
|
||||
# ------
|
||||
#runApplication snappyHexMesh -overwrite
|
||||
#\rm -f constant/polyMesh/refinementHistory*
|
||||
#rm -f constant/polyMesh/refinementHistory*
|
||||
# - set the initial fields
|
||||
# restore0Dir
|
||||
#runApplication setFields
|
||||
|
||||
@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm 0/alpha.water.gz 0/alpha.water 2>/dev/null
|
||||
rm -f 0/alpha.water.gz 0/alpha.water
|
||||
rm -rf *Flux
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm system/cellSetDict > /dev/null 2>&1
|
||||
rm -f system/cellSetDict
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,6 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cleanCase0
|
||||
\rm -rf isoFaces
|
||||
rm -rf isoFaces
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm system/cellSetDict > /dev/null 2>&1
|
||||
rm -f system/cellSetDict
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -6,8 +6,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
cleanCase0
|
||||
|
||||
# Remove surface
|
||||
rm -f constant/triSurface/propellerTip.obj.gz > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/propellerTip.obj.gz
|
||||
rm -f constant/triSurface/*.eMesh*
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -6,8 +6,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
cleanCase0
|
||||
|
||||
# Remove surface and features
|
||||
\rm -f constant/triSurface/motorBike.obj.gz > /dev/null 2>&1
|
||||
\rm -f constant/triSurface/motorBike.eMesh > /dev/null 2>&1
|
||||
\rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/motorBike.obj.gz
|
||||
rm -f constant/triSurface/motorBike.eMesh
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,8 +5,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase0
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
rm -f constant/triSurface/*.eMesh
|
||||
|
||||
rm -rf VTK
|
||||
rm -rf constant/bottomAir/polyMesh
|
||||
|
||||
@ -3,7 +3,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
\rm -f constant/triSurface/blob.obj
|
||||
rm -f constant/triSurface/blob.obj
|
||||
|
||||
cleanCase0
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user