Updating solarLoad tutorial case for parallel running
This commit is contained in:
parent
69deec2e1c
commit
d435b215e2
@ -5,6 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
|
rm -rf 0
|
||||||
|
|
||||||
rm -rf VTK
|
rm -rf VTK
|
||||||
rm -rf constant/cellToRegion
|
rm -rf constant/cellToRegion
|
||||||
|
41
tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun-parallel
Executable file
41
tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/Allrun-parallel
Executable 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
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
@ -19,6 +19,9 @@ do
|
|||||||
rm -f 0*/$i/{rho,mut,alphat,epsilon,k,U,p_rgh,qr,G,IDefault}
|
rm -f 0*/$i/{rho,mut,alphat,epsilon,k,U,p_rgh,qr,G,IDefault}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# set the initial fields
|
||||||
|
restore0Dir
|
||||||
|
|
||||||
for i in air solid floor
|
for i in air solid floor
|
||||||
do
|
do
|
||||||
runApplication -s $i changeDictionary -region $i -subDict dictionaryReplacement
|
runApplication -s $i changeDictionary -region $i -subDict dictionaryReplacement
|
||||||
|
@ -19,9 +19,6 @@ FoamFile
|
|||||||
|
|
||||||
numberOfSubdomains 4;
|
numberOfSubdomains 4;
|
||||||
|
|
||||||
//- Keep owner and neighbour on same processor for faces in zones:
|
|
||||||
// preserveFaceZones (heater solid1 solid3);
|
|
||||||
|
|
||||||
method scotch;
|
method scotch;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user