fixing erroneous re-direction
This commit is contained in:
parent
3dc96d589c
commit
dd619a5691
6 changed files with 15 additions and 15 deletions
|
@ -2,4 +2,4 @@
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
||||||
blockMesh >& log.blockMesh
|
blockMesh > log.blockMesh 2>&1
|
||||||
|
|
|
@ -23,7 +23,7 @@ done
|
||||||
|
|
||||||
for i in bottomAir topAir heater leftSolid rightSolid
|
for i in bottomAir topAir heater leftSolid rightSolid
|
||||||
do
|
do
|
||||||
changeDictionary -region $i >& log.changeDictionary.$i
|
changeDictionary -region $i > log.changeDictionary.$i 2>&1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ runApplication chtMultiRegionFoam
|
||||||
## Decompose
|
## Decompose
|
||||||
#for i in bottomAir topAir heater leftSolid rightSolid
|
#for i in bottomAir topAir heater leftSolid rightSolid
|
||||||
#do
|
#do
|
||||||
# decomposePar -region $i >& log.decomposePar.$i
|
# decomposePar -region $i > log.decomposePar.$i 2>&1
|
||||||
#done
|
#done
|
||||||
#
|
#
|
||||||
## Run
|
## Run
|
||||||
|
@ -43,7 +43,7 @@ runApplication chtMultiRegionFoam
|
||||||
## Reconstruct
|
## Reconstruct
|
||||||
#for i in bottomAir topAir heater leftSolid rightSolid
|
#for i in bottomAir topAir heater leftSolid rightSolid
|
||||||
#do
|
#do
|
||||||
# reconstructPar -region $i >& log.reconstructPar.$i
|
# reconstructPar -region $i > log.reconstructPar.$i 2>&1
|
||||||
#done
|
#done
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ done
|
||||||
|
|
||||||
for i in bottomAir topAir heater leftSolid rightSolid
|
for i in bottomAir topAir heater leftSolid rightSolid
|
||||||
do
|
do
|
||||||
changeDictionary -region $i >& log.changeDictionary.$i
|
changeDictionary -region $i > log.changeDictionary.$i 2>&1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ runApplication chtMultiRegionSimpleFoam
|
||||||
## Decompose
|
## Decompose
|
||||||
#for i in bottomAir topAir heater leftSolid rightSolid
|
#for i in bottomAir topAir heater leftSolid rightSolid
|
||||||
#do
|
#do
|
||||||
# decomposePar -region $i >& log.decomposePar.$i
|
# decomposePar -region $i > log.decomposePar.$i 2>&1
|
||||||
#done
|
#done
|
||||||
#
|
#
|
||||||
## Run
|
## Run
|
||||||
|
@ -48,7 +48,7 @@ runApplication chtMultiRegionSimpleFoam
|
||||||
## Reconstruct
|
## Reconstruct
|
||||||
#for i in bottomAir topAir heater leftSolid rightSolid
|
#for i in bottomAir topAir heater leftSolid rightSolid
|
||||||
#do
|
#do
|
||||||
# reconstructPar -region $i >& log.reconstructPar.$i
|
# reconstructPar -region $i > log.reconstructPar.$i 2>&1
|
||||||
#done
|
#done
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,16 +9,16 @@ application=`getApplication`
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
|
|
||||||
# create sets
|
# create sets
|
||||||
setSet -batch system/sets.setSet >& log.setSet1
|
setSet -batch system/sets.setSet > log.setSet1 2>&1
|
||||||
|
|
||||||
# convert sets to zones
|
# convert sets to zones
|
||||||
setsToZones -noFlipMap >& log.setsToZones
|
setsToZones -noFlipMap > log.setsToZones 2>&1
|
||||||
|
|
||||||
# create the first cyclic - lhs of porous zone
|
# create the first cyclic - lhs of porous zone
|
||||||
unset FOAM_SETNAN
|
unset FOAM_SETNAN
|
||||||
createBaffles cycLeft cycLeft -overwrite >& log.createBaffles1
|
createBaffles cycLeft cycLeft -overwrite > log.createBaffles1 2>&1
|
||||||
|
|
||||||
# create the second cyclic - rhs of porous zone
|
# create the second cyclic - rhs of porous zone
|
||||||
createBaffles cycRight cycRight -overwrite >& log.createBaffles2
|
createBaffles cycRight cycRight -overwrite > log.createBaffles2 2>&1
|
||||||
|
|
||||||
runApplication $application
|
runApplication $application
|
||||||
|
|
|
@ -12,7 +12,7 @@ refineMeshByCellSet()
|
||||||
do
|
do
|
||||||
echo "creating cell set for primary zone - $1"
|
echo "creating cell set for primary zone - $1"
|
||||||
cp system/cellSetDict.$1 system/cellSetDict
|
cp system/cellSetDict.$1 system/cellSetDict
|
||||||
runApplication -l log.cellSet.$1 cellSet
|
runApplication -l log.cellSet.$1 cellSet
|
||||||
|
|
||||||
echo "refining primary zone - $1"
|
echo "refining primary zone - $1"
|
||||||
runApplication -l log.refineMesh.$1 refineMesh -dict -overwrite
|
runApplication -l log.refineMesh.$1 refineMesh -dict -overwrite
|
||||||
|
@ -33,7 +33,7 @@ cd throttle3D
|
||||||
refineMeshByCellSet 1 2 3
|
refineMeshByCellSet 1 2 3
|
||||||
|
|
||||||
echo "mapping fields from 2D throttle case"
|
echo "mapping fields from 2D throttle case"
|
||||||
mapFields ../throttle -sourceTime latestTime >& log.mapFields
|
mapFields ../throttle -sourceTime latestTime > log.mapFields 2>&1
|
||||||
|
|
||||||
runApplication decomposePar
|
runApplication decomposePar
|
||||||
runParallel $application 4
|
runParallel $application 4
|
||||||
|
|
|
@ -9,10 +9,10 @@ refineMeshByCellSet()
|
||||||
{
|
{
|
||||||
echo "creating cell set for primary zone - $1"
|
echo "creating cell set for primary zone - $1"
|
||||||
cp system/cellSetDict.$1 system/cellSetDict
|
cp system/cellSetDict.$1 system/cellSetDict
|
||||||
cellSet >& log.cellSet.$1
|
cellSet > log.cellSet.$1 2>&1
|
||||||
|
|
||||||
echo "refining primary zone - $1"
|
echo "refining primary zone - $1"
|
||||||
refineMesh -dict -overwrite >& log.refineMesh.$1
|
refineMesh -dict -overwrite > log.refineMesh.$1 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
|
|
Reference in a new issue