TUT: added tutorial files (issue #671)

- also cleanup by using 0.orig/ directory.
- use foamListRegions to obtain region names
This commit is contained in:
Mark Olesen
2017-12-19 14:40:33 +01:00
parent 5713efede3
commit 8bf98e74da
46 changed files with 296 additions and 145 deletions

View File

@ -11,17 +11,17 @@ cd ${0%/*} || exit 1 # Run from this directory
runApplication decomposePar -allRegions -constant
# Agglomerate patch faces
for i in air
for region in air
do
runParallel -s $i \
faceAgglomerate -region $i -dict constant/viewFactorsDict
runParallel -s $region \
faceAgglomerate -region $region -dict constant/viewFactorsDict
done
# Generate view factors
for i in air
for region in air
do
runParallel -s $i \
viewFactorsGen -region $i
runParallel -s $region \
viewFactorsGen -region $region
done
# Set the initial fields
@ -33,8 +33,7 @@ runParallel $(getApplication)
runApplication reconstructPar -allRegions
echo
echo "Creating files for paraview post-processing"
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
paraFoam -touchAll
#------------------------------------------------------------------------------