Fixed PODSolver and potentialFoam tutorials (backports)

This commit is contained in:
Vanja Skuric 2016-05-08 09:29:03 +02:00
parent 30644bf3b0
commit 4ea9d1f3b8
9 changed files with 35 additions and 56 deletions

View file

@ -1,9 +1,9 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | foam-extend: Open Source CFD | | \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 | | \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
{ {
@ -32,7 +32,6 @@ FoamFile
frontAndBack frontAndBack
{ {
type empty; type empty;
physicalType empty;
nFaces 200; nFaces 200;
startFace 51; startFace 51;
} }

View file

@ -47,10 +47,4 @@ snGradSchemes
default corrected; default corrected;
} }
fluxRequired
{
default no;
T;
}
// ************************************************************************* // // ************************************************************************* //

View file

@ -14,9 +14,12 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers T
{ {
T BICCG 1e-06 0; solver PBiCG;
preconditioner DILU;
tolerance 1e-06;
relTol 0;
} }
SIMPLE SIMPLE

View file

@ -1,42 +1,40 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | foam-extend: Open Source CFD | | \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 | | \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
{ {
version 2.0; version 2.0;
format ascii; format ascii;
class polyBoundaryMesh; class polyBoundaryMesh;
location "constant/polyMesh";
object boundary; object boundary;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
3 3
( (
left left
{ {
type patch; type patch;
nFaces 1; nFaces 1;
startFace 49; startFace 49;
} }
right
right {
{
type patch; type patch;
nFaces 1; nFaces 1;
startFace 50; startFace 50;
} }
frontAndBack
frontAndBack {
{
type empty; type empty;
physicalType empty;
nFaces 200; nFaces 200;
startFace 51; startFace 51;
} }
) )
// ************************************************************************* // // ************************************************************************* //

View file

@ -46,10 +46,4 @@ snGradSchemes
default corrected; default corrected;
} }
fluxRequired
{
default no;
T;
}
// ************************************************************************* // // ************************************************************************* //

View file

@ -14,9 +14,12 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers T
{ {
T BICCG 1e-06 0; solver PBiCG;
preconditioner DILU;
tolerance 1e-06;
relTol 0;
} }
SIMPLE SIMPLE

View file

@ -46,10 +46,4 @@ snGradSchemes
default corrected; default corrected;
} }
fluxRequired
{
default no;
p ;
}
// ************************************************************************* // // ************************************************************************* //

View file

@ -1,9 +1,9 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | foam-extend: Open Source CFD | | \\ / F ield | foam-extend: Open Source CFD |
| \\ / O peration | Version: 3.2 | | \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: http://www.foam-extend.org | | \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | | | \\/ M anipulation | For copyright notice see file Copyright |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
{ {

View file

@ -46,10 +46,4 @@ snGradSchemes
default corrected; default corrected;
} }
fluxRequired
{
default no;
p ;
}
// ************************************************************************* // // ************************************************************************* //