driftFluxFoam/ras/tank3D: reinstated settlingFoam tutorial

This commit is contained in:
Henry
2014-02-12 11:07:51 +00:00
parent c0c1dff8cb
commit d623cae45f
19 changed files with 1147 additions and 0 deletions

View File

@ -0,0 +1,144 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ 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
{
SYMP3
{
type slip;
}
INLE1
{
type fixedValue;
value uniform (0.1315 0 0);
}
OUTL9
{
type fixedValue;
value uniform (0 0.0177 0);
}
OUTL10
{
type fixedValue;
value uniform (0 0.0177 0);
}
OUTL11
{
type fixedValue;
value uniform (0 0.0177 0);
}
OUTL12
{
type fixedValue;
value uniform (0 0.0177 0);
}
WALL6
{
type translatingWallVelocity;
U (-0.003 0 0);
value uniform (-0.003 0 0);
}
WALL8
{
type fixedValue;
value uniform (0 0 0);
}
WALL61
{
type fixedValue;
value uniform (0 0 0);
}
WALL62
{
type fixedValue;
value uniform (0 0 0);
}
WALL63
{
type fixedValue;
value uniform (0 0 0);
}
WALL64
{
type fixedValue;
value uniform (0 0 0);
}
WALL65
{
type fixedValue;
value uniform (0 0 0);
}
WALL66
{
type fixedValue;
value uniform (0 0 0);
}
WALL67
{
type fixedValue;
value uniform (0 0 0);
}
WALL68
{
type fixedValue;
value uniform (0 0 0);
}
WALL69
{
type fixedValue;
value uniform (0 0 0);
}
WALL7
{
type fixedValue;
value uniform (0 0 0);
}
WALL70
{
type fixedValue;
value uniform (0 0 0);
}
OUTL15
{
type inletOutlet;
inletValue uniform (0 0 0);
}
}
// ************************************************************************* //

View File

