Skip to content
Snippets Groups Projects
Commit 8d65da5b authored by sergio's avatar sergio
Browse files

ENH: Adding parallel running for compressibleDyInterFoam tutorial

parent 0a5d1589
Branches
Tags
No related merge requests found
#!/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
/*--------------------------------*- 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;
}
// ************************************************************************* //
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment