Skip to content

Commit be4f563

Browse files
committed
OpenFOAM example working
1 parent 8710803 commit be4f563

25 files changed

Lines changed: 2354 additions & 1419 deletions

examples/openfoam/DH1_run/0/U

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
| ========= | |
3+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+
| \\ / O peration | Version: 2.3.1 |
5+
| \\ / A nd | Web: www.OpenFOAM.org |
6+
| \\/ M anipulation | |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volVectorField;
13+
object U;
14+
}
15+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16+
17+
dimensions [0 1 -1 0 0 0 0];
18+
19+
internalField uniform (0 0 0);
20+
21+
boundaryField
22+
{
23+
24+
inlet
25+
{
26+
type fixedValue;
27+
value uniform (1 0 0);
28+
}
29+
30+
outlet
31+
{
32+
type inletOutlet;
33+
inletValue uniform (0 0 0);
34+
value uniform (0 0 0);
35+
}
36+
37+
obstacle
38+
{
39+
type fixedValue;
40+
value uniform (0 0 0);
41+
}
42+
43+
#include "boundary"
44+
}
45+
46+
// ************************************************************************* //
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class file;
6+
object boundary;
7+
}
8+
top
9+
{
10+
type symmetryPlane;
11+
}
12+
13+
bottom
14+
{
15+
type symmetryPlane;
16+
}
17+
18+
front
19+
{
20+
type cyclic;
21+
}
22+
23+
back
24+
{
25+
type cyclic;
26+
}
27+
28+
29+

examples/openfoam/DH1_run/0/k

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
| ========= | |
3+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+
| \\ / O peration | Version: 2.3.1 |
5+
| \\ / A nd | Web: www.OpenFOAM.org |
6+
| \\/ M anipulation | |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volScalarField;
13+
object k;
14+
}
15+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16+
17+
dimensions [0 2 -2 0 0 0 0];
18+
19+
internalField uniform 0.0022;
20+
21+
boundaryField
22+
{
23+
inlet
24+
{
25+
type fixedValue;
26+
value uniform 0.0022;
27+
}
28+
29+
outlet
30+
{
31+
type zeroGradient;
32+
}
33+
34+
obstacle
35+
{
36+
type kqRWallFunction;
37+
value uniform 0.0001;
38+
}
39+
40+
#include "boundary"
41+
42+
}
43+
44+
45+
// ************************************************************************* //

examples/openfoam/DH1_run/0/nut

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
| ========= | |
3+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+
| \\ / O peration | Version: 2.3.1 |
5+
| \\ / A nd | Web: www.OpenFOAM.org |
6+
| \\/ M anipulation | |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volScalarField;
13+
object nut;
14+
}
15+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16+
17+
dimensions [0 2 -1 0 0 0 0];
18+
19+
internalField uniform 0;
20+
21+
boundaryField
22+
{
23+
obstacle
24+
{
25+
type nutkWallFunction;
26+
value uniform 0;
27+
}
28+
29+
inlet
30+
{
31+
type zeroGradient;
32+
}
33+
34+
outlet
35+
{
36+
type zeroGradient;
37+
}
38+
39+
#include "boundary"
40+
}
41+
42+
// ************************************************************************* //

examples/openfoam/DH1_run/0/omega

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
| ========= | |
3+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+
| \\ / O peration | Version: 2.3.1 |
5+
| \\ / A nd | Web: www.OpenFOAM.org |
6+
| \\/ M anipulation | |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volScalarField;
13+
object omega;
14+
}
15+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16+
17+
dimensions [0 0 -1 0 0 0 0];
18+
19+
internalField uniform 0.0808;
20+
21+
boundaryField
22+
{
23+
inlet
24+
{
25+
type fixedValue;
26+
value uniform 0.0808;
27+
}
28+
29+
outlet
30+
{
31+
type zeroGradient;
32+
}
33+
34+
obstacle
35+
{
36+
type omegaWallFunction;
37+
value uniform 0.0001;
38+
}
39+
40+
#include "boundary"
41+
42+
}
43+
44+
45+
// ************************************************************************* //

examples/openfoam/DH1_run/0/p

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
| ========= | |
3+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+
| \\ / O peration | Version: 2.3.1 |
5+
| \\ / A nd | Web: www.OpenFOAM.org |
6+
| \\/ M anipulation | |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class volScalarField;
13+
object p;
14+
}
15+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16+
17+
dimensions [0 2 -2 0 0 0 0];
18+
19+
internalField uniform 0;
20+
21+
boundaryField
22+
{
23+
inlet
24+
{
25+
type zeroGradient;
26+
}
27+
28+
outlet
29+
{
30+
type fixedValue;
31+
value uniform 0;
32+
}
33+
34+
obstacle
35+
{
36+
type zeroGradient;
37+
}
38+
39+
#include "boundary"
40+
}
41+
42+
// ************************************************************************* //
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/*--------------------------------*- C++ -*----------------------------------*\
2+
| ========= | |
3+
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
4+
| \\ / O peration | Version: 5.x |
5+
| \\ / A nd | Web: www.OpenFOAM.org |
6+
| \\/ M anipulation | |
7+
\*---------------------------------------------------------------------------*/
8+
FoamFile
9+
{
10+
version 2.0;
11+
format ascii;
12+
class polyBoundaryMesh;
13+
location "constant/polyMesh";
14+
object boundary;
15+
}
16+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17+
18+
7
19+
(
20+
inlet
21+
{
22+
type patch;
23+
nFaces 69;
24+
startFace 4728;
25+
}
26+
outlet
27+
{
28+
type patch;
29+
nFaces 69;
30+
startFace 4797;
31+
}
32+
top
33+
{
34+
type symmetryPlane;
35+
inGroups 1(symmetryPlane);
36+
nFaces 81;
37+
startFace 4866;
38+
}
39+
bottom
40+
{
41+
type symmetryPlane;
42+
inGroups 1(symmetryPlane);
43+
nFaces 81;
44+
startFace 4947;
45+
}
46+
obstacle
47+
{
48+
type wall;
49+
inGroups 1(wall);
50+
nFaces 36;
51+
startFace 5028;
52+
}
53+
front
54+
{
55+
type cyclic;
56+
inGroups 1(cyclic);
57+
nFaces 612;
58+
startFace 5064;
59+
matchTolerance 0.0001;
60+
transform unknown;
61+
neighbourPatch back;
62+
}
63+
back
64+
{
65+
type cyclic;
66+
inGroups 1(cyclic);
67+
nFaces 612;
68+
startFace 5676;
69+
matchTolerance 0.0001;
70+
transform unknown;
71+
neighbourPatch front;
72+
}
73+
)
74+
75+
// ************************************************************************* //
40.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)