From 3206fe113a4736d5b04595eeae2dc6068df94d67 Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 8 Jun 2011 12:09:52 +0100 Subject: [PATCH] potentialFoam tutorial: updated run and clean scripts --- tutorials/basic/potentialFoam/pitzDaily/0/U | 52 ------------------- tutorials/basic/potentialFoam/pitzDaily/0/p | 50 ------------------ .../potentialFoam/{ => pitzDaily}/Allclean | 18 +------ .../basic/potentialFoam/pitzDaily/Allrun | 1 + 4 files changed, 3 insertions(+), 118 deletions(-) delete mode 100644 tutorials/basic/potentialFoam/pitzDaily/0/U delete mode 100644 tutorials/basic/potentialFoam/pitzDaily/0/p rename tutorials/basic/potentialFoam/{ => pitzDaily}/Allclean (50%) diff --git a/tutorials/basic/potentialFoam/pitzDaily/0/U b/tutorials/basic/potentialFoam/pitzDaily/0/U deleted file mode 100644 index 3aec038c3f..0000000000 --- a/tutorials/basic/potentialFoam/pitzDaily/0/U +++ /dev/null @@ -1,52 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 2.0 | -| \\ / A nd | Web: www.OpenFOAM.com | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volVectorField; - object U; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 1 -1 0 0 0 0]; - -internalField uniform (0 0 0); - -boundaryField -{ - inlet - { - type fixedValue; - value uniform (10 0 0); - } - - outlet - { - type zeroGradient; - } - - upperWall - { - type fixedValue; - value uniform (0 0 0); - } - - lowerWall - { - type fixedValue; - value uniform (0 0 0); - } - - frontAndBack - { - type empty; - } -} - -// ************************************************************************* // diff --git a/tutorials/basic/potentialFoam/pitzDaily/0/p b/tutorials/basic/potentialFoam/pitzDaily/0/p deleted file mode 100644 index 86087fe75f..0000000000 --- a/tutorials/basic/potentialFoam/pitzDaily/0/p +++ /dev/null @@ -1,50 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 2.0 | -| \\ / A nd | Web: www.OpenFOAM.com | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object p; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 2 -2 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - inlet - { - type zeroGradient; - } - - outlet - { - type fixedValue; - value uniform 0; - } - - upperWall - { - type zeroGradient; - } - - lowerWall - { - type zeroGradient; - } - - frontAndBack - { - type empty; - } -} - -// ************************************************************************* // diff --git a/tutorials/basic/potentialFoam/Allclean b/tutorials/basic/potentialFoam/pitzDaily/Allclean similarity index 50% rename from tutorials/basic/potentialFoam/Allclean rename to tutorials/basic/potentialFoam/pitzDaily/Allclean index b81c740007..d16400a94f 100755 --- a/tutorials/basic/potentialFoam/Allclean +++ b/tutorials/basic/potentialFoam/pitzDaily/Allclean @@ -4,22 +4,8 @@ cd ${0%/*} || exit 1 # run from this directory # Source tutorial clean functions . $WM_PROJECT_DIR/bin/tools/CleanFunctions -( - cd cylinder || exit +rm -rf 0 > /dev/null 2>&1 - cleanCase - rm -rf 0 > /dev/null 2>&1 - cp -r 0.org 0 - wclean analyticalCylinder -) - - -( - cd pitzDaily || exit - - cleanCase - rm -rf 0 > /dev/null 2>&1 - cp -r 0.org 0 -) +cleanCase # ----------------------------------------------------------------- end-of-file diff --git a/tutorials/basic/potentialFoam/pitzDaily/Allrun b/tutorials/basic/potentialFoam/pitzDaily/Allrun index 86fa0fdc4d..219e4473de 100755 --- a/tutorials/basic/potentialFoam/pitzDaily/Allrun +++ b/tutorials/basic/potentialFoam/pitzDaily/Allrun @@ -6,6 +6,7 @@ cd ${0%/*} || exit 1 # run from this directory application=`getApplication` +cp -r 0.org 0 > /dev/null 2>&1 runApplication blockMesh runApplication $application runApplication streamFunction