Corrected buoyancy BCs for p.

This commit is contained in:
henry 2009-07-10 12:59:51 +01:00
parent 66ed15f2c3
commit 90298600e0
18 changed files with 123 additions and 91 deletions

View File

@ -37,12 +37,13 @@ getApplication ()
runApplication () runApplication ()
{ {
APP_RUN=$1; shift APP_RUN=$1; shift
APP_NAME=${APP_RUN##*/}
if [ -f log.$APP_RUN ] ; then if [ -f log.$APP_NAME ] ; then
echo "$APP_RUN already run on $PWD: remove log file to run" echo "$APP_NAME already run on $PWD: remove log file to run"
else else
echo "Running $APP_RUN on $PWD" echo "Running $APP_RUN on $PWD"
$APP_RUN $* > log.$APP_RUN 2>&1 $APP_RUN $* > log.$APP_NAME 2>&1
fi fi
} }

View File

@ -16,7 +16,6 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -2 0 0 0 0]; dimensions [0 1 -2 0 0 0 0];
value ( 0 -9.81 0 ); value (0 0 0);
// ************************************************************************* // // ************************************************************************* //

View File

@ -16,7 +16,6 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -2 0 0 0 0]; dimensions [0 1 -2 0 0 0 0];
value ( 0 0 0 ); value (0 0 0);
// ************************************************************************* // // ************************************************************************* //

View File

@ -22,7 +22,8 @@ boundaryField
{ {
walls walls
{ {
type zeroGradient; type buoyantPressure;
value uniform 5e+06;
} }
front front
@ -34,7 +35,6 @@ boundaryField
{ {
type wedge; type wedge;
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -23,17 +23,17 @@ boundaryField
{ {
piston piston
{ {
type epsilonWallFunction; type compressible::epsilonWallFunction;
value uniform 450; value uniform 450;
} }
liner liner
{ {
type epsilonWallFunction; type compressible::epsilonWallFunction;
value uniform 450; value uniform 450;
} }
cylinderHead cylinderHead
{ {
type epsilonWallFunction; type compressible::epsilonWallFunction;
value uniform 450; value uniform 450;
} }
} }

View File

@ -23,17 +23,17 @@ boundaryField
{ {
piston piston
{ {
type kQRWallFunction; type compressible::kQRWallFunction;
value uniform 4; value uniform 4;
} }
liner liner
{ {
type kQRWallFunction; type compressible::kQRWallFunction;
value uniform 4; value uniform 4;
} }
cylinderHead cylinderHead
{ {
type kQRWallFunction; type compressible::kQRWallFunction;
value uniform 4; value uniform 4;
} }
} }

View File

@ -0,0 +1 @@
../bottomAir/g

View File

@ -33,7 +33,8 @@ boundaryField
walls walls
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
defaultFaces defaultFaces

View File

@ -1912,7 +1912,8 @@ boundaryField
walls walls
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
defaultFaces defaultFaces

View File

@ -5,5 +5,5 @@
application=`getApplication` application=`getApplication`
./makeMesh runApplication ./makeMesh
runApplication $application runApplication $application

View File

@ -22,17 +22,20 @@ boundaryField
{ {
leftWall leftWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
rightWall rightWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
lowerWall lowerWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
atmosphere atmosphere

View File

@ -22,17 +22,20 @@ boundaryField
{ {
leftWall leftWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
rightWall rightWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
lowerWall lowerWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
atmosphere atmosphere

View File

@ -22,17 +22,20 @@ boundaryField
{ {
leftWall leftWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
rightWall rightWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
lowerWall lowerWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
atmosphere atmosphere

View File

@ -22,17 +22,20 @@ boundaryField
{ {
leftWall leftWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
rightWall rightWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
lowerWall lowerWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
atmosphere atmosphere

View File

@ -33,12 +33,14 @@ boundaryField
bottomWall bottomWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
endWall endWall
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
top top

View File

@ -52,67 +52,80 @@ boundaryField
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

View File

@ -22,7 +22,8 @@ boundaryField
{ {
bottom bottom
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
top top
@ -33,7 +34,8 @@ boundaryField
walls walls
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
frontBack frontBack

View File

@ -1912,7 +1912,8 @@ boundaryField
walls walls
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
defaultFaces defaultFaces