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;
}
// Note: patch merged with lowerWallInterface - zero size
interface
{
type zeroGradient;

View file

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

View file

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

View file

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

View file

@ -51,6 +51,7 @@ boundaryField
type zeroGradient;
}
// Note: patch merged with lowerWallInterface - zero size
interface
{
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;
}
// Note: patch merged with lowerWallInterface - zero size
interface
{
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
{
solver PCG;
preconditioner DIC;
solver CG;
preconditioner Cholesky;
minIter 0;
maxIter 2000;
tolerance 1e-06;
relTol 0.01;
};
}
U
{
solver BiCGStab;
preconditioner DILU;
preconditioner ILU0;
minIter 0;
maxIter 500;
tolerance 1e-05;
relTol 0.1;
};
}
k
{
solver BiCGStab;
preconditioner DILU;
preconditioner ILU0;
minIter 0;
maxIter 500;
tolerance 1e-05;
relTol 0.1;
};
epsilon BiCGStab
}
epsilon
{
solver BiCGStab;
preconditioner DILU;
preconditioner ILU0;
minIter 0;
maxIter 500;
tolerance 1e-05;
relTol 0.1;
};
R BiCGStab
}
R
{
solver BiCGStab;
preconditioner DILU;
preconditioner ILU0;
minIter 0;
maxIter 500;
tolerance 1e-05;
relTol 0.1;
};
nuTilda BiCGStab
}
nuTilda
{
solver BiCGStab;
preconditioner DILU;
preconditioner ILU0;
minIter 0;
maxIter 500;
tolerance 1e-05;
relTol 0.1;
};
}
}
SIMPLE