Final iteration information now available in mesh::data (used to be mesh::fvData)

Relaxation and solution parameters for the final iteration in PIMPLE loops are
now selected according to the value of the "finalIteration" entry in the
mesh::data dictionary.

rhoPimpleFoam significantly updates and now replaces rhoPisoFoam.
This commit is contained in:
henry
2010-05-25 18:45:25 +01:00
parent 49ccf0ffaa
commit 361b153343
161 changed files with 685 additions and 859 deletions

View File

@ -20,7 +20,7 @@ internalField uniform (0 0 0);
boundaryField
{
inlet
inlet
{
type turbulentInlet;
referenceField uniform (10 0 0);
@ -28,26 +28,26 @@ boundaryField
value uniform (10 0 0);
}
outlet
outlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
upperWall
upperWall
{
type fixedValue;
value uniform (0 0 0);
}
lowerWall
lowerWall
{
type fixedValue;
value uniform (0 0 0);
}
frontAndBack
frontAndBack
{
type empty;
}

View File

@ -20,12 +20,12 @@ internalField uniform 1e5;
boundaryField
{
inlet
inlet
{
type zeroGradient;
}
outlet
outlet
{
type waveTransmissive;
field p;
@ -38,17 +38,17 @@ boundaryField
value uniform 1e5;
}
upperWall
upperWall
{
type zeroGradient;
}
lowerWall
lowerWall
{
type zeroGradient;
}
frontAndBack
frontAndBack
{
type empty;
}

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 | |
\*---------------------------------------------------------------------------*/

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application rhoPisoFoam;
application rhoPimpleFoam;
startFrom startTime;

View File

@ -23,15 +23,13 @@ ddtSchemes
gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
grad(U) Gauss linear;
}
divSchemes
{
default none;
div(phi,U) Gauss linear;
div(phi,h) Gauss linear;
div(phi,U) Gauss filteredLinear2V 0.2 0;
div(phi,h) Gauss filteredLinear2 0.2 0;
div(phiU,p) Gauss linear;
div(phi,k) Gauss limitedLinear 1;
div(phi,B) Gauss limitedLinear 1;
@ -54,7 +52,6 @@ laplacianSchemes
interpolationSchemes
{
default linear;
interpolate(HbyA) linear;
}
snGradSchemes

View File

@ -21,31 +21,42 @@ solvers
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
tolerance 1e-6;
relTol 0;
}
h
"(p|rho)Final"
{
$p;
relTol 0;
}
"(U|h|k|nuTilda)"
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-06;
tolerance 1e-6;
relTol 0;
}
"(U|k|B|nuTilda)"
"(U|h|k|nuTilda)Final"
{
$h;
tolerance 1e-05;
$U;
relTol 0;
}
}
PISO
PIMPLE
{
nCorrectors 2;
momentumPredictor yes;
nOuterCorrectors 2;
nCorrectors 1;
nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
"(U|h|k|epsilon|omega).*" 1;
}
// ************************************************************************* //

View File

@ -32,14 +32,7 @@ solvers
relTol 0;
}
rho
{
$p;
tolerance 1e-05;
relTol 0;
}
U
"(rho|U|h|k|epsilon|omega)"
{
solver PBiCG;
preconditioner DILU;
@ -47,9 +40,7 @@ solvers
relTol 0.1;
}
h { $U; }
"(UFinal|hFinal|R|k|epsilon|omega)"
"(rho|U|h|k|epsilon|omega)Final"
{
$U;
tolerance 1e-05;
@ -60,20 +51,18 @@ solvers
PIMPLE
{
momentumPredictor yes;
nOuterCorrectors 50;
nCorrectors 1;
nNonOrthogonalCorrectors 0;
momentumPredictor yes;
pMin pMin [ 1 -1 -2 0 0 0 0 ] 1000;
}
relaxationFactors
{
p 0.3;
rho 0.05;
U 0.7;
h 0.7;
"(k|epsilon|omega)" 0.7;
"p.*" 0.3;
"rho.*" 1;
"(U|h|k|epsilon|omega)" 0.7;
"(U|h|k|epsilon|omega)Final" 1;
}

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 ascii;
format binary;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application rhoPisoFoam;
application rhoPimpleFoam;
startFrom startTime;
@ -33,9 +33,9 @@ writeInterval 0.1;
purgeWrite 0;
writeFormat ascii;
writeFormat binary;
writePrecision 6;
writePrecision 10;
writeCompression off;

View File

@ -22,10 +22,16 @@ solvers
solver PCG;
preconditioner DIC;
tolerance 1e-06;
relTol 0.01;
}
pFinal
{
$p;
relTol 0;
}
rho
"rho.*"
{
$p;
tolerance 1e-05;
@ -37,15 +43,22 @@ solvers
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
}
"(U|h|R|k|epsilon|omega)Final"
{
$U;
relTol 0;
}
}
PISO
PIMPLE
{
momentumPredictor yes;
nOuterCorrectors 1;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
momentumPredictor yes;
}

