From 90298600e07ddcdda745ced8e9528abfddf80e76 Mon Sep 17 00:00:00 2001 From: henry <Henry Weller h.weller@opencfd.co.uk> Date: Fri, 10 Jul 2009 12:59:51 +0100 Subject: [PATCH] Corrected buoyancy BCs for p. --- bin/tools/RunFunctions | 7 +- .../XiFoam/les/pitzDaily/constant/g | 3 +- .../XiFoam/les/pitzDaily3D/constant/g | 3 +- .../combustion/dieselFoam/aachenBomb/0/p | 10 +-- .../engineFoam/kivaTest/-180/epsilon | 6 +- .../combustion/engineFoam/kivaTest/-180/k | 6 +- .../multiRegionMesh/constant/topAir/g | 1 + .../bubbleFoam/bubbleColumn/0.org/p | 11 +-- .../multiphase/bubbleFoam/bubbleColumn/0/p | 13 +-- .../MRFInterFoam/mixerVessel2D/Allrun | 2 +- .../multiphase/interFoam/laminar/damBreak/0/p | 9 ++- .../multiphase/interFoam/ras/damBreak/0/p | 9 ++- .../laminar/damBreak4phase/0/p | 9 ++- .../laminar/damBreak4phaseFine/0/p | 9 ++- .../multiphase/settlingFoam/ras/dahl/0/p | 18 +++-- .../multiphase/settlingFoam/ras/tank3D/0/p | 79 +++++++++++-------- .../multiphase/twoPhaseEulerFoam/bed/0/p | 6 +- .../twoPhaseEulerFoam/bubbleColumn/0/p | 13 +-- 18 files changed, 123 insertions(+), 91 deletions(-) mode change 100644 => 120000 tutorials/mesh/snappyHexMesh/multiRegionMesh/constant/topAir/g diff --git a/bin/tools/RunFunctions b/bin/tools/RunFunctions index 62ce3e27ef3..e2c335b05b1 100644 --- a/bin/tools/RunFunctions +++ b/bin/tools/RunFunctions @@ -37,12 +37,13 @@ getApplication () runApplication () { APP_RUN=$1; shift + APP_NAME=${APP_RUN##*/} - if [ -f log.$APP_RUN ] ; then - echo "$APP_RUN already run on $PWD: remove log file to run" + if [ -f log.$APP_NAME ] ; then + echo "$APP_NAME already run on $PWD: remove log file to run" else echo "Running $APP_RUN on $PWD" - $APP_RUN $* > log.$APP_RUN 2>&1 + $APP_RUN $* > log.$APP_NAME 2>&1 fi } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily/constant/g b/tutorials/combustion/XiFoam/les/pitzDaily/constant/g index 2b77c937a25..7b4411955d2 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily/constant/g +++ b/tutorials/combustion/XiFoam/les/pitzDaily/constant/g @@ -16,7 +16,6 @@ FoamFile // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -2 0 0 0 0]; -value ( 0 -9.81 0 ); - +value (0 0 0); // ************************************************************************* // diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/g b/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/g index 057403310a4..d182180d950 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/g +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/g @@ -16,7 +16,6 @@ FoamFile // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -2 0 0 0 0]; -value ( 0 0 0 ); - +value (0 0 0); // ************************************************************************* // diff --git a/tutorials/combustion/dieselFoam/aachenBomb/0/p b/tutorials/combustion/dieselFoam/aachenBomb/0/p index bc33200d5ef..b5ab5ef15ba 100644 --- a/tutorials/combustion/dieselFoam/aachenBomb/0/p +++ b/tutorials/combustion/dieselFoam/aachenBomb/0/p @@ -22,19 +22,19 @@ boundaryField { walls { - type zeroGradient; + type buoyantPressure; + value uniform 5e+06; } - + front { - type wedge; + type wedge; } back { - type wedge; + type wedge; } - } // ************************************************************************* // diff --git a/tutorials/combustion/engineFoam/kivaTest/-180/epsilon b/tutorials/combustion/engineFoam/kivaTest/-180/epsilon index a686c359553..f52dbcdfbff 100644 --- a/tutorials/combustion/engineFoam/kivaTest/-180/epsilon +++ b/tutorials/combustion/engineFoam/kivaTest/-180/epsilon @@ -23,17 +23,17 @@ boundaryField { piston { - type epsilonWallFunction; + type compressible::epsilonWallFunction; value uniform 450; } liner { - type epsilonWallFunction; + type compressible::epsilonWallFunction; value uniform 450; } cylinderHead { - type epsilonWallFunction; + type compressible::epsilonWallFunction; value uniform 450; } } diff --git a/tutorials/combustion/engineFoam/kivaTest/-180/k b/tutorials/combustion/engineFoam/kivaTest/-180/k index e643a368e6a..b97d4da7fd1 100644 --- a/tutorials/combustion/engineFoam/kivaTest/-180/k +++ b/tutorials/combustion/engineFoam/kivaTest/-180/k @@ -23,17 +23,17 @@ boundaryField { piston { - type kQRWallFunction; + type compressible::kQRWallFunction; value uniform 4; } liner { - type kQRWallFunction; + type compressible::kQRWallFunction; value uniform 4; } cylinderHead { - type kQRWallFunction; + type compressible::kQRWallFunction; value uniform 4; } } diff --git a/tutorials/mesh/snappyHexMesh/multiRegionMesh/constant/topAir/g b/tutorials/mesh/snappyHexMesh/multiRegionMesh/constant/topAir/g deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/tutorials/mesh/snappyHexMesh/multiRegionMesh/constant/topAir/g b/tutorials/mesh/snappyHexMesh/multiRegionMesh/constant/topAir/g new file mode 120000 index 00000000000..fe0384ff08b --- /dev/null +++ b/tutorials/mesh/snappyHexMesh/multiRegionMesh/constant/topAir/g @@ -0,0 +1 @@ +../bottomAir/g \ No newline at end of file diff --git a/tutorials/multiphase/bubbleFoam/bubbleColumn/0.org/p b/tutorials/multiphase/bubbleFoam/bubbleColumn/0.org/p index ced7047d438..841cfca2e6c 100644 --- a/tutorials/multiphase/bubbleFoam/bubbleColumn/0.org/p +++ b/tutorials/multiphase/bubbleFoam/bubbleColumn/0.org/p @@ -20,23 +20,24 @@ internalField uniform 0; boundaryField { - inlet + inlet { type zeroGradient; } - outlet + outlet { type fixedValue; value uniform 0; } - walls + walls { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - defaultFaces + defaultFaces { type empty; } diff --git a/tutorials/multiphase/bubbleFoam/bubbleColumn/0/p b/tutorials/multiphase/bubbleFoam/bubbleColumn/0/p index 339131c6458..e247f867f53 100644 --- a/tutorials/multiphase/bubbleFoam/bubbleColumn/0/p +++ b/tutorials/multiphase/bubbleFoam/bubbleColumn/0/p @@ -16,7 +16,7 @@ FoamFile dimensions [1 -1 -2 0 0 0 0]; -internalField nonuniform List<scalar> +internalField nonuniform List<scalar> 1875 ( 6296.13 @@ -1899,23 +1899,24 @@ internalField nonuniform List<scalar> boundaryField { - inlet + inlet { type zeroGradient; } - outlet + outlet { type fixedValue; value uniform 0; } - walls + walls { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - defaultFaces + defaultFaces { type empty; } diff --git a/tutorials/multiphase/interFoam/MRFInterFoam/mixerVessel2D/Allrun b/tutorials/multiphase/interFoam/MRFInterFoam/mixerVessel2D/Allrun index 836276fe9ce..99a20900eb9 100755 --- a/tutorials/multiphase/interFoam/MRFInterFoam/mixerVessel2D/Allrun +++ b/tutorials/multiphase/interFoam/MRFInterFoam/mixerVessel2D/Allrun @@ -5,5 +5,5 @@ application=`getApplication` -./makeMesh +runApplication ./makeMesh runApplication $application diff --git a/tutorials/multiphase/interFoam/laminar/damBreak/0/p b/tutorials/multiphase/interFoam/laminar/damBreak/0/p index 15ab9897a89..f8cc9e9f254 100644 --- a/tutorials/multiphase/interFoam/laminar/damBreak/0/p +++ b/tutorials/multiphase/interFoam/laminar/damBreak/0/p @@ -22,17 +22,20 @@ boundaryField { leftWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } rightWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } lowerWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } atmosphere diff --git a/tutorials/multiphase/interFoam/ras/damBreak/0/p b/tutorials/multiphase/interFoam/ras/damBreak/0/p index 15ab9897a89..f8cc9e9f254 100644 --- a/tutorials/multiphase/interFoam/ras/damBreak/0/p +++ b/tutorials/multiphase/interFoam/ras/damBreak/0/p @@ -22,17 +22,20 @@ boundaryField { leftWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } rightWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } lowerWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } atmosphere diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/0/p b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/0/p index 15ab9897a89..f8cc9e9f254 100644 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/0/p +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/0/p @@ -22,17 +22,20 @@ boundaryField { leftWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } rightWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } lowerWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } atmosphere diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/0/p b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/0/p index 15ab9897a89..f8cc9e9f254 100644 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/0/p +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/0/p @@ -22,17 +22,20 @@ boundaryField { leftWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } rightWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } lowerWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } atmosphere diff --git a/tutorials/multiphase/settlingFoam/ras/dahl/0/p b/tutorials/multiphase/settlingFoam/ras/dahl/0/p index 2f9b3db7acc..a19f18a1fd2 100644 --- a/tutorials/multiphase/settlingFoam/ras/dahl/0/p +++ b/tutorials/multiphase/settlingFoam/ras/dahl/0/p @@ -20,33 +20,35 @@ internalField uniform 0; boundaryField { - inlet + inlet { type zeroGradient; } - outlet + outlet { type fixedValue; value uniform 0; } - bottomWall + bottomWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - endWall + endWall { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - top + top { type symmetryPlane; } - frontAndBack + frontAndBack { type empty; } diff --git a/tutorials/multiphase/settlingFoam/ras/tank3D/0/p b/tutorials/multiphase/settlingFoam/ras/tank3D/0/p index d12a7011722..02b3ad272c3 100644 --- a/tutorials/multiphase/settlingFoam/ras/tank3D/0/p +++ b/tutorials/multiphase/settlingFoam/ras/tank3D/0/p @@ -20,102 +20,115 @@ internalField uniform 0; boundaryField { - SYMP3 + SYMP3 { type symmetryPlane; } - INLE1 + INLE1 { type zeroGradient; } - OUTL9 + OUTL9 { type zeroGradient; } - OUTL10 + OUTL10 { type zeroGradient; } - OUTL11 + OUTL11 { type zeroGradient; } - OUTL12 + OUTL12 { type zeroGradient; } - WALL6 + WALL6 { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - WALL8 + WALL8 { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - WALL61 + WALL61 { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - WALL62 + WALL62 { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - WALL63 + WALL63 { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - WALL64 + WALL64 { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - WALL65 + WALL65 { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - WALL66 + WALL66 { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - WALL67 + WALL67 { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - WALL68 + WALL68 { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - WALL69 + WALL69 { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - WALL7 + WALL7 { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - WALL70 + WALL70 { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - OUTL15 + OUTL15 { type fixedValue; value uniform 0; diff --git a/tutorials/multiphase/twoPhaseEulerFoam/bed/0/p b/tutorials/multiphase/twoPhaseEulerFoam/bed/0/p index 6dc161ca6f1..9c8370323fe 100644 --- a/tutorials/multiphase/twoPhaseEulerFoam/bed/0/p +++ b/tutorials/multiphase/twoPhaseEulerFoam/bed/0/p @@ -22,7 +22,8 @@ boundaryField { bottom { - type zeroGradient; + type buoyantPressure; + value uniform 0; } top @@ -33,7 +34,8 @@ boundaryField walls { - type zeroGradient; + type buoyantPressure; + value uniform 0; } frontBack diff --git a/tutorials/multiphase/twoPhaseEulerFoam/bubbleColumn/0/p b/tutorials/multiphase/twoPhaseEulerFoam/bubbleColumn/0/p index 339131c6458..e247f867f53 100644 --- a/tutorials/multiphase/twoPhaseEulerFoam/bubbleColumn/0/p +++ b/tutorials/multiphase/twoPhaseEulerFoam/bubbleColumn/0/p @@ -16,7 +16,7 @@ FoamFile dimensions [1 -1 -2 0 0 0 0]; -internalField nonuniform List<scalar> +internalField nonuniform List<scalar> 1875 ( 6296.13 @@ -1899,23 +1899,24 @@ internalField nonuniform List<scalar> boundaryField { - inlet + inlet { type zeroGradient; } - outlet + outlet { type fixedValue; value uniform 0; } - walls + walls { - type zeroGradient; + type buoyantPressure; + value uniform 0; } - defaultFaces + defaultFaces { type empty; } -- GitLab