Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's OpenFOAM page.

 

 

 

 

 

(OpenFOAM) OpenFoamExample8

 

./ToolOpenFoamExample8/About.txt

 

Copied from C:\cfd\blueCFD-SingleCore-2.1\OpenFOAM-2.1\tutorials\basic\potentialFoam\cylinder

 

 

 

 

 

./ToolOpenFoamExample8/case.foam

 

 

 

 

 

 

./ToolOpenFoamExample8/ToolOpenFoamExample8.bat

 

blockMesh.exe
xcopy 0.org /I 0
potentialFoam.exe

rem Why no .exe???
paraFoam

 

 

 

 

 

./ToolOpenFoamExample8/system/controlDict

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     potentialFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         1;

deltaT          1;

writeControl    timeStep;

writeInterval   1;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

//Removed the code below, as I could not get it to work under Windows
//
//functions
//{
//difference
//{
//// Load the library containing the 'coded' functionObject
//functionObjectLibs ("libutilityFunctionObjects.so");
//type coded;
//// Name of on-the-fly generated functionObject
//redirectType error;
//code
//#{
//// Lookup U
//Info<< "Looking up field U\n" << endl;
//const volVectorField& U = mesh().lookupObject<volVectorField>("U");
//
//Info<< "Reading inlet velocity  uInfX\n" << endl;
//
//scalar ULeft = 0.0;
//label leftI = mesh().boundaryMesh().findPatchID("left");
//const fvPatchVectorField& fvp = U.boundaryField()[leftI];
//if (fvp.size())
//{
//ULeft = fvp[0].x();
//}
//reduce(ULeft, maxOp<scalar>());
//
//dimensionedScalar uInfX
//(
//uInfx
//dimensionSet(0, 1, -1, 0, 0),
//ULeft
//);
//
//Info << "U at inlet = " << uInfX.value() << " m/s" << endl;
//
//
//scalar magCylinder = 0.0;
//label cylI = mesh().boundaryMesh().findPatchID("cylinder");
//const fvPatchVectorField& cylFvp = mesh().C().boundaryField()[cylI];
//if (cylFvp.size())
//{
//magCylinder = mag(cylFvp[0]);
//}
//reduce(magCylinder, maxOp<scalar>());
//
//dimensionedScalar radius
//(
//radius
//dimensionSet(0, 1, 0, 0, 0),
//magCylinder
//);
//
//Info << "Cylinder radius = " << radius.value() << " m" << endl;
//
//volVectorField UA
//(
//IOobject
//(
//UA
//mesh().time().timeName(),
//U.mesh(),
//IOobject::NO_READ,
//IOobject::AUTO_WRITE
//),
//U
//);
//
//Info<< "\nEvaluating analytical solution" << endl;
//
//const volVectorField& centres = UA.mesh().C();
//volScalarField magCentres(mag(centres));
//volScalarField theta(acos((centres & vector(1,0,0))/magCentres));
//
//volVectorField cs2theta
//(
//cos(2*theta)*vector(1,0,0)
//+ sin(2*theta)*vector(0,1,0)
//);
//
//UA = uInfX*(dimensionedVector(vector(1,0,0))
//- pow((radius/magCentres),2)*cs2theta);
//
//// Force writing of UA (since time has not changed)
//UA.write();
//
//volScalarField error("error", mag(U-UA)/mag(UA));
//
//Info<<"Writing relative error in U to " << error.objectPath()
//<< endl;
//
//error.write();
//#};
//}
//}

// ************************************************************************* //

 

 

 

 

 

./ToolOpenFoamExample8/system/fvSchemes

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default         steadyState;
}

gradSchemes
{
    default         leastSquares;
}

divSchemes
{
    default         none;
}

laplacianSchemes
{
    default         none;
    laplacian(1,p)  Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}

fluxRequired
{
    default         no;
    p               ;
}


// ************************************************************************* //

 

 

 

 

 

./ToolOpenFoamExample8/system/fvSolution

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    p
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance       1e-06;
        relTol          0;
    }
}

potentialFlow
{
    nNonOrthogonalCorrectors 3;
}


// ************************************************************************* //

 

 

 

 

 

./ToolOpenFoamExample8/constant/polyMesh/blockMeshDict

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

