Tutorial update: block solver

This commit is contained in:
Hrvoje Jasak 2017-04-26 18:36:31 +01:00
parent 2344656c85
commit 193c90c29d
5 changed files with 26 additions and 22 deletions

View file

@ -17,14 +17,14 @@ FoamFile
dimensions [0 2 -3 0 0 0 0]; dimensions [0 2 -3 0 0 0 0];
internalField uniform 0.0001; internalField uniform 0.003;
boundaryField boundaryField
{ {
inlet inlet
{ {
type fixedValue; type fixedValue;
value uniform 0.0001; value uniform 0.003;
} }
outlet outlet
{ {
@ -34,7 +34,7 @@ boundaryField
{ {
type epsilonWallFunction; type epsilonWallFunction;
refValue uniform 0; refValue uniform 0;
value uniform 0.0001; value uniform 0.003;
Cmu 0.09; Cmu 0.09;
kappa 0.41; kappa 0.41;
E 9.8; E 9.8;
@ -43,7 +43,7 @@ boundaryField
{ {
type epsilonWallFunction; type epsilonWallFunction;
refValue uniform 0; refValue uniform 0;
value uniform 0.0001; value uniform 0.003;
Cmu 0.09; Cmu 0.09;
kappa 0.41; kappa 0.41;
E 9.8; E 9.8;

View file

@ -14,7 +14,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon; RASModel coupledKEpsilon;
turbulence on; turbulence on;

View file

@ -17,14 +17,14 @@ FoamFile
dimensions [0 2 -3 0 0 0 0]; dimensions [0 2 -3 0 0 0 0];
internalField uniform 0.0001; internalField uniform 0.003;
boundaryField boundaryField
{ {
inlet inlet
{ {
type fixedValue; type fixedValue;
value uniform 0.0001; value uniform 0.003;
} }
outlet outlet
{ {
@ -34,7 +34,7 @@ boundaryField
{ {
type epsilonWallFunction; type epsilonWallFunction;
refValue uniform 0; refValue uniform 0;
value uniform 0.0001; value uniform 0.003;
Cmu 0.09; Cmu 0.09;
kappa 0.41; kappa 0.41;
E 9.8; E 9.8;
@ -43,7 +43,7 @@ boundaryField
{ {
type epsilonWallFunction; type epsilonWallFunction;
refValue uniform 0; refValue uniform 0;
value uniform 0.0001; value uniform 0.003;
Cmu 0.09; Cmu 0.09;
kappa 0.41; kappa 0.41;
E 9.8; E 9.8;

View file

@ -82,15 +82,6 @@ functions
name epsilon; name epsilon;
} }
minMaxOmega
{
type minMaxField;
// Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so");
name omega;
}
); );

View file

@ -19,11 +19,14 @@ solvers
Up Up
{ {
solver AMG; solver AMG;
cycle V-cycle; cycle W-cycle;
coarseningType AAMG; coarseningType cluster;
norm componentNorm; norm twoNorm;
normComponent 0; normComponent 0;
minGroupSize 2;
maxGroupSize 4;
nPreSweeps 2; nPreSweeps 2;
nPostSweeps 2; nPostSweeps 2;
groupSize 2; groupSize 2;
@ -32,7 +35,7 @@ solvers
scale on; scale on;
smoother smoother
{ {
smoother ILUCp; smoother ILU;
fillInLevel 1; fillInLevel 1;
} }
@ -41,6 +44,16 @@ solvers
tolerance 1e-7; tolerance 1e-7;
relTol 0.001; relTol 0.001;
} }
kEpsilon
{
solver BiCGStab;
preconditioner Cholesky;
tolerance 1e-07;
relTol 0.1;
minIter 1;
maxIter 100;
}
// Segregated // Segregated
p p