Merged all multiphase developments in OpenFOAM-1.7.x

This commit is contained in:
Henry
2010-09-29 22:22:48 +01:00
parent fbf4d9ec10
commit 89ee9b3e0f
406 changed files with 32059 additions and 34733 deletions

View File

@ -10,22 +10,23 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object p;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
internalField uniform 1e5;
boundaryField
{
walls
{
type zeroGradient;
type buoyantPressure;
value uniform 1e5;
}
defaultFaces
defaultFaces
{
type empty;
}

View File

@ -0,0 +1,5 @@
#!/bin/sh
foamCleanTutorials cases
rm -rf processor*
rm -rf 0/p_rgh.gz 0/alpha1.gz

View File

@ -9,7 +9,7 @@ application=`getApplication`
runApplication blockMesh
cp 0/alpha1.org 0/alpha1
cp 0/p.org 0/p
cp 0/p_rgh.org 0/p_rgh
runApplication setFields
runApplication $application

View File

@ -37,13 +37,13 @@ writeFormat ascii;
writePrecision 8;
writeCompression off;
writeCompression compressed;
timeFormat general;
timePrecision 10;
runTimeModifiable true;
runTimeModifiable yes;
adjustTimeStep yes;

View File

@ -30,7 +30,7 @@ divSchemes
div(rho*phi,U) Gauss upwind;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression 1;
div(phi,p) Gauss upwind;
div(phi,p_rgh) Gauss upwind;
div(phi,k) Gauss vanLeer;
div((nuEff*dev(grad(U).T()))) Gauss linear;
}
@ -53,7 +53,7 @@ snGradSchemes
fluxRequired
{
default no;
p;
p_rgh;
pcorr;
gamma;
}

View File

@ -44,7 +44,7 @@ solvers
solver diagonal;
}
p
p_rgh
{
solver GAMG;
tolerance 1e-07;
@ -59,7 +59,7 @@ solvers
mergeLevels 1;
}
pFinal
p_rghFinal
{
solver PCG;
preconditioner

View File

@ -18,24 +18,24 @@ FoamFile
defaultFieldValues
(
volScalarFieldValue alpha1 1
volScalarFieldValue p 100000
volScalarFieldValue p_rgh 1e5
);
regions
(
sphereToCell
{
centre ( 0.5 0.5 0 );
centre (0.5 0.5 0);
radius 0.1;
fieldValues
(
volScalarFieldValue alpha1 0
volScalarFieldValue p 1000000
volScalarFieldValue p_rgh 1e6
);
}
boxToCell
{
box ( -10 1 -1 ) ( 10 10 1 );
box (-10 1 -1) (10 10 1);
fieldValues
(
volScalarFieldValue alpha1 0

View File

@ -10,19 +10,20 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object p.org;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
internalField uniform 1e5;
boundaryField
{
walls
{
type zeroGradient;
type buoyantPressure;
value uniform 1e5;
}
}

View File

@ -3,6 +3,6 @@ cd ${0%/*} || exit 1 # run from this directory
foamCleanTutorials cases
rm -rf processor*
rm -rf 0/p.gz 0/alpha1.gz
rm -rf 0/p_rgh.gz 0/alpha1.gz
# ----------------------------------------------------------------- end-of-file

View File

@ -9,7 +9,7 @@ application=`getApplication`
runApplication blockMesh
cp 0/alpha1.org 0/alpha1
cp 0/p.org 0/p
cp 0/p_rgh.org 0/p_rgh
runApplication setFields
runApplication decomposePar
runParallel $application 4

View File

@ -37,13 +37,13 @@ writeFormat ascii;
writePrecision 8;
writeCompression off;
writeCompression compressed;
timeFormat general;
timePrecision 10;
runTimeModifiable true;
runTimeModifiable yes;
adjustTimeStep yes;

View File

@ -30,7 +30,7 @@ divSchemes
div(rho*phi,U) Gauss upwind;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss interfaceCompression 1;
div(phi,p) Gauss upwind;
div(phi,p_rgh) Gauss upwind;
div(phi,k) Gauss vanLeer;
div((nuEff*dev(grad(U).T()))) Gauss linear;
}
@ -53,7 +53,7 @@ snGradSchemes
fluxRequired
{
default no;
p;
p_rgh;
pcorr;
gamma;
}

View File

@ -44,7 +44,7 @@ solvers
solver diagonal;
}
p
p_rgh
{
solver GAMG;
tolerance 1e-07;
@ -59,7 +59,7 @@ solvers
mergeLevels 1;
}
pFinal
p_rghFinal
{
solver PCG;
preconditioner

View File

@ -18,24 +18,24 @@ FoamFile
defaultFieldValues
(
volScalarFieldValue alpha1 1
volScalarFieldValue p 100000
volScalarFieldValue p_rgh 1e5
);
regions
(
sphereToCell
{
centre ( 0.5 0.5 0.5 );
centre (0.5 0.5 0.5);
radius 0.1;
fieldValues
(
volScalarFieldValue alpha1 0
volScalarFieldValue p 1000000
volScalarFieldValue p_rgh 1e6
);
}
boxToCell
{
box ( -10 1 -1 ) ( 10 10 1 );
box (-10 1 -1) (10 10 1);
fieldValues
(
volScalarFieldValue alpha1 0