mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
blockMesh: Change default location of blockMeshDict from constant/polyMesh to system
For multi-region cases the default location of blockMeshDict is now system/<region name> If the blockMeshDict is not found in system then the constant directory is also checked providing backward-compatibility
This commit is contained in:
@ -3,7 +3,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
set -x
|
||||
|
||||
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
||||
m4 < system/blockMeshDict.m4 > system/blockMeshDict
|
||||
blockMesh > log.blockMesh 2>&1
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -26,7 +26,7 @@ copySolutionDirs()
|
||||
|
||||
setCavityFine()
|
||||
{
|
||||
blockMeshDict="$caseName/constant/polyMesh/blockMeshDict"
|
||||
blockMeshDict="$caseName/system/blockMeshDict"
|
||||
controlDict="$caseName/system/controlDict"
|
||||
sed s/"20 20 1"/"41 41 1"/g $blockMeshDict > temp.$$
|
||||
mv temp.$$ $blockMeshDict
|
||||
|
||||
@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
||||
m4 < system/blockMeshDict.m4 > system/blockMeshDict
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
|
||||
@ -0,0 +1 @@
|
||||
../../angledDuctImplicit/system/blockMeshDict.m4
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
m4 constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
||||
m4 system/blockMeshDict.m4 > system/blockMeshDict
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
||||
m4 < system/blockMeshDict.m4 > system/blockMeshDict
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user