Update tutorials

This commit is contained in:
Henry 2013-01-25 12:43:07 +00:00
parent 2eb05ebb87
commit 8bcb8132bf
18 changed files with 151 additions and 2379 deletions

View File

@ -107,55 +107,79 @@ edges
(
);
patches
boundary
(
// is there no way of defining all my 'defaultFaces' to be 'wall'?
wall front
(
// inlet block
frontQuad(in1, join1, join2, in2)
// outlet block
frontQuad(poro1, out1, out2, poro2)
)
front
{
type wall;
faces
(
// inlet block
frontQuad(in1, join1, join2, in2)
// outlet block
frontQuad(poro1, out1, out2, poro2)
);
}
wall back
(
// inlet block
backQuad(in1, join1, join2, in2)
// outlet block
backQuad(poro1, out1, out2, poro2)
)
back
{
type wall;
faces
(
// inlet block
backQuad(in1, join1, join2, in2)
// outlet block
backQuad(poro1, out1, out2, poro2)
);
}
wall wall
(
// inlet block
quad2D(in1, join1)
quad2D(join2, in2)
// outlet block
quad2D(poro1, out1)
quad2D(out2, poro2)
)
wall
{
type wall;
faces
(
// inlet block
quad2D(in1, join1)
quad2D(join2, in2)
// outlet block
quad2D(poro1, out1)
quad2D(out2, poro2)
);
}
wall porosityWall
(
// porosity block
frontQuad(join1, poro1, poro2, join2)
// porosity block
backQuad(join1, poro1, poro2, join2)
// porosity block
quad2D(join1, poro1)
quad2D(poro2, join2)
)
porosityWall
{
type wall;
faces
(
// porosity block
frontQuad(join1, poro1, poro2, join2)
// porosity block
backQuad(join1, poro1, poro2, join2)
// porosity block
quad2D(join1, poro1)
quad2D(poro2, join2)
);
}
patch inlet
(
quad2D(in2, in1)
)
inlet
{
type patch;
faces
(
quad2D(in2, in1)
);
}
patch outlet
(
quad2D(out2, out1)
)
outlet
{
type patch;
faces
(
quad2D(out2, out1)
);
}
);
mergePatchPairs

View File

@ -28,23 +28,17 @@ porosity1
DarcyForchheimerCoeffs
{
d d [0 -2 0 0 0 0 0] (5e7 -1000 -1000);
d d [0 -2 0 0 0 0 0] (7e5 -1000 -1000);
f f [0 -1 0 0 0 0 0] (0 0 0);
coordinateSystem
{
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0);
e2 (0 0 1);
}
e1 (0.70710678 0.70710678 0);
e3 (0 0 1);
}
}
}
}
// ************************************************************************* //
//************************************************************************ //

View File

