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;
}