//RJCB: Replaced original code
vertices
(
  (0.5 0 -0.5)
  (1 0 -0.5)
  (2 0 -0.5)
  (2 0.707107 -0.5)
  (0.707107 0.707107 -0.5)
  (0.353553 0.353553 -0.5)
  (2 2 -0.5)
  (0.707107 2 -0.5)
  (0 2 -0.5)
  (0 1 -0.5)
  (0 0.5 -0.5)
  (-0.5 0 -0.5)
  (-1 0 -0.5)
  (-2 0 -0.5)
  (-2 0.707107 -0.5)
  (-0.707107 0.707107 -0.5)
  (-0.353553 0.353553 -0.5)
  (-2 2 -0.5)
  (-0.707107 2 -0.5)
  (0.5 0 0.5)
  (1 0 0.5)
  (2 0 0.5)
  (2 0.707107 0.5)
  (0.707107 0.707107 0.5)
  (0.353553 0.353553 0.5)
  (2 2 0.5)
  (0.707107 2 0.5)
  (0 2 0.5)
  (0 1 0.5)
  (0 0.5 0.5)
  (-0.5 0 0.5)
  (-1 0 0.5)
  (-2 0 0.5)
  (-2 0.707107 0.5)
  (-0.707107 0.707107 0.5)
  (-0.353553 0.353553 0.5)
  (-2 2 0.5)
  (-0.707107 2 0.5)
);


blocks
(
    hex (5 4 9 10 24 23 28 29) (10 10 1) simpleGrading (1 1 1)
    hex (0 1 4 5 19 20 23 24) (10 10 1) simpleGrading (1 1 1)
    hex (1 2 3 4 20 21 22 23) (20 10 1) simpleGrading (1 1 1)
    hex (4 3 6 7 23 22 25 26) (20 20 1) simpleGrading (1 1 1)
    hex (9 4 7 8 28 23 26 27) (10 20 1) simpleGrading (1 1 1)
    hex (15 16 10 9 34 35 29 28) (10 10 1) simpleGrading (1 1 1)
    hex (12 11 16 15 31 30 35 34) (10 10 1) simpleGrading (1 1 1)
    hex (13 12 15 14 32 31 34 33) (20 10 1) simpleGrading (1 1 1)
    hex (14 15 18 17 33 34 37 36) (20 20 1) simpleGrading (1 1 1)
    hex (15 9 8 18 34 28 27 37) (10 20 1) simpleGrading (1 1 1)
);

edges
(
    arc 0 5 (0.469846 0.17101 -0.5)
    arc 5 10 (0.17101 0.469846 -0.5)
    arc 1 4 (0.939693 0.34202 -0.5)
    arc 4 9 (0.34202 0.939693 -0.5)
    arc 19 24 (0.469846 0.17101 0.5)
    arc 24 29 (0.17101 0.469846 0.5)
    arc 20 23 (0.939693 0.34202 0.5)
    arc 23 28 (0.34202 0.939693 0.5)
    arc 11 16 (-0.469846 0.17101 -0.5)
    arc 16 10 (-0.17101 0.469846 -0.5)
    arc 12 15 (-0.939693 0.34202 -0.5)
    arc 15 9 (-0.34202 0.939693 -0.5)
    arc 30 35 (-0.469846 0.17101 0.5)
    arc 35 29 (-0.17101 0.469846 0.5)
    arc 31 34 (-0.939693 0.34202 0.5)
    arc 34 28 (-0.34202 0.939693 0.5)
);

boundary
(
    down
    {
[...]
            (13 12 31 32)
        );
    }
    right
    {
        type patch;
        faces
        (
            (2 3 22 21)
            (3 6 25 22)
        );
    }
    up
    {
        type symmetryPlane;
        faces
        (
            (7 8 27 26)
            (6 7 26 25)
            (8 18 37 27)
            (18 17 36 37)
        );
    }
    left
    {
        type patch;
        faces
        (
            (14 13 32 33)
            (17 14 33 36)
        );
    }
    cylinder
    {
        type symmetryPlane;
        faces
        (
            (10 5 24 29)
            (5 0 19 24)
            (16 10 29 35)
            (11 16 35 30)
        );
    }
);

mergePatchPairs
(
);

// ************************************************************************* //

 

 

 

 

 

./ToolOpenFoamExample8/constant/polyMesh/boundary

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*   Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt   *\
|  Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com   |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

