Bugfix: Tutorial clean-up. Vuko Vukcevic

This commit is contained in:
Hrvoje Jasak 2017-08-10 16:31:15 +01:00
parent 6941477843
commit 6fb1d8a25b
9 changed files with 141 additions and 160 deletions

View file

@ -51,6 +51,7 @@ boundaryField
type zeroGradient; type zeroGradient;
} }
// Note: patch merged with lowerWallInterface - zero size
interface interface
{ {
type zeroGradient; type zeroGradient;

View file

@ -16,7 +16,7 @@ FoamFile
dimensions [0 1 -1 0 0 0 0]; dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0); internalField uniform (10 0 0);
boundaryField boundaryField
{ {
@ -55,9 +55,11 @@ boundaryField
value uniform (0 0 0); value uniform (0 0 0);
} }
// Note: patch merged with lowerWallInterface - zero size
interface interface
{ {
type zeroGradient; type fixedValue;
value uniform (0 0 0);
} }
defaultFaces defaultFaces

View file

@ -10,6 +10,7 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object epsilon; object epsilon;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,37 +26,50 @@ boundaryField
type fixedValue; type fixedValue;
value uniform 14.855; value uniform 14.855;
} }
outlet outlet
{ {
type zeroGradient; type zeroGradient;
} }
upperWall upperWall
{ {
type zeroGradient; type epsilonWallFunction;
refValue uniform 0;
value uniform 14.855;
Cmu 0.09;
kappa 0.41;
E 9.8;
} }
lowerWall lowerWall
{ {
type zeroGradient; type epsilonWallFunction;
refValue uniform 0;
value uniform 14.855;
Cmu 0.09;
kappa 0.41;
E 9.8;
} }
lowerWallInlet
{
type zeroGradient;
}
lowerWallInterface lowerWallInterface
{ {
type zeroGradient; type epsilonWallFunction;
refValue uniform 0;
value uniform 14.855;
Cmu 0.09;
kappa 0.41;
E 9.8;
}
lowerWallInlet
{
type epsilonWallFunction;
refValue uniform 0;
value uniform 14.855;
Cmu 0.09;
kappa 0.41;
E 9.8;
} }
interface interface
{ {
type zeroGradient; type zeroGradient;
} }
defaultFaces defaultFaces
{ {
type empty; type empty;

View file

@ -10,6 +10,7 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object k; object k;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,37 +26,34 @@ boundaryField
type fixedValue; type fixedValue;
value uniform 0.375; value uniform 0.375;
} }
outlet outlet
{ {
type zeroGradient; type zeroGradient;
} }
upperWall upperWall
{ {
type zeroGradient; type kqRWallFunction;
value uniform 0.375;
} }
lowerWall lowerWall
{ {
type zeroGradient; type kqRWallFunction;
value uniform 0.375;
} }
lowerWallInlet
{
type zeroGradient;
}
lowerWallInterface lowerWallInterface
{ {
type zeroGradient; type kqRWallFunction;
value uniform 0.375;
}
lowerWallInlet
{
type kqRWallFunction;
value uniform 0.375;
} }
interface interface
{ {
type zeroGradient; type zeroGradient;
} }
defaultFaces defaultFaces
{ {
type empty; type empty;

View file

@ -51,6 +51,7 @@ boundaryField
type zeroGradient; type zeroGradient;
} }
// Note: patch merged with lowerWallInterface - zero size
interface interface
{ {
type zeroGradient; type zeroGradient;

View file

@ -0,0 +1,78 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
upperWall
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
lowerWall
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
lowerWallInterface
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
lowerWallInlet
{
type nutWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
interface
{
type calculated;
value nonuniform 0();
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View file

@ -51,6 +51,7 @@ boundaryField
type zeroGradient; type zeroGradient;
} }
// Note: patch merged with lowerWallInterface - zero size
interface interface
{ {
type zeroGradient; type zeroGradient;

View file

@ -1,114 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
p PCG
{
preconditioner
{
type DIC;
}
tolerance 1e-06;
relTol 0.01;
minIter 0;
maxIter 200;
};
U BiCGStab
{
preconditioner
{
type DILU;
}
tolerance 1e-05;
relTol 0.1;
minIter 0;
maxIter 200;
};
k BiCGStab
{
preconditioner
{
type DILU;
}
tolerance 1e-05;
relTol 0.1;
minIter 0;
maxIter 200;
};
epsilon BiCGStab
{
preconditioner
{
type DILU;
}
tolerance 1e-05;
relTol 0.1;
minIter 0;
maxIter 200;
};
R BiCGStab
{
preconditioner
{
type DILU;
}
tolerance 1e-05;
relTol 0.1;
minIter 0;
maxIter 200;
};
nuTilda BiCGStab
{
preconditioner
{
type DILU;
}
tolerance 1e-05;
relTol 0.1;
minIter 0;
maxIter 200;
};
}
SIMPLE
{
nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
p 0.3;
U 0.7;
k 0.7;
epsilon 0.7;
R 0.7;
nuTilda 0.7;
}
// ************************************************************************* //

View file

@ -18,64 +18,64 @@ solvers
{ {
p p
{ {
solver PCG; solver CG;
preconditioner DIC; preconditioner Cholesky;
minIter 0; minIter 0;
maxIter 2000; maxIter 2000;
tolerance 1e-06; tolerance 1e-06;
relTol 0.01; relTol 0.01;
}; }
U U
{ {
solver BiCGStab; solver BiCGStab;
preconditioner DILU; preconditioner ILU0;
minIter 0; minIter 0;
maxIter 500; maxIter 500;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1; relTol 0.1;
}; }
k k
{ {
solver BiCGStab; solver BiCGStab;
preconditioner DILU; preconditioner ILU0;
minIter 0; minIter 0;
maxIter 500; maxIter 500;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1; relTol 0.1;
}; }
epsilon BiCGStab epsilon
{ {
solver BiCGStab; solver BiCGStab;
preconditioner DILU; preconditioner ILU0;
minIter 0; minIter 0;
maxIter 500; maxIter 500;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1; relTol 0.1;
}; }
R BiCGStab R
{ {
solver BiCGStab; solver BiCGStab;
preconditioner DILU; preconditioner ILU0;
minIter 0; minIter 0;
maxIter 500; maxIter 500;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1; relTol 0.1;
}; }
nuTilda BiCGStab nuTilda
{ {
solver BiCGStab; solver BiCGStab;
preconditioner DILU; preconditioner ILU0;
minIter 0; minIter 0;
maxIter 500; maxIter 500;
tolerance 1e-05; tolerance 1e-05;
relTol 0.1; relTol 0.1;
}; }
} }
SIMPLE SIMPLE