ENH: Adding parallel running for compressibleDyInterFoam tutorial

This commit is contained in:
sergio
2016-12-20 09:45:52 -08:00
parent 0a5d158991
commit 8d65da5b5c
2 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,32 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
runApplication topoSet
# remove empty patches
runApplication createPatch -overwrite
# split mesh into 2 regions at the AMI coupled patch
runApplication mergeOrSplitBaffles -overwrite
echo "Copying 0.org to 0"
cp -r 0.org 0
runApplication setFields
runApplication decomposePar
(cd processor0/constant/polyMesh/ && ln -s ../../../include/meshModifiers .)
(cd processor1/constant/polyMesh/ && ln -s ../../../include/meshModifiers .)
runParallel $(getApplication)
runApplication reconstructParMesh
runApplication reconstructPar
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,29 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 2;
method simple;
simpleCoeffs
{
n (2 1 1);
delta 0.001;
}
// ************************************************************************* //