Updating solarLoad tutorial case for parallel running

This commit is contained in:
sergio 2017-06-14 08:05:19 -07:00
parent 69deec2e1c
commit d435b215e2
19 changed files with 45 additions and 3 deletions

View File

@ -5,6 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
rm -rf VTK
rm -rf constant/cellToRegion

View File

@ -0,0 +1,41 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Setup case
./Allrun.pre
#-- Run in parallel
# Decompose
runApplication decomposePar -allRegions -constant
# Agglomerate patch faces
for i in air
do
runParallel -s $i -np 4 \
faceAgglomerate -region $i -dict constant/viewFactorsDict
done
# Generate view factors
for i in air
do
runParallel -s $i -np 4 viewFactorsGen -region $i
done
# set the initial fields
restore0Dir
runParallel $(getApplication)
# Reconstruct
runApplication reconstructPar -allRegions
echo
echo "creating files for paraview post-processing"
echo
paraFoam -touchAll
# -----------------------------------------------------------------------------

View File

@ -19,6 +19,9 @@ do
rm -f 0*/$i/{rho,mut,alphat,epsilon,k,U,p_rgh,qr,G,IDefault}
done
# set the initial fields
restore0Dir
for i in air solid floor
do
runApplication -s $i changeDictionary -region $i -subDict dictionaryReplacement

View File

@ -19,9 +19,6 @@ FoamFile
numberOfSubdomains 4;
//- Keep owner and neighbour on same processor for faces in zones:
// preserveFaceZones (heater solid1 solid3);
method scotch;