tutorials/incompressible/simpleFoam/turbineSiting: Replaced file copying with foamDictionary and .orig

This commit is contained in:
Will Bainbridge
2019-10-01 15:00:55 +01:00
parent 5e09cccd9c
commit d94a7bf590
4 changed files with 2 additions and 39 deletions

View File

@ -1,12 +0,0 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
# Remove decomposeParDict
rm -f system/decomposeParDict
#------------------------------------------------------------------------------

View File

@ -5,14 +5,11 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
cp system/decomposeParDict.hierarchical system/decomposeParDict
foamDictionary -entry "method" -set "hierarchical" system/decomposeParDict
runApplication decomposePar -copyZero
cp system/decomposeParDict.ptscotch system/decomposeParDict
foamDictionary -entry "method" -set "ptscotch" system/decomposeParDict
runParallel snappyHexMesh -overwrite
find . -type f -iname "*level*" -exec rm {} \;
runParallel topoSet
runParallel $(getApplication)

View File

@ -1,22 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4;
method ptscotch;
// ************************************************************************* //