@ -21,14 +21,14 @@ solvers
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
tolerance 1e-07;
relTol 0.01;
}
pFinal
{
$p;
tolerance 1e-06;
tolerance 1e-07;
relTol 0;
}
@ -36,14 +36,14 @@ solvers
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
tolerance 1e-06;
relTol 0.1;
}
"(rho|U|h|k|epsilon|omega)Final"
{
$U;
tolerance 1e-05;
tolerance 1e-06;
relTol 0;
}
@ -56,8 +56,8 @@ PIMPLE
nOuterCorrectors 50;
nCorrectors 1;
nNonOrthogonalCorrectors 0;
rhoMin rhoMin [ 1 -3 0 0 0 ] 0.1;
rhoMax rhoMax [ 1 -3 0 0 0 ] 3.0;
rhoMin rhoMin [ 1 -3 0 0 0 ] 0.5;
rhoMax rhoMax [ 1 -3 0 0 0 ] 2.0;
residualControl
{
@ -75,13 +75,12 @@ relaxationFactors
{
fields
{
"p.*" 1;
"p.*" 0.3;
"rho.*" 1;
}
equations
{
"(U|h|k|epsilon|omega).*" 0.85;
"p.*" 1;
"(U|h|k|epsilon|omega).*" 0.7;
}
}

View File

@ -64,7 +64,7 @@ SIMPLE
{
p 1e-2;
U 1e-4;
T 1e-3;
e 1e-3;
// possibly check turbulence fields
"(k|epsilon|omega)" 1e-3;
@ -76,7 +76,7 @@ relaxationFactors
fields
{
p 0.3;
rho 0.05;
rho 0.03;
}
equations
{

View File

@ -58,7 +58,7 @@ SIMPLE
{
p 1e-3;
U 1e-4;
T 1e-3;
e 1e-3;
// possibly check turbulence fields
"(k|epsilon|omega)" 1e-3;

View File

@ -64,7 +64,7 @@ SIMPLE
{
p 1e-2;
U 1e-4;
T 1e-3;
e 1e-3;
// possibly check turbulence fields
"(k|epsilon|omega)" 1e-3;
@ -76,7 +76,7 @@ relaxationFactors
fields
{
p 0.3;
rho 0.02;
rho 0.05;
}
equations
{

View File

@ -54,6 +54,16 @@ SIMPLE
rhoMin rhoMin [1 -3 0 0 0] 0.1;
rhoMax rhoMax [1 -3 0 0 0] 1.0;
transonic yes;
residualControl
{
p 1e-3;
U 1e-4;
e 1e-3;
// possibly check turbulence fields
"(k|epsilon|omega)" 1e-3;
}
}
relaxationFactors

View File

@ -28,7 +28,7 @@ gradSchemes
divSchemes
{
default none;
div(rhoFlux,rho) Gauss limitedLinear 1;
div(rhoFlux,rho) Gauss upwind;
}
laplacianSchemes

View File

@ -10,36 +10,37 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0];
dimensions [0 2 -2 0 0 0 0];
internalField uniform 10.0;
internalField uniform 10;
boundaryField
{
inlet
{
type fixedValue;
value uniform 0.5;
type turbulentIntensityKineticEnergyInlet;
intensity 0.05;
value uniform 0.05;
}
outlet
{
type zeroGradient;
}
walls
{
type zeroGradient;
type kqRWallFunction;
value uniform 10;
}
frontBack
{
type empty;
}
}
// ************************************************************************* //

View File

@ -10,27 +10,30 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuSgs;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 1e-11;
internalField uniform 0;
boundaryField
{
inlet
{
type zeroGradient;
type calculated;
value uniform 0;
}
outlet
{
type zeroGradient;
type calculated;
value uniform 0;
}
walls
{
type fixedValue;
type nutUSpaldingWallFunction;
value uniform 0;
}
frontBack
@ -39,4 +42,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -28,9 +28,9 @@ interpolationSchemes
divSchemes
{
default none;
div(phiv,rho) Gauss limitedLinear 0.2;
div(phi,U) Gauss filteredLinear2V 0.2 0;
div(phiv,k) Gauss filteredLinear2 0.2 0;
div(phiv,rho) Gauss vanLeer;
div(phi,U) Gauss LUST grad(U);
div(phiv,k) Gauss LUST grad(k);
div((muEff*dev(T(grad(U))))) Gauss linear;
}

View File

@ -16,14 +16,15 @@ FoamFile
dimensions [0 2 -2 0 0];
internalField uniform 10.0;
internalField uniform 10;
boundaryField
{
inlet
{
type fixedValue;
value uniform 0.5;
type turbulentIntensityKineticEnergyInlet;
intensity 0.05;
value uniform 0.05;
}
outlet
@ -33,7 +34,8 @@ boundaryField
walls
{
type zeroGradient;
type kqRWallFunction;
value uniform 10;
}
frontBack

View File

@ -10,34 +10,38 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuSgs;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 1e-11;
internalField uniform 0;
boundaryField
{
inlet
{
type zeroGradient;
type calculated;
value uniform 0;
}
outlet
{
type zeroGradient;
type calculated;
value uniform 0;
}
walls
{
type fixedValue;
type nutUSpaldingWallFunction;
value uniform 0;
}
frontBack
{
type fixedValue;
type nutUSpaldingWallFunction;
value uniform 0;
}
}
// ************************************************************************* //

View File

@ -16,14 +16,15 @@ FoamFile
dimensions [0 2 -2 0 0];
internalField uniform 10.0;
internalField uniform 10;
boundaryField
{
inlet
{
type fixedValue;
value uniform 0.5;
type turbulentIntensityKineticEnergyInlet;
intensity 0.05;
value uniform 0.05;
}
outlet
@ -33,7 +34,8 @@ boundaryField
walls
{
type zeroGradient;
type kqRWallFunction;
value uniform 10;
}
frontBack

View File

@ -10,34 +10,38 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuSgs;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 1e-11;
internalField uniform 0;
boundaryField
{
inlet
{
type zeroGradient;
type calculated;
value uniform 0;
}
outlet
{
type zeroGradient;
type calculated;
value uniform 0;
}
walls
{
type fixedValue;
type nutUSpaldingWallFunction;
value uniform 0;
}
frontBack
{
type fixedValue;
type nutUSpaldingWallFunction;
value uniform 0;
}
}
// ************************************************************************* //

View File

@ -29,8 +29,8 @@ cp -r 0.org 0
runApplication blockMesh
refineMeshByCellSet 1 2 3
echo "mapping fields from 2D throttle case"
runApplication mapFields ../throttle -sourceTime latestTime
#echo "mapping fields from 2D throttle case"
#runApplication mapFields ../throttle -sourceTime latestTime
runApplication decomposePar
runParallel $application 4

View File

@ -28,9 +28,9 @@ interpolationSchemes
divSchemes
{
default none;
div(phiv,rho) Gauss limitedLinear 0.2;
div(phi,U) Gauss filteredLinear2V 0.2 0;
div(phiv,k) Gauss filteredLinear2 0.2 0;
div(phiv,rho) Gauss vanLeer;
div(phi,U) Gauss LUST grad(U);
div(phiv,k) Gauss LUST grad(k);
div((muEff*dev(T(grad(U))))) Gauss linear;
}