6
(
    down
    {
        type            symmetryPlane;
        nFaces          60;
        startFace       3890;
    }
    right
    {
        type            patch;
        nFaces          30;
        startFace       3950;
    }
    up
    {
        type            symmetryPlane;
        nFaces          60;
        startFace       3980;
    }
    left
    {
        type            patch;
        nFaces          30;
        startFace       4040;
    }
    cylinder
    {
        type            symmetryPlane;
        nFaces          40;
        startFace       4070;
    }
    defaultFaces
    {
        type            empty;
        nFaces          4000;
        startFace       4110;
    }
)

// ************************************************************************* //

 

 

 

 

 

./ToolOpenFoamExample8/constant/polyMesh/faces

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*   Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt   *\
|  Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com   |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       faceList;
    location    "constant/polyMesh";
    object      faces;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


8110
(
4(1 12 133 122)
4(11 132 133 12)
4(0 1 122 121)
4(2 13 134 123)
4(12 133 134 13)
4(1 2 123 122)
4(3 14 135 124)
4(13 134 135 14)
4(2 3 124 123)
4(4 15 136 125)
4(14 135 136 15)
4(3 4 125 124)
4(5 16 137 126)
4(15 136 137 16)
4(4 5 126 125)
4(6 17 138 127)
4(16 137 138 17)
4(5 6 127 126)
4(7 18 139 128)
4(17 138 139 18)
4(6 7 128 127)
4(8 19 140 129)
4(18 139 140 19)
4(7 8 129 128)
4(9 20 141 130)
4(19 140 141 20)
4(8 9 130 129)
4(20 141 142 21)
4(9 10 131 130)
4(10 21 142 131)
4(12 23 144 133)
4(22 143 144 23)
4(13 24 145 134)
4(23 144 145 24)
4(14 25 146 135)
4(24 145 146 25)
4(15 26 147 136)
4(25 146 147 26)
4(16 27 148 137)
4(26 147 148 27)
4(17 28 149 138)
4(27 148 149 28)
4(18 29 150 139)
4(28 149 150 29)
4(19 30 151 140)
4(29 150 151 30)
4(20 31 152 141)
4(30 151 152 31)
4(31 152 153 32)
4(21 32 153 142)
4(23 34 155 144)
4(33 154 155 34)
4(24 35 156 145)
4(34 155 156 35)
4(25 36 157 146)
4(35 156 157 36)
4(26 37 158 147)
4(36 157 158 37)
4(27 38 159 148)
4(37 158 159 38)
4(28 39 160 149)
4(38 159 160 39)
4(29 40 161 150)
4(39 160 161 40)
4(30 41 162 151)
4(40 161 162 41)
4(31 42 163 152)
4(41 162 163 42)
4(42 163 164 43)
4(32 43 164 153)
4(34 45 166 155)
4(44 165 166 45)
4(35 46 167 156)
4(45 166 167 46)
4(36 47 168 157)
4(46 167 168 47)
4(37 48 169 158)
[...]
4(4165 4166 4175 4174)
4(4174 4175 4184 4183)
4(4183 4184 4193 4192)
4(4192 4193 4202 4201)
4(4201 4202 4211 4210)
4(4210 4211 4220 4219)
4(2340 2351 4050 4049)
4(4049 4050 4059 4058)
4(4058 4059 4068 4067)
4(4067 4068 4077 4076)
4(4076 4077 4086 4085)
4(4085 4086 4095 4094)
4(4094 4095 4104 4103)
4(4103 4104 4113 4112)
4(4112 4113 4122 4121)
4(4121 4122 4131 4130)
4(4130 4131 4140 4139)
4(4139 4140 4149 4148)
4(4148 4149 4158 4157)
4(4157 4158 4167 4166)
4(4166 4167 4176 4175)
4(4175 4176 4185 4184)
4(4184 4185 4194 4193)
4(4193 4194 4203 4202)
4(4202 4203 4212 4211)
4(4211 4212 4221 4220)
4(2351 241 1942 4050)
4(4050 1942 1952 4059)
4(4059 1952 1962 4068)
4(4068 1962 1972 4077)
4(4077 1972 1982 4086)
4(4086 1982 1992 4095)
4(4095 1992 2002 4104)
4(4104 2002 2012 4113)
4(4113 2012 2022 4122)
4(4122 2022 2032 4131)
4(4131 2032 2042 4140)
4(4140 2042 2052 4149)
4(4149 2052 2062 4158)
4(4158 2062 2072 4167)
4(4167 2072 2082 4176)
4(4176 2082 2092 4185)
4(4185 2092 2102 4194)
4(4194 2102 2112 4203)
4(4203 2112 2122 4212)
4(4212 2122 2132 4221)
)


