diff --git a/tutorials/interDyMFoam/Allclean b/tutorials/interDyMFoam/Allclean new file mode 100755 index 0000000000000000000000000000000000000000..acf465ac32ab82602496247961016ab9779533cf --- /dev/null +++ b/tutorials/interDyMFoam/Allclean @@ -0,0 +1,13 @@ +#!/bin/sh + +currDir=`pwd` +application=`basename $currDir` +cases="damBreakWithObstacle" + +tutorialPath=`dirname $0`/.. +. $tutorialPath/CleanFunctions + +for case in $cases +do + cleanCase $case +done diff --git a/tutorials/interDyMFoam/Allrun b/tutorials/interDyMFoam/Allrun new file mode 100755 index 0000000000000000000000000000000000000000..6ef2ffbf92030011ac3f6b8e317fc531cf12f9ae --- /dev/null +++ b/tutorials/interDyMFoam/Allrun @@ -0,0 +1,18 @@ +#!/bin/sh + +currDir=`pwd` +application=`basename $currDir` +cases="damBreakWithObstacle" + +tutorialPath=`dirname $0`/.. +. $tutorialPath/RunFunctions +. $tutorialPath/CleanFunctions + +for case in $cases +do + runApplication blockMesh $case + runApplication setSet $case -batch createObstacle.setSet + runApplication subsetMesh $case c0 -patch walls + runApplication setFields $case -latestTime + runApplication $application $case +done diff --git a/tutorials/interDyMFoam/damBreakWithObstacle/system/controlDict b/tutorials/interDyMFoam/damBreakWithObstacle/system/controlDict index 0dbfd9b902afebc1153be3ac2ec855c771f6c0f1..e1313279fd06ada2dc4e74653240c75f6369b65e 100644 --- a/tutorials/interDyMFoam/damBreakWithObstacle/system/controlDict +++ b/tutorials/interDyMFoam/damBreakWithObstacle/system/controlDict @@ -24,7 +24,7 @@ FoamFile application interFoam; -startFrom startTime; +startFrom latestTime; startTime 0; diff --git a/tutorials/interDyMFoam/damBreakWithObstacle/system/decomposeParDict b/tutorials/interDyMFoam/damBreakWithObstacle/system/decomposeParDict index ef1ee29d0370ed41dcf2265b7d9ad44a21fef46e..88569a8784a662dafabbb241f24831ae9ff34028 100644 --- a/tutorials/interDyMFoam/damBreakWithObstacle/system/decomposeParDict +++ b/tutorials/interDyMFoam/damBreakWithObstacle/system/decomposeParDict @@ -25,7 +25,8 @@ FoamFile numberOfSubdomains 4; -method simple; +//method metis; +method hierarchical; simpleCoeffs { @@ -35,21 +36,13 @@ simpleCoeffs hierarchicalCoeffs { - n (1 1 1); + n (2 2 1); delta 0.001; order xyz; } metisCoeffs -{ - processorWeights - ( - 1 - 1 - 1 - 1 - ); -} +{} manualCoeffs {