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 ()
{
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
}

View File

@ -16,7 +16,6 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
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];
value ( 0 0 0 );
value (0 0 0);
// ************************************************************************* //

View File

@ -22,19 +22,19 @@ boundaryField
{
walls
{
type zeroGradient;
type buoyantPressure;
value uniform 5e+06;
}
front
{
type wedge;
type wedge;
}
back
{
type wedge;
type wedge;
}
}
// ************************************************************************* //

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

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

View File

@ -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;
}

View File

@ -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;
}

View File

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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;
}

View File

@ -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;

View File

@ -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

View File

@ -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;
}