// ************************************************************************* //

 

 

 

 

 

./ToolOpenFoamExample8/constant/polyMesh/neighbour

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*   Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt   *\
|  Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com   |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       labelList;
    note        "nPoints: 4222 nCells: 2000 nFaces: 8110 nInternalFaces: 3890";
    location    "constant/polyMesh";
    object      neighbour;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


3890
(
1
10
190
2
11
191
3
12
192
4
13
193
5
14
194
6
15
195
7
16
196
8
17
197
9
18
198
19
199
809
11
20
12
21
13
22
14
23
15
24
16
25
17
26
18
27
19
28
29
808
21
30
22
31
23
32
24
33
25
34
26
35
27
36
28
37
29
38
39
807
31
40
32
41
33
42
[...]
1980
1972
1981
1973
1982
1974
1983
1975
1984
1976
1985
1977
1986
1978
1987
1979
1988
1989
1981
1990
1982
1991
1983
1992
1984
1993
1985
1994
1986
1995
1987
1996
1988
1997
1989
1998
1999
1991
1992
1993
1994
1995
1996
1997
1998
1999
)


// ************************************************************************* //

 

 

 

 

 

./ToolOpenFoamExample8/constant/polyMesh/owner

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*   Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt   *\
|  Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com   |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       labelList;
    note        "nPoints: 4222 nCells: 2000 nFaces: 8110 nInternalFaces: 3890";
    location    "constant/polyMesh";
    object      owner;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


8110
(
0
0
0
1
1
1
2
2
2
3
3
3
4
4
4
5
5
5
6
6
6
7
7
7
8
8
8
9
9
9
10
10
11
11
12
12
13
13
14
14
15
15
16
16
17
17
18
18
19
19
20
20
21
21
22
22
23
23
24
24
25
25
26
26
27
27
28
28
29
29
30
30
31
31
32
32
[...]
1947
1957
1967
1977
1987
1997
1808
1818
1828
1838
1848
1858
1868
1878
1888
1898
1908
1918
1928
1938
1948
1958
1968
1978
1988
1998
1809
1819
1829
1839
1849
1859
1869
1879
1889
1899
1909
1919
1929
1939
1949
1959
1969
1979
1989
1999
)


// ************************************************************************* //

 

 

 

 

 

./ToolOpenFoamExample8/constant/polyMesh/points

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*   Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt   *\
|  Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com   |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       vectorField;
    location    "constant/polyMesh";
    object      points;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


