mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Avoid constant/polyMesh/blockMeshDict (issue #309)
- relocate to system/blockMeshDict, which avoids it being cleaned out accidentally
This commit is contained in:
10
tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allclean
Executable file
10
tutorials/combustion/XiDyMFoam/annularCombustorTurbine/Allclean
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
# Source tutorial clean functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
|
cleanCase
|
||||||
|
rm -rf 0
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
./Allrun.mesh
|
./Allrun.mesh
|
||||||
@ -15,3 +15,5 @@ runParallel potentialFoam -pName pPotential -initialiseUBCs
|
|||||||
\rm -f processor*/0/phi
|
\rm -f processor*/0/phi
|
||||||
|
|
||||||
runParallel XiDyMFoam
|
runParallel XiDyMFoam
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,11 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
cd ${0%/*} || exit 1
|
# Source tutorial run functions
|
||||||
|
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
rm -f log.* constant/polyMesh/*Level
|
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
|
|
||||||
runApplication -s cyclic \
|
runApplication -s cyclic \
|
||||||
@ -21,3 +19,5 @@ runApplication -s ami \
|
|||||||
runApplication transformPoints -scale '(0.01 0.01 0.01)'
|
runApplication transformPoints -scale '(0.01 0.01 0.01)'
|
||||||
|
|
||||||
runApplication mergeOrSplitBaffles -split -overwrite
|
runApplication mergeOrSplitBaffles -split -overwrite
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
rm -rf constant/panelRegion/polyMesh
|
rm -rf constant/panelRegion/polyMesh
|
||||||
rm -f constant/polyMesh/boundary
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|||||||
@ -7,8 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
cleanCase
|
cleanCase
|
||||||
|
|
||||||
rm -f 0/ph_rgh
|
rm -f 0/ph_rgh
|
||||||
|
rm -f 0/polyMesh/cellMap
|
||||||
rm -rf constant/panelRegion/polyMesh
|
rm -rf constant/panelRegion/polyMesh
|
||||||
rm -f 0/polyMesh/cellMap
|
|
||||||
rm -f constant/polyMesh/boundary
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,12 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
# Source tutorial clean functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
|
cleanCase
|
||||||
|
|
||||||
# Restore default dictionaries
|
# Restore default dictionaries
|
||||||
cp system/decomposeParDict-2 system/decomposeParDict
|
cp system/decomposeParDict-2 system/decomposeParDict
|
||||||
cp system/controlDict-startTime system/controlDict
|
cp system/controlDict-startTime system/controlDict
|
||||||
|
|
||||||
cleanCase
|
# -----------------------------------------------------------------------------
|
||||||
rm -f constant/polyMesh/boundary
|
|
||||||
rm -f constant/polyMesh/procAddressing
|
|
||||||
|
|||||||
@ -4,9 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
# Source tutorial clean functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
# Remove 0.orig/ copy and post-processing directories
|
|
||||||
\rm -rf 0 postProcessing
|
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
rm -rf 0
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -29,5 +29,4 @@ runParallel -s parallel $application
|
|||||||
#- Reconstruct all times
|
#- Reconstruct all times
|
||||||
runParallel -s 1 redistributePar -reconstruct
|
runParallel -s 1 redistributePar -reconstruct
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
# ----------------------------------------------------------------- end-of-file
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ FoamFile
|
|||||||
version 2.0;
|
version 2.0;
|
||||||
format ascii;
|
format ascii;
|
||||||
class dictionary;
|
class dictionary;
|
||||||
location "constant/polyMesh";
|
location "system";
|
||||||
object blockMeshDict;
|
object blockMeshDict;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -3,7 +3,7 @@ FoamFile
|
|||||||
version 2.0;
|
version 2.0;
|
||||||
format ascii;
|
format ascii;
|
||||||
class dictionary;
|
class dictionary;
|
||||||
location "constant/polyMesh";
|
location "system";
|
||||||
object blockMeshDict;
|
object blockMeshDict;
|
||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial clean functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
rm -f constant/polyMesh/boundary
|
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
# Source tutorial clean functions
|
# Source tutorial clean functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
\rm -f constant/polyMesh/boundary > /dev/null 2>&1
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user