@ -0,0 +1,126 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object alpha;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0];
internalField uniform 0;
boundaryField
{
SYMP3
{
type zeroGradient;
}
INLE1
{
type fixedValue;
value uniform 0.002;
}
OUTL9
{
type zeroGradient;
}
OUTL10
{
type zeroGradient;
}
OUTL11
{
type zeroGradient;
}
OUTL12
{
type zeroGradient;
}
WALL6
{
type zeroGradient;
}
WALL8
{
type zeroGradient;
}
WALL61
{
type zeroGradient;
}
WALL62
{
type zeroGradient;
}
WALL63
{
type zeroGradient;
}
WALL64
{
type zeroGradient;
}
WALL65
{
type zeroGradient;
}
WALL66
{
type zeroGradient;
}
WALL67
{
type zeroGradient;
}
WALL68
{
type zeroGradient;
}
WALL69
{
type zeroGradient;
}
WALL7
{
type zeroGradient;
}
WALL70
{
type zeroGradient;
}
OUTL15
{
type inletOutlet;
inletValue uniform 0;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,126 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -3 0 0 0 0];
internalField uniform 1.973e-07;
boundaryField
{
SYMP3
{
type zeroGradient;
}
INLE1
{
type fixedValue;
value uniform 1.973e-07;
}
OUTL9
{
type zeroGradient;
}
OUTL10
{
type zeroGradient;
}
OUTL11
{
type zeroGradient;
}
OUTL12
{
type zeroGradient;
}
WALL6
{
type zeroGradient;
}
WALL8
{
type zeroGradient;
}
WALL61
{
type zeroGradient;
}
WALL62
{
type zeroGradient;
}
WALL63
{
type zeroGradient;
}
WALL64
{
type zeroGradient;
}
WALL65
{
type zeroGradient;
}
WALL66
{
type zeroGradient;
}
WALL67
{
type zeroGradient;
}
WALL68
{
type zeroGradient;
}
WALL69
{
type zeroGradient;
}
WALL7
{
type zeroGradient;
}
WALL70
{
type zeroGradient;
}
OUTL15
{
type inletOutlet;
inletValue uniform 1.973e-07;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,126 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.000259;
boundaryField
{
SYMP3
{
type zeroGradient;
}
INLE1
{
type fixedValue;
value uniform 0.000259;
}
OUTL9
{
type zeroGradient;
}
OUTL10
{
type zeroGradient;
}
OUTL11
{
type zeroGradient;
}
OUTL12
{
type zeroGradient;
}
WALL6
{
type zeroGradient;
}
WALL8
{
type zeroGradient;
}
WALL61
{
type zeroGradient;
}
WALL62
{
type zeroGradient;
}
WALL63
{
type zeroGradient;
}
WALL64
{
type zeroGradient;
}
WALL65
{
type zeroGradient;
}
WALL66
{
type zeroGradient;
}
WALL67
{
type zeroGradient;
}
WALL68
{
type zeroGradient;
}
WALL69
{
type zeroGradient;
}
WALL7
{
type zeroGradient;
}
WALL70
{
type zeroGradient;
}
OUTL15
{
type inletOutlet;
inletValue uniform 0.000259;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,144 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
SYMP3
{
type fixedFluxPressure;
value uniform 0;
}
INLE1
{
type fixedFluxPressure;
value uniform 0;
}
OUTL9
{
type fixedFluxPressure;
value uniform 0;
}
OUTL10
{
type fixedFluxPressure;
value uniform 0;
}
OUTL11
{
type fixedFluxPressure;
value uniform 0;
}
OUTL12
{
type fixedFluxPressure;
value uniform 0;
}
WALL6
{
type fixedFluxPressure;
value uniform 0;
}
WALL8
{
type fixedFluxPressure;
value uniform 0;
}
WALL61
{
type fixedFluxPressure;
value uniform 0;
}
WALL62
{
type fixedFluxPressure;
value uniform 0;
}
WALL63
{
type fixedFluxPressure;
value uniform 0;
}
WALL64
{
type fixedFluxPressure;
value uniform 0;
}
WALL65
{
type fixedFluxPressure;
value uniform 0;
}
WALL66
{
type fixedFluxPressure;
value uniform 0;
}
WALL67
{
type fixedFluxPressure;
value uniform 0;
}
WALL68
{
type fixedFluxPressure;
value uniform 0;
}
WALL69
{
type fixedFluxPressure;
value uniform 0;
}
WALL7
{
type fixedFluxPressure;
value uniform 0;
}
WALL70
{
type fixedFluxPressure;
value uniform 0;
}
OUTL15
{
type fixedValue;
value uniform 0;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Clean time directories only
rm -rf *[1-9]*
rm -f log.* 2>/dev/null
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,11 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application=`getApplication`
runApplication $application
# ----------------------------------------------------------------- end-of-file

View File

@ -0,0 +1,25 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
// ************************************************************************* //

View File

@ -0,0 +1,22 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class uniformDimensionedVectorField;
location "constant";
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -2 0 0 0 0];
value ( 0 -9.81 0 );
// ************************************************************************* //

View File

@ -0,0 +1,160 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
(
SYMP3
{
type patch;
startFace 53708;
nFaces 3191;
}
INLE1
{
type patch;
startFace 56899;
nFaces 45;
}
OUTL9
{
type patch;
startFace 56944;
nFaces 11;
}
OUTL10
{
type patch;
startFace 56955;
nFaces 11;
}
OUTL11
{
type patch;
startFace 56966;
nFaces 11;
}
OUTL12
{
type patch;
startFace 56977;
nFaces 11;
}
WALL6
{
type wall;
startFace 56988;
nFaces 1474;
}
WALL8
{
type wall;
startFace 58462;
nFaces 1640;
}
WALL61
{
type wall;
startFace 60102;
nFaces 44;
}
WALL62
{
type wall;
startFace 60146;
nFaces 78;
}
WALL63
{
type wall;
startFace 60224;
nFaces 255;
}
WALL64
{
type wall;
startFace 60479;
nFaces 157;
}
WALL65
{
type wall;
startFace 60636;
nFaces 35;
}
WALL66
{
type wall;
startFace 60671;
nFaces 60;
}
WALL67
{
type wall;
startFace 60731;
nFaces 55;
}
WALL68
{
type wall;
startFace 60786;
nFaces 116;
}
WALL69
{
type wall;
startFace 60902;
nFaces 24;
}
WALL7
{
type wall;
startFace 60926;
nFaces 121;
}
WALL70
{
type wall;
startFace 61047;
nFaces 182;
}
OUTL15
{
type patch;
startFace 61229;
nFaces 14;
}
)
// ************************************************************************* //

View File

@ -0,0 +1,57 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
muc muc [ 1 -1 -1 0 0 0 0 ] 0.00178;
plasticViscosityCoeff plasticViscosityCoeff [ 1 -1 -1 0 0 0 0 ] 0.00023143;
plasticViscosityExponent plasticViscosityExponent [ 0 0 0 0 0 0 0 ] 0.17926;
BinghamPlastic on;
yieldStressCoeff yieldStressCoeff [ 1 -1 -2 0 0 0 0 ] 5.5469e-07;
yieldStressExponent yieldStressExponent [ 0 0 0 0 0 0 0 ] 95.25;
yieldStressOffset yieldStressOffset [ 0 0 0 0 0 0 0 ] 0;
muMax muMax [ 1 -1 -1 0 0 0 0 ] 10.0;
rhoc rhoc [ 1 -3 0 0 0 0 0 ] 1000;
rhod rhod [ 1 -3 0 0 0 0 0 ] 1042;
VdjModel simple;
simpleCoeffs
{
V0 V0 [ 0 1 -1 0 0 0 0 ] ( 0 -0.002198 0 );
a a [ 0 0 0 0 0 0 0 ] 8.84;
a1 a1 [ 0 0 0 0 0 0 0 ] 0;
alphaMin alphaMin [ 0 0 0 0 0 0 0 ] 0;
}
generalCoeffs
{
V0 V0 [ 0 1 -1 0 0 0 0 ] ( 0 -0.0018 0 );
a a [ 0 0 0 0 0 0 0 ] 1e-05;
a1 a1 [ 0 0 0 0 0 0 0 ] 0.1;
alphaMin alphaMin [ 0 0 0 0 0 0 0 ] 2e-05;
}
// ************************************************************************* //

View File

@ -0,0 +1,48 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application driftFluxFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 8000;
deltaT 0.1;
writeControl runTime;
writeInterval 50;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression compressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View File

@ -0,0 +1,65 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
default none;
div(rhoPhi,U) Gauss linearUpwind grad(U);
div(phiVdj,Vdj) Gauss linear;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss vanLeer;
div(rhoPhi,k) Gauss limitedLinear 1;
div(rhoPhi,epsilon) Gauss limitedLinear 1;
div((muEff*dev2(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
p_rgh;
alpha;
}
// ************************************************************************* //

View File

@ -0,0 +1,84 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
"alpha.*"
{
nAlphaCorr 1;
nAlphaSubCycles 4;
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-6;
relTol 0;
minIter 1;
}
p_rgh
{
solver GAMG;
tolerance 1e-7;
relTol 0.01;
smoother GaussSeidel;
cacheAgglomeration true;
nCellsInCoarsestLevel 20;
agglomerator faceAreaPair;
mergeLevels 1;
}
p_rghFinal
{
$p_rgh;
relTol 0;
}
"(U|k|epsilon)"
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-7;
relTol 0.1;
minIter 1;
}
"(U|k|epsilon)Final"
{
$k;
relTol 0;
}
}
PIMPLE
{
nCorrectors 2;
nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
fields
{
}
equations
{
".*" 1;
}
}
// ************************************************************************* //