4222
(
(0.353553 0.353553 -0.5)
(0.3889084 0.3889084 -0.5)
(0.4242638 0.4242638 -0.5)
(0.4596192 0.4596192 -0.5)
(0.4949746 0.4949746 -0.5)
(0.53033 0.53033 -0.5)
(0.5656854 0.5656854 -0.5)
(0.6010408 0.6010408 -0.5)
(0.6363962 0.6363962 -0.5)
(0.6717516 0.6717516 -0.5)
(0.707107 0.707107 -0.5)
(0.3247236703 0.3802025945 -0.5)
(0.3571961306 0.4182229573 -0.5)
(0.3896685909 0.45624332 -0.5)
(0.4221410512 0.4942636828 -0.5)
(0.4546135115 0.5322840456 -0.5)
(0.4870859718 0.5703044083 -0.5)
(0.5195584321 0.6083247711 -0.5)
(0.5520308924 0.6463451339 -0.5)
(0.5845033527 0.6843654966 -0.5)
(0.616975813 0.7223858594 -0.5)
(0.6494482733 0.7604062221 -0.5)
(0.2938923123 0.4045081186 -0.5)
(0.3232816283 0.4449590345 -0.5)
(0.3526709443 0.4854099505 -0.5)
(0.3820602602 0.5258608665 -0.5)
(0.4114495762 0.5663117825 -0.5)
(0.4408388922 0.6067626984 -0.5)
(0.4702282082 0.6472136144 -0.5)
(0.4996175242 0.6876645304 -0.5)
(0.5290068401 0.7281154464 -0.5)
(0.5583961561 0.7685663624 -0.5)
(0.5877854721 0.8090172783 -0.5)
(0.2612490108 0.4263197211 -0.5)
(0.2873739867 0.4689517954 -0.5)
(0.3134989626 0.5115838696 -0.5)
(0.3396239385 0.5542159439 -0.5)
(0.3657489143 0.5968480182 -0.5)
(0.3918738902 0.6394800925 -0.5)
(0.4179988661 0.6821121668 -0.5)
(0.444123842 0.7247442411 -0.5)
(0.4702488179 0.7673763154 -0.5)
(0.4963737937 0.8100083896 -0.5)
(0.5224987696 0.8526404639 -0.5)
(0.2269950219 0.4455029268 -0.5)
(0.2496945879 0.4900533167 -0.5)
(0.2723941539 0.5346037067 -0.5)
(0.2950937199 0.5791540966 -0.5)
(0.3177932859 0.6237044866 -0.5)
(0.3404928519 0.6682548765 -0.5)
(0.3631924179 0.7128052665 -0.5)
(0.3858919839 0.7573556564 -0.5)
(0.4085915499 0.8019060464 -0.5)
(0.4312911159 0.8464564363 -0.5)
(0.4539906819 0.8910068263 -0.5)
(0.191341532 0.4619394652 -0.5)
(0.2104757374 0.508133501 -0.5)
(0.2296099428 0.5543275368 -0.5)
(0.2487441482 0.6005215726 -0.5)
(0.2678783536 0.6467156083 -0.5)
(0.287012559 0.6929096441 -0.5)
(0.3061467644 0.7391036799 -0.5)
(0.3252809698 0.7852977156 -0.5)
(0.3444151752 0.8314917514 -0.5)
(0.3635493806 0.8776857872 -0.5)
(0.382683586 0.9238798229 -0.5)
(0.154508356 0.4755280001 -0.5)
(0.169959232 0.5230808781 -0.5)
(0.1854101079 0.5706337561 -0.5)
(0.2008609839 0.6181866341 -0.5)
(0.2163118599 0.6657395121 -0.5)
(0.2317627359 0.7132923901 -0.5)
(0.2472136118 0.7608452681 -0.5)
(0.2626644878 0.8083981461 -0.5)
(0.2781153638 0.8559510241 -0.5)
(0.2935662398 0.9035039021 -0.5)
(0.3090171157 0.9510567801 -0.5)
[...]
(-0.07264780508 1.749229356 0.5)
(-0.6390066947 1.752081244 0.5)
(-0.5701055744 1.761803456 0.5)
(-0.5004796739 1.770528093 0.5)
(-0.4302094964 1.778201365 0.5)
(-0.3593795172 1.784775965 0.5)
(-0.2880776631 1.790211356 0.5)
(-0.2163947703 1.794474028 0.5)
(-0.1444240239 1.797537701 0.5)
(-0.07226038407 1.799383485 0.5)
(-0.638354096 1.814060933 0.5)
(-0.5690005808 1.821352592 0.5)
(-0.4991034804 1.82789607 0.5)
(-0.4287231723 1.833651024 0.5)
(-0.3579230129 1.838581973 0.5)
(-0.2867689474 1.842658517 0.5)
(-0.2153291027 1.845855521 0.5)
(-0.1436733679 1.848153276 0.5)
(-0.07187296305 1.849537614 0.5)
(-0.6377014973 1.876040622 0.5)
(-0.5678955872 1.880901728 0.5)
(-0.497727287 1.885264046 0.5)
(-0.4272368482 1.889100683 0.5)
(-0.3564665086 1.892387982 0.5)
(-0.2854602316 1.895105678 0.5)
(-0.2142634351 1.897237014 0.5)
(-0.142922712 1.89876885 0.5)
(-0.07148554203 1.899691742 0.5)
(-0.6370488987 1.938020311 0.5)
(-0.5667905936 1.940450864 0.5)
(-0.4963510935 1.942632023 0.5)
(-0.4257505241 1.944550341 0.5)
(-0.3550100043 1.946193991 0.5)
(-0.2841515158 1.947552839 0.5)
(-0.2131977676 1.948618507 0.5)
(-0.142172056 1.949384425 0.5)
(-0.07109812102 1.949845871 0.5)
(-0.6363963 2 0.5)
(-0.5656856 2 0.5)
(-0.4949749 2 0.5)
(-0.4242642 2 0.5)
(-0.3535535 2 0.5)
(-0.2828428 2 0.5)
(-0.2121321 2 0.5)
(-0.1414214 2 0.5)
(-0.0707107 2 0.5)
)


// ************************************************************************* //

 

 

 

 

 

