mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Within decomposeParDict, it is now possible to specify a different decomposition method, methods coefficients or number of subdomains for each region individually. The top-level numberOfSubdomains remains mandatory, since this specifies the number of domains for the entire simulation. The individual regions may use the same number or fewer domains. Any optional method coefficients can be specified in a general "coeffs" entry or a method-specific one, eg "metisCoeffs". For multiLevel, only the method-specific "multiLevelCoeffs" dictionary is used, and is also mandatory. ---- ENH: shortcut specification for multiLevel. In addition to the longer dictionary form, it is also possible to use a shorter notation for multiLevel decomposition when the same decomposition method applies to each level.
27 lines
697 B
Bash
Executable File
27 lines
697 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
|
|
|
runApplication blockMesh
|
|
runApplication topoSet
|
|
runApplication splitMeshRegions -cellZones -overwrite
|
|
|
|
# Remove fluid fields from solid regions (important for post-processing)
|
|
for i in heater leftSolid rightSolid
|
|
do
|
|
rm -f 0*/$i/{nut,alphat,epsilon,k,U,p_rgh}
|
|
done
|
|
|
|
for i in bottomWater topAir heater leftSolid rightSolid
|
|
do
|
|
runApplication -s $i changeDictionary -region $i
|
|
done
|
|
|
|
|
|
echo
|
|
echo "Creating files for paraview post-processing"
|
|
echo
|
|
paraFoam -touchAll
|
|
|
|
#------------------------------------------------------------------------------
|