ENH: updated channel395 tutorial

This commit is contained in:
mattijs
2010-05-04 15:14:42 +01:00
parent 061a0014c4
commit 409d373c6d
15 changed files with 231 additions and 180 deletions

3
TODO
View File

@ -88,8 +88,9 @@ OK - grep for size()/2
incompressible/simpleSRFFoam/mixer incompressible/simpleSRFFoam/mixer
lagrangian/porousExplicitSourceReactingParcelFoam/filter lagrangian/porousExplicitSourceReactingParcelFoam/filter
lagrangian/reactingParcelFilmFoam/multipleBoxes lagrangian/reactingParcelFilmFoam/multipleBoxes
- have foamUpgradeCyclics split 'value' field
- createBaffles - createBaffles
- activeBaffleVelocity - activeBaffleVelocity
- kivaToFoam/readKivaGrid.H sorts cyclics (but in incorrect order?) - kivaToFoam/readKivaGrid.H sorts cyclics (but in incorrect order?)

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 | | \\ / O peration | Version: splitCyclic |
| \\ / A nd | Web: http://www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
@ -10,45 +10,58 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volTensorField; class volTensorField;
location "1";
object B; object B;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0]; dimensions [ 0 2 -2 0 0 0 0 ];
internalField uniform (0 0 0 0 0 0 0 0 0); internalField uniform ( 0 0 0 0 0 0 0 0 0 );
boundaryField boundaryField
{ {
bottomWall bottomWall
{ {
type zeroGradient; type zeroGradient;
} }
topWall
topWall
{ {
type zeroGradient; type zeroGradient;
} }
sides1_half0
sides1
{ {
type cyclic; type cyclic;
} }
sides2_half0
sides2
{ {
type cyclic; type cyclic;
} }
inout1_half0
inout1
{ {
type cyclic; type cyclic;
} }
inout2_half0
inout2 {
type cyclic;
}
sides2_half1
{
type cyclic;
}
sides1_half1
{
type cyclic;
}
inout1_half1
{
type cyclic;
}
inout2_half1
{ {
type cyclic; type cyclic;
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 | | \\ / O peration | Version: splitCyclic |
| \\ / A nd | Web: http://www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
@ -10,47 +10,60 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volVectorField; class volVectorField;
location "1";
object U; object U;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0]; dimensions [ 0 1 -1 0 0 0 0 ];
internalField uniform (0.1335 0 0); internalField uniform ( 0.1335 0 0 );
boundaryField boundaryField
{ {
bottomWall bottomWall
{ {
type fixedValue; type fixedValue;
value uniform (0 0 0); value uniform ( 0 0 0 );
} }
topWall
topWall
{ {
type fixedValue; type fixedValue;
value uniform (0 0 0); value uniform ( 0 0 0 );
} }
sides1_half0
sides1
{ {
type cyclic; type cyclic;
} }
sides2_half0
sides2
{ {
type cyclic; type cyclic;
} }
inout1_half0
inout1
{ {
type cyclic; type cyclic;
} }
inout2_half0
inout2 {
type cyclic;
}
sides2_half1
{
type cyclic;
}
sides1_half1
{
type cyclic;
}
inout1_half1
{
type cyclic;
}
inout2_half1
{ {
type cyclic; type cyclic;
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 | | \\ / O peration | Version: splitCyclic |
| \\ / A nd | Web: http://www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
@ -10,47 +10,60 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "1";
object k; object k;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0]; dimensions [ 0 2 -2 0 0 0 0 ];
internalField uniform 0; internalField uniform 0;
boundaryField boundaryField
{ {
bottomWall bottomWall
{ {
type fixedValue; type fixedValue;
value uniform 0; value uniform 0;
} }
topWall
topWall
{ {
type fixedValue; type fixedValue;
value uniform 0; value uniform 0;
} }
sides1_half0
sides1
{ {
type cyclic; type cyclic;
} }
sides2_half0
sides2
{ {
type cyclic; type cyclic;
} }
inout1_half0
inout1
{ {
type cyclic; type cyclic;
} }
inout2_half0
inout2 {
type cyclic;
}
sides2_half1
{
type cyclic;
}
sides1_half1
{
type cyclic;
}
inout1_half1
{
type cyclic;
}
inout2_half1
{ {
type cyclic; type cyclic;
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 | | \\ / O peration | Version: splitCyclic |
| \\ / A nd | Web: http://www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
@ -10,45 +10,58 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "1";
object nuSgs; object nuSgs;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0]; dimensions [ 0 2 -1 0 0 0 0 ];
internalField uniform 0; internalField uniform 0;
boundaryField boundaryField
{ {
bottomWall bottomWall
{ {
type zeroGradient; type zeroGradient;
} }
topWall
topWall
{ {
type zeroGradient; type zeroGradient;
} }
sides1_half0
sides1
{ {
type cyclic; type cyclic;
} }
sides2_half0
sides2
{ {
type cyclic; type cyclic;
} }
inout1_half0
inout1
{ {
type cyclic; type cyclic;
} }
inout2_half0
inout2 {
type cyclic;
}
sides2_half1
{
type cyclic;
}
sides1_half1
{
type cyclic;
}
inout1_half1
{
type cyclic;
}
inout2_half1
{ {
type cyclic; type cyclic;
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 | | \\ / O peration | Version: splitCyclic |
| \\ / A nd | Web: http://www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
@ -10,47 +10,60 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "1";
object nuTilda; object nuTilda;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0]; dimensions [ 0 2 -1 0 0 0 0 ];
internalField uniform 0; internalField uniform 0;
boundaryField boundaryField
{ {
bottomWall bottomWall
{ {
type fixedValue; type fixedValue;
value uniform 0; value uniform 0;
} }
topWall
topWall
{ {
type fixedValue; type fixedValue;
value uniform 0; value uniform 0;
} }
sides1_half0
sides1
{ {
type cyclic; type cyclic;
} }
sides2_half0
sides2
{ {
type cyclic; type cyclic;
} }
inout1_half0
inout1
{ {
type cyclic; type cyclic;
} }
inout2_half0
inout2 {
type cyclic;
}
sides2_half1
{
type cyclic;
}
sides1_half1
{
type cyclic;
}
inout1_half1
{
type cyclic;
}
inout2_half1
{ {
type cyclic; type cyclic;
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 | | \\ / O peration | Version: splitCyclic |
| \\ / A nd | Web: http://www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
@ -10,45 +10,58 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "1";
object p; object p;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0]; dimensions [ 0 2 -2 0 0 0 0 ];
internalField uniform 0; internalField uniform 0;
boundaryField boundaryField
{ {
bottomWall bottomWall
{ {
type zeroGradient; type zeroGradient;
} }
topWall
topWall
{ {
type zeroGradient; type zeroGradient;
} }
sides1_half0
sides1
{ {
type cyclic; type cyclic;
} }
sides2_half0
sides2
{ {
type cyclic; type cyclic;
} }
inout1_half0
inout1
{ {
type cyclic; type cyclic;
} }
inout2_half0
inout2 {
type cyclic;
}
sides2_half1
{
type cyclic;
}
sides1_half1
{
type cyclic;
}
inout1_half1
{
type cyclic;
}
inout2_half1
{ {
type cyclic; type cyclic;
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -42,36 +42,70 @@ edges
( (
); );
patches boundary
( (
wall bottomWall bottomWall
( {
(0 1 7 6) type wall;
) faces ((0 1 7 6));
wall topWall }
( topWall
(4 10 11 5) {
) type wall;
cyclic sides1 faces ((4 10 11 5));
( }
(0 2 3 1)
(6 7 9 8) sides1_half0
) {
cyclic sides2 type cyclic;
( neighbourPatch sides1_half1;
(2 4 5 3) faces ((0 2 3 1));
(8 9 11 10) }
) sides1_half1
cyclic inout1 {
( type cyclic;
(1 3 9 7) neighbourPatch sides1_half0;
(0 6 8 2) faces ((6 7 9 8));
) }
cyclic inout2
( sides2_half0
(3 5 11 9) {
(2 8 10 4) type cyclic;
) neighbourPatch sides2_half1;
faces ((2 4 5 3));
}
sides2_half1
{
type cyclic;
neighbourPatch sides2_half0;
faces ((8 9 11 10));
}
inout1_half0
{
type cyclic;
neighbourPatch inout1_half1;
faces ((1 3 9 7));
}
inout1_half1
{
type cyclic;
neighbourPatch inout1_half0;
faces ((0 6 8 2));
}
inout2_half0
{
type cyclic;
neighbourPatch inout2_half1;
faces ((3 5 11 9));
}
inout2_half1
{
type cyclic;
neighbourPatch inout2_half0;
faces ((2 8 10 4));
}
); );
mergePatchPairs mergePatchPairs

View File

@ -1,62 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
6
(
bottomWall
{
type wall;
nFaces 1200;
startFace 175300;
}
topWall
{
type wall;
nFaces 1200;
startFace 176500;
}
sides1
{
type cyclic;
nFaces 2000;
startFace 177700;
featureCos 0.9;
}
sides2
{
type cyclic;
nFaces 2000;
startFace 179700;
featureCos 0.9;
}
inout1
{
type cyclic;
nFaces 1500;
startFace 181700;
featureCos 0.9;
}
inout2
{
type cyclic;
nFaces 1500;
startFace 183200;
featureCos 0.9;
}
)
// ************************************************************************* //