./ToolOpenFoamExample8/0.org/p

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    down
    {
        type            symmetryPlane;
    }

    right
    {
        type            fixedValue;
        value           uniform 0;
    }

    up
    {
        type            symmetryPlane;
    }

    left
    {
        type            zeroGradient;
    }

    cylinder
    {
        type            symmetryPlane;
    }

    defaultFaces
    {
        type            empty;
    }
}

// ************************************************************************* //

 

 

 

 

 

./ToolOpenFoamExample8/0.org/U

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      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
{
    down
    {
        type            symmetryPlane;
    }

    right
    {
        type            zeroGradient;
    }

    up
    {
        type            symmetryPlane;
    }

    left
    {
        type            uniformFixedValue;
        uniformValue    constant (1 0 0);
    }

    cylinder
    {
        type            symmetryPlane;
    }

    defaultFaces
    {
        type            empty;
    }
}

// ************************************************************************* //

 

 

 

 

 

./ToolOpenFoamExample8/0/p

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    down
    {
        type            symmetryPlane;
    }

    right
    {
        type            fixedValue;
        value           uniform 0;
    }

    up
    {
        type            symmetryPlane;
    }

    left
    {
        type            zeroGradient;
    }

    cylinder
    {
        type            symmetryPlane;
    }

    defaultFaces
    {
        type            empty;
    }
}

// ************************************************************************* //

 

 

 

 

 

./ToolOpenFoamExample8/0/phi

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*   Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt   *\
|  Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com   |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       surfaceScalarField;
    location    "0";
    object      phi;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 3 -1 0 0 0 0];

internalField   nonuniform List<scalar>
3890
(
0.00539994
-0.0761463
0.0707464
0.0103763
-0.0701269
0.0651502
0.015029
-0.0654841
0.0608314
0.0194288
-0.0618279
0.0574281
0.0236275
-0.0588974
0.0546986
0.0276634
-0.0565128
0.0524769
0.0315653
-0.0545474
0.0506454
0.0353561
-0.0529092
0.0491182
0.0390592
-0.0515309
0.0478276
-0.0503637
0.0467082
0.0427145
0.00493666
-0.0810833
0.0094865
-0.0746767
0.0137403
-0.069738
0.0177629
-0.0658505
0.0216013
-0.0627355
0.0252898
-0.0602012
0.0288546
-0.058112
0.0323155
-0.0563704
0.0356902
-0.0549059
-0.0536697
0.0389965
0.00444094
-0.0855242
0.00853403
-0.0787698
0.0123612
-0.0735653
0.0159808
-0.06947
0.0194349
-0.0661895
0.0227538
-0.0635204
0.02596
-0.0613185
0.029068
-0.0594786
0.0320834
-0.0579215
-0.0565843
0.0349978
0.0039156
-0.0894397
0.00752482
-0.082379
0.0109004
[...]
        value           nonuniform List<scalar>
30
(
-0.0707107
-0.0707107
-0.0707107
-0.0707107
-0.0707107
-0.0707107
-0.0707107
-0.0707107
-0.0707107
-0.0707107
-0.0646446
-0.0646446
-0.0646446
-0.0646447
-0.0646446
-0.0646446
-0.0646446
-0.0646446
-0.0646447
-0.0646446
-0.0646446
-0.0646446
-0.0646446
-0.0646446
-0.0646446
-0.0646446
-0.0646447
-0.0646446
-0.0646446
-0.0646446
)
;
    }
    cylinder
    {
        type            symmetryPlane;
        value           uniform 0;
    }
    defaultFaces
    {
        type            empty;
        value           nonuniform 0();
    }
}


// ************************************************************************* //

 

 

 

 

 

