adjust tutorial fvSolution to use regular expressions and $variable

This commit is contained in:
Mark Olesen
2009-08-01 14:51:59 +02:00
parent 8d78978645
commit d749aac04d
77 changed files with 377 additions and 2511 deletions

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -17,10 +17,24 @@ FoamFile
solvers
{
rho
p
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
relTol 0.01;
}
pFinal
{
$p;
tolerance 1e-06;
relTol 0;
}
rho
{
$p;
tolerance 1e-05;
relTol 0;
}
@ -33,77 +47,15 @@ solvers
relTol 0.1;
}
UFinal
h { $U; }
"(UFinal|hFinal|R|k|epsilon|omega)"
{
solver PBiCG;
preconditioner DILU;
$U;
tolerance 1e-05;
relTol 0;
}
p
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
relTol 0.01;
}
pFinal
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
relTol 0;
}
h
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
}
hFinal
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
R
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
k
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
epsilon
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
omega
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
}
PIMPLE
@ -117,12 +69,11 @@ PIMPLE
relaxationFactors
{
U 0.7;
p 0.3;
rho 0.05;
U 0.7;
h 0.7;
k 0.7;
omega 0.7;
"(k|epsilon|omega)" 0.7;
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -17,7 +17,7 @@ FoamFile
solvers
{
rho
"(p|rho)"
{
solver PCG;
preconditioner DIC;
@ -33,42 +33,9 @@ solvers
relTol 0;
}
p
"(U|k|B|nuTilda)"
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
relTol 0;
}
U
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
k
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
B
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
nuTilda
{
solver PBiCG;
preconditioner DILU;
$h;
tolerance 1e-05;
relTol 0;
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -17,22 +17,6 @@ FoamFile
solvers
{
rho
{
solver PCG;
preconditioner DIC;
tolerance 1e-05;
relTol 0;
}
U
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
p
{
solver PCG;
@ -41,39 +25,14 @@ solvers
relTol 0;
}
h
rho
{
solver PBiCG;
preconditioner DILU;
$p;
tolerance 1e-05;
relTol 0;
}
R
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
k
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
epsilon
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
omega
"(U|h|R|k|epsilon|omega)"
{
solver PBiCG;
preconditioner DILU;

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -46,20 +46,9 @@ solvers
relTol 0.1;
}
k
"(k|epsilon)"
{
solver smoothSolver;
smoother GaussSeidel;
nSweeps 2;
tolerance 1e-07;
relTol 0.1;
}
epsilon
{
solver smoothSolver;
smoother GaussSeidel;
nSweeps 2;
$U;
tolerance 1e-07;
relTol 0.1;
}
@ -76,8 +65,7 @@ relaxationFactors
p 0.3;
rho 0.05;
U 0.7;
k 0.7;
epsilon 0.7;
"(k|epsilon)" 0.7;
h 0.5;
}

View File

@ -1,14 +1,14 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format binary;
format ascii;
class dictionary;
location "system";
object fvSolution;
@ -37,16 +37,7 @@ solvers
relTol 0.1;
}
k
{
solver smoothSolver;
smoother GaussSeidel;
nSweeps 2;
tolerance 1e-07;
relTol 0.1;
}
epsilon
"(k|epsilon)"
{
solver smoothSolver;
smoother GaussSeidel;
@ -68,8 +59,7 @@ relaxationFactors
p 0.3;
rho 1;
U 0.7;
k 0.9;
epsilon 0.9;
"(k|epsilon)" 0.9;
h 0.9;
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -17,31 +17,7 @@ FoamFile
solvers
{
p
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
rho
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
rhoU
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
rhoE
"(p|rho|rhoU|rhoE)"
{
solver PBiCG;
preconditioner DILU;

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -17,31 +17,7 @@ FoamFile
solvers
{
p
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
rho
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
rhoU
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
rhoE
"(p|rho|rhoU|rhoE)"
{
solver PBiCG;
preconditioner DILU;

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -25,31 +25,7 @@ solvers
relTol 0;
}
rho
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
rhoU
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
rhoE
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
rhoH
"(rho|rhoU|rhoE|rhoH)"
{
solver PBiCG;
preconditioner DILU;

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -25,31 +25,7 @@ solvers
relTol 0;
}
rho
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
rhoU
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
rhoE
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
rhoH
"(rho|rhoU|rhoE|rhoH)"
{
solver PBiCG;
preconditioner DILU;

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -25,10 +25,9 @@ solvers
relTol 0;
}
U
"(U|e)"
{
solver PBiCG;
preconditioner DILU;
$p;
tolerance 1e-05;
relTol 0;
}
@ -40,14 +39,6 @@ solvers
tolerance 1e-05;
relTol 0;
}
e
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
}
PISO

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -17,15 +17,7 @@ FoamFile
solvers
{
p
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
U
"(p|U|e)"
{
solver PBiCG;
preconditioner DILU;
@ -40,14 +32,6 @@ solvers
tolerance 1e-15;
relTol 0;
}
e
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-15;
relTol 0;
}
}
PISO

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -33,42 +33,9 @@ solvers
relTol 0;
}
U
"(U|e|k|epsilon|R)"
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-08;
relTol 0;
}
e
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-08;
relTol 0;
}
k
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-08;
relTol 0;
}
epsilon
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-08;
relTol 0;
}
R
{
solver PBiCG;
preconditioner DILU;
$p;
tolerance 1e-08;
relTol 0;
}

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -33,45 +33,20 @@ solvers
relTol 0;
}
U
"(U|e|R)"
{
solver PBiCG;
preconditioner DILU;
$p;
tolerance 1e-05;
relTol 0;
}
e
"(k|epsilon)"
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
k
{
solver PBiCG;
preconditioner DILU;
$p;
tolerance 1e-08;
relTol 0;
}
epsilon
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-08;
relTol 0;
}
R
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
}
}
PISO

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
@ -27,8 +27,7 @@ solvers
U
{
solver PBiCG;
preconditioner DILU;
$p;
tolerance 1e-05;
relTol 0;
}