View File

@ -1,37 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
periodicX
{
type cyclic;
}
periodicY
{
type cyclic;
}
periodicZ
{
type cyclic;
}
}
// ************************************************************************* //

View File

@ -1,37 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
periodicX
{
type cyclic;
}
periodicY
{
type cyclic;
}
periodicZ
{
type cyclic;
}
}
// ************************************************************************* //

View File

@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # run from this directory
application=`getApplication`
compileApplication ../../buoyantPisoFoam/hotRoom/setHotRoom
compileApplication ../../buoyantPimpleFoam/hotRoom/setHotRoom
runApplication blockMesh
runApplication setHotRoom
runApplication $application

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 | |
\*---------------------------------------------------------------------------*/

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application buoyantBoussinesqPisoFoam;
application buoyantBoussinesqPimpleFoam;
startFrom startTime;
@ -23,13 +23,13 @@ startTime 0;
stopAt endTime;
endTime 1000;
endTime 2000;
deltaT 1;
deltaT 2;
writeControl timeStep;
writeInterval 100;
writeInterval 200;
purgeWrite 0;

View File

@ -21,14 +21,13 @@ solvers
{
solver PCG;
preconditioner DIC;
tolerance 1e-07;
tolerance 1e-8;
relTol 0.1;
}
pFinal
{
$p;
tolerance 1e-07;
relTol 0;
}
@ -36,19 +35,31 @@ solvers
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
tolerance 1e-6;
relTol 0.1;
}
"(U|T|k|epsilon|R)Final"
{
$U;
relTol 0;
}
}
PISO
PIMPLE
{
momentumPredictor yes;
momentumPredictor no;
nOuterCorrectors 1;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
pRefCell 0;
pRefValue 0;
}
relaxationFactors
{
"(U|T|k|epsilon|R)" 1;
"(U|T|k|epsilon|R)Final" 1;
}
// ************************************************************************* //

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 | |
\*---------------------------------------------------------------------------*/

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application buoyantPisoFoam;
application buoyantPimpleFoam;
startFrom startTime;
@ -23,9 +23,9 @@ startTime 0;
stopAt endTime;
endTime 1000;
endTime 2000;
deltaT 1;
deltaT 2;
writeControl timeStep;

View File

@ -17,7 +17,7 @@ FoamFile
solvers
{
rho
"rho.*"
{
solver PCG;
preconditioner DIC;
@ -29,14 +29,13 @@ solvers
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
tolerance 1e-8;
relTol 0.1;
}
pFinal
{
$p;
tolerance 1e-06;
relTol 0;
}
@ -44,13 +43,21 @@ solvers
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
tolerance 1e-6;
relTol 0;
}
"(U|h|k|epsilon|R)Final"
{
$U;
relTol 0;
}
}
PISO
PIMPLE
{
momentumPredictor no;
nOuterCorrectors 1;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
}

View File

@ -33,13 +33,13 @@ boundaryField
{
type flowRateInletVelocity;
flowRate 0.00379;
value uniform (0 10.82857143 0);
value uniform (0 14.68 0);
}
inletSides
{
type flowRateInletVelocity;
flowRate 0.00832;
value uniform (0 11.88571429 0);
value uniform (0 17.79 0);
}
outlet
{