./ToolOpenFoamExample8/0/U

 

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*   Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt   *\
|  Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com   |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   nonuniform List<vector>
2000
(
(1.12465 -0.949025 2.16458e-026)
(1.11391 -0.789393 8.6977e-025)
(1.10498 -0.666939 0)
(1.09791 -0.570506 0)
(1.09225 -0.493185 0)
(1.08767 -0.430225 -5.52588e-025)
(1.08394 -0.378278 3.17664e-025)
(1.08089 -0.334915 0)
(1.07837 -0.298289 9.73936e-025)
(1.07632 -0.266796 0)
(1.27335 -0.926387 8.591e-025)
(1.23792 -0.770472 1.73027e-024)
(1.21008 -0.650899 0)
(1.18815 -0.556763 0)
(1.1706 -0.481303 0)
(1.15635 -0.419874 -2.52592e-025)
(1.14462 -0.369204 6.77463e-025)
(1.13487 -0.326932 0)
(1.12672 -0.291317 1.00491e-024)
(1.11995 -0.26106 6.40294e-025)
(1.41675 -0.880845 9.07788e-025)
(1.35747 -0.732494 -6.80801e-027)
(1.31139 -0.618747 7.96306e-025)
(1.27513 -0.529208 -1.30671e-024)
(1.24611 -0.457437 7.76472e-025)
(1.22252 -0.399014 -2.27262e-025)
(1.20307 -0.350824 2.96584e-025)
(1.18682 -0.310634 5.4214e-025)
(1.17303 -0.27684 -1.09989e-024)
(1.1611 -0.248337 0)
(1.5513 -0.813482 -9.39381e-025)
(1.46962 -0.67637 -9.59788e-025)
(1.40642 -0.571252 9.72488e-025)
(1.35672 -0.488508 -8.35593e-025)
(1.31695 -0.422176 1.19151e-024)
(1.28463 -0.368157 0)
(1.258 -0.323553 8.46477e-025)
(1.23575 -0.286263 8.61799e-025)
(1.21693 -0.254726 -1.12475e-024)
(1.20075 -0.227732 0)
(1.67366 -0.725933 -4.82317e-025)
(1.5716 -0.603464 3.57702e-026)
(1.49282 -0.50958 1.05831e-025)
(1.4309 -0.435674 1.32707e-025)
(1.38138 -0.376415 0)
(1.34117 -0.32813 0)
(1.30806 -0.288216 0)
(1.28048 -0.25478 -1.99564e-025)
(1.25724 -0.226408 2.10286e-025)
(1.23747 -0.202011 -1.79473e-025)
(1.78078 -0.620339 5.1355e-025)
(1.66087 -0.515564 -5.19458e-025)
(1.56845 -0.435248 5.27978e-025)
(1.49585 -0.37202 1.10182e-025)
(1.43781 -0.321313 6.80453e-025)
(1.3907 -0.279979 -5.6721e-025)
(1.35197 -0.245785 -5.83468e-025)
(1.31976 -0.217115 1.65761e-025)
(1.29271 -0.192766 -9.06521e-029)
(1.26981 -0.171824 -4.44763e-025)
(1.86999 -0.499293 5.27806e-025)
(1.73521 -0.414832 -5.31278e-025)
(1.63143 -0.350092 5.04338e-025)
(1.54993 -0.299123 -4.33279e-026)
(1.4848 -0.258242 5.61814e-025)
(1.43197 -0.224909 -5.76159e-025)
(1.38856 -0.197327 -5.91966e-025)
(1.35251 -0.174198 0)
(1.32229 -0.15456 1.37716e-025)
(1.29676 -0.137688 -6.54788e-025)
(1.93905 -0.365783 8.06642e-025)
(1.79275 -0.303754 0)
(1.68018 -0.256212 0)
(1.59179 -0.218781 3.13365e-026)
(1.52118 -0.188757 -3.13068e-029)
[...]
(1.14579 0.00581047 1.34385e-025)
(1.15054 0.00476382 1.35252e-025)
(1.15455 0.00374834 3.44951e-026)
(1.15773 0.00275502 -3.41163e-026)
(1.16 0.00176899 -1.20166e-028)
(1.16129 0.000781472 -8.99688e-030)
(1.12113 0.00327235 -4.11146e-027)
(1.12817 0.00298933 0)
(1.13492 0.00265896 0)
(1.14105 0.00229679 0)
(1.14645 0.0019258 0)
(1.15104 0.00156342 -6.76216e-026)
(1.15478 0.00121716 -1.01074e-025)
(1.15766 0.000886447 -3.40097e-026)
(1.15968 0.000566785 -1.45193e-028)
(1.16083 0.000252803 -1.17315e-029)
)
;

boundaryField
{
    down
    {
        type            symmetryPlane;
    }
    right
    {
        type            zeroGradient;
    }
    up
    {
        type            symmetryPlane;
    }
    left
    {
        type            uniformFixedValue;
        uniformValue    constant (1 0 0);
    }
    cylinder
    {
        type            symmetryPlane;
    }
    defaultFaces
    {
        type            empty;
    }
}


// ************************************************************************* //

 

 

 

 

 

Go back to Richel Bilderbeek's OpenFOAM page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml