mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Sprucing up the tutorials folder and adding -dict to "collapseEdges"
Patch provided by Bruno Santos Resolves patch application request http://www.openfoam.org/mantisbt/view.php?id=2015
This commit is contained in:
@ -7,16 +7,10 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
./Allrun.pre
|
||||
|
||||
runApplication decomposePar -region air
|
||||
mv log.decomposePar log.decomposePar.air
|
||||
|
||||
runApplication decomposePar -region porous
|
||||
mv log.decomposePar log.decomposePar.porous
|
||||
runApplication -s air decomposePar -region air
|
||||
runApplication -s porous decomposePar -region porous
|
||||
|
||||
runParallel $(getApplication)
|
||||
|
||||
runApplication reconstructPar -latestTime -region air
|
||||
mv log.reconstructPar log.reconstructPar.air
|
||||
|
||||
runApplication reconstructPar -latestTime -region porous
|
||||
mv log.reconstructPar log.reconstructPar.porous
|
||||
runApplication -s air reconstructPar -latestTime -region air
|
||||
runApplication -s porous reconstructPar -latestTime -region porous
|
||||
|
||||
@ -6,20 +6,18 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
#create meshes
|
||||
runApplication blockMesh -region air
|
||||
mv log.blockMesh log.blockMesh.air
|
||||
runApplication blockMesh -region porous
|
||||
mv log.blockMesh log.blockMesh.porous
|
||||
runApplication -s air blockMesh -region air
|
||||
runApplication -s porous blockMesh -region porous
|
||||
|
||||
# create rotor blades in air region
|
||||
runApplication topoSet -region air -dict system/topoSetDict.1
|
||||
mv log.topoSet log.topoSet.air.1
|
||||
runApplication -s air.1 \
|
||||
topoSet -region air -dict system/topoSetDict.1
|
||||
|
||||
runApplication createBaffles -region air -overwrite
|
||||
|
||||
# create rotor zone in air region for MRF
|
||||
runApplication topoSet -region air -dict system/topoSetDict.2
|
||||
mv log.topoSet log.topoSet.air.2
|
||||
runApplication -s air.2 \
|
||||
topoSet -region air -dict system/topoSetDict.2
|
||||
|
||||
rm -rf constant/air/polyMesh/sets
|
||||
|
||||
|
||||
@ -15,13 +15,15 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Agglomerate patch faces
|
||||
for i in bottomAir topAir
|
||||
do
|
||||
faceAgglomerate -region $i -dict constant/viewFactorsDict > log.faceAgglomerate.$i 2>&1
|
||||
runApplication -s $i \
|
||||
faceAgglomerate -region $i -dict constant/viewFactorsDict
|
||||
done
|
||||
|
||||
# Generate view factors
|
||||
for i in bottomAir topAir
|
||||
do
|
||||
viewFactorsGen -region $i > log.viewFactorsGen.$i 2>&1
|
||||
runApplication -s $i \
|
||||
viewFactorsGen -region $i
|
||||
done
|
||||
|
||||
runApplication `getApplication`
|
||||
|
||||
@ -18,13 +18,15 @@ runApplication decomposePar -allRegions
|
||||
# Agglomerate patch faces
|
||||
for i in bottomAir topAir
|
||||
do
|
||||
mpirun -np 4 faceAgglomerate -region $i -dict constant/viewFactorsDict -parallel> log.faceAgglomerate.$i 2>&1
|
||||
runParallel -s $i -np 4 \
|
||||
faceAgglomerate -region $i -dict constant/viewFactorsDict
|
||||
done
|
||||
|
||||
# Generate view factors
|
||||
for i in bottomAir topAir
|
||||
do
|
||||
mpirun -np 4 viewFactorsGen -region $i -parallel > log.viewFactorsGen.$i 2>&1
|
||||
runParallel -s $i -np 4 \
|
||||
viewFactorsGen -region $i
|
||||
done
|
||||
|
||||
# Run
|
||||
|
||||
@ -17,7 +17,7 @@ done
|
||||
|
||||
for i in bottomAir topAir heater leftSolid rightSolid
|
||||
do
|
||||
changeDictionary -region $i > log.changeDictionary.$i 2>&1
|
||||
runApplication -s $i changeDictionary -region $i
|
||||
done
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user