From 2e1557a79e8d219171d3b7bf54f2a42005ee4f56 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 2 Aug 2016 16:24:28 +0100 Subject: [PATCH] tutorials Allrun scripts: Update running of postProcess application Patch contributed by Bruno Santos Resolves bug-report http://bugs.openfoam.org/view.php?id=2173 --- tutorials/DNS/dnsFoam/boxTurb16/Allrun | 2 +- tutorials/combustion/XiFoam/ras/Allrun | 8 +++++++- tutorials/compressible/sonicFoam/laminar/shockTube/Allrun | 2 +- tutorials/electromagnetics/mhdFoam/hartmann/Allrun | 2 +- .../heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun | 2 +- .../stressAnalysis/solidDisplacementFoam/plateHole/Allrun | 4 ++-- 6 files changed, 13 insertions(+), 7 deletions(-) diff --git a/tutorials/DNS/dnsFoam/boxTurb16/Allrun b/tutorials/DNS/dnsFoam/boxTurb16/Allrun index 26449db3a8..3551c4f05a 100755 --- a/tutorials/DNS/dnsFoam/boxTurb16/Allrun +++ b/tutorials/DNS/dnsFoam/boxTurb16/Allrun @@ -10,6 +10,6 @@ application=`getApplication` runApplication blockMesh runApplication boxTurb runApplication $application -runApplication enstrophy +runApplication -s enstrophy postProcess -func enstrophy #------------------------------------------------------------------------------ diff --git a/tutorials/combustion/XiFoam/ras/Allrun b/tutorials/combustion/XiFoam/ras/Allrun index e1db61c60c..6dd242a2b6 100755 --- a/tutorials/combustion/XiFoam/ras/Allrun +++ b/tutorials/combustion/XiFoam/ras/Allrun @@ -31,7 +31,13 @@ cloneCase moriyoshiHomogeneous moriyoshiHomogeneousPart2 ( cd moriyoshiHomogeneousPart2 || exit - cp -r ../moriyoshiHomogeneous/0.005 . + # The following 2 command lines are a generic implementation of the + # following command: + # cp -r ../moriyoshiHomogeneous/0.005 . + + lastTimeStep=$(foamListTimes -case ../moriyoshiHomogeneous -latestTime) + cp -r ../moriyoshiHomogeneous/$lastTimeStep . + setControlDict runApplication `getApplication` ) diff --git a/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun b/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun index 7cfeb167c5..14dcfb2547 100755 --- a/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun +++ b/tutorials/compressible/sonicFoam/laminar/shockTube/Allrun @@ -9,6 +9,6 @@ application=`getApplication` runApplication blockMesh runApplication setFields runApplication $application -runApplication postProcess -func sample +runApplication -s sample postProcess -func sample #------------------------------------------------------------------------------ diff --git a/tutorials/electromagnetics/mhdFoam/hartmann/Allrun b/tutorials/electromagnetics/mhdFoam/hartmann/Allrun index c5296a889f..1ce2d5cf33 100755 --- a/tutorials/electromagnetics/mhdFoam/hartmann/Allrun +++ b/tutorials/electromagnetics/mhdFoam/hartmann/Allrun @@ -9,6 +9,6 @@ application=`getApplication` runApplication blockMesh runApplication $application -runApplication postProcess -func sample +runApplication -s sample postProcess -func sample #------------------------------------------------------------------------------ diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun b/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun index 473be2d997..5ddbc447bf 100755 --- a/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun +++ b/tutorials/heatTransfer/buoyantSimpleFoam/buoyantCavity/Allrun @@ -9,7 +9,7 @@ application=`getApplication` runApplication blockMesh runApplication $application -runApplication postProcess -latestTime -func sample +runApplication -s sample postProcess -latestTime -func sample ( cd validation && ./createGraphs ) diff --git a/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun b/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun index 6d074b7c86..c64db75b8e 100755 --- a/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun +++ b/tutorials/stressAnalysis/solidDisplacementFoam/plateHole/Allrun @@ -8,7 +8,7 @@ application=`getApplication` runApplication blockMesh runApplication $application -runApplication -s sigma postProcess -func "components(sigma)" -runApplication postProcess -func singleGraph +runApplication -s sigma postProcess -func "components(sigma)" +runApplication -s singleGraph postProcess -func singleGraph #------------------------------------------------------------------------------