Skip to content

Commit 5a748df

Browse files
richahertBenjaminRodenberg
authored andcommitted
Add FEniCS-OpenFOAM tutorials perp-flap and cyl-flap (#38)
1 parent bebd329 commit 5a748df

File tree

98 files changed

+637088
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+637088
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Fluid
2+
!Fluid/0
3+
!Fluid/0.orig
4+
!Fluid/constant
5+
!Fluid/system
6+
!Fluid/Fluid.foam
7+
!Fluid/precice-adapter-config.yml
8+
Solid
9+
!Solid/cyl-flap.py
10+
!Solid/precice-adapter-config-fsi-s.json
11+
*.log
12+
precice-fenics-events.json
13+
precice-Fluid-events.json
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volVectorField;
6+
object U;
7+
}
8+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
9+
10+
dimensions [0 1 -1 0 0 0 0];
11+
12+
internalField uniform (0 0 0);
13+
14+
boundaryField
15+
{
16+
17+
cylinder
18+
{
19+
type noSlip;
20+
}
21+
22+
flap
23+
{
24+
type movingWallVelocity;
25+
value uniform (0 0 0);
26+
}
27+
28+
top
29+
{
30+
type noSlip;
31+
}
32+
33+
bottom
34+
{
35+
type noSlip;
36+
}
37+
38+
inlet
39+
{
40+
// Time-varying inlet velocity
41+
type uniformFixedValue;
42+
uniformValue table
43+
(
44+
( 0 ( 0 0 0 ) )
45+
( 2. ( 2. 0 0 ) )
46+
( 100 ( 2. 0 0 ) )
47+
);
48+
}
49+
50+
outlet
51+
{
52+
type zeroGradient;
53+
}
54+
55+
front
56+
{
57+
type empty;
58+
}
59+
back
60+
{
61+
type empty;
62+
}
63+
}
64+
65+
// ************************************************************************* //
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volScalarField;
6+
object p;
7+
}
8+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
9+
10+
dimensions [0 2 -2 0 0 0 0];
11+
12+
internalField uniform 0;
13+
14+
boundaryField
15+
{
16+
cylinder
17+
{
18+
type zeroGradient;
19+
}
20+
21+
flap
22+
{
23+
type zeroGradient;
24+
}
25+
26+
top
27+
{
28+
type zeroGradient;
29+
}
30+
31+
bottom
32+
{
33+
type zeroGradient;
34+
}
35+
36+
inlet
37+
{
38+
type zeroGradient;
39+
}
40+
41+
outlet
42+
{
43+
type fixedValue;
44+
value uniform 0;
45+
}
46+
47+
front
48+
{
49+
type empty;
50+
}
51+
back
52+
{
53+
type empty;
54+
}
55+
}
56+
57+
// ************************************************************************* //
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class pointVectorField;
6+
object pointDisplacement;
7+
}
8+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
9+
10+
dimensions [0 1 0 0 0 0 0];
11+
12+
internalField uniform (0 0 0);
13+
14+
boundaryField
15+
{
16+
inlet
17+
{
18+
type fixedValue;
19+
value uniform (0 0 0);
20+
}
21+
22+
outlet
23+
{
24+
type fixedValue;
25+
value uniform (0 0 0);
26+
}
27+
28+
cylinder
29+
{
30+
type fixedValue;
31+
value $internalField;
32+
}
33+
flap
34+
{
35+
type fixedValue;
36+
value $internalField;
37+
}
38+
39+
top
40+
{
41+
type slip;
42+
}
43+
44+
bottom
45+
{
46+
type slip;
47+
}
48+
front
49+
{
50+
type empty;
51+
}
52+
back
53+
{
54+
type empty;
55+
}
56+
}
57+
58+
// ************************************************************************* //
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volVectorField;
6+
location "0";
7+
object vorticity;
8+
}
9+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
10+
11+
dimensions [0 0 -1 0 0 0 0];
12+
13+
internalField uniform (0 0 0);
14+
15+
boundaryField
16+
{
17+
cylinder
18+
{
19+
type calculated;
20+
value uniform (0 0 0);
21+
}
22+
23+
flap
24+
{
25+
type calculated;
26+
value uniform (0 0 0);
27+
}
28+
29+
inlet
30+
{
31+
type calculated;
32+
value uniform (0 0 0);
33+
}
34+
35+
outlet
36+
{
37+
type calculated;
38+
value uniform (0 0 0);
39+
}
40+
41+
top
42+
{
43+
type calculated;
44+
value uniform (0 0 0);
45+
}
46+
47+
bottom
48+
{
49+
type calculated;
50+
value uniform (0 0 0);
51+
}
52+
53+
front
54+
{
55+
type empty;
56+
}
57+
back
58+
{
59+
type empty;
60+
}
61+
}
62+
63+
64+
// ************************************************************************* //
+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volVectorField;
6+
object U;
7+
}
8+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
9+
10+
dimensions [0 1 -1 0 0 0 0];
11+
12+
internalField uniform (0 0 0);
13+
14+
boundaryField
15+
{
16+
17+
cylinder
18+
{
19+
type noSlip;
20+
}
21+
22+
flap
23+
{
24+
type movingWallVelocity;
25+
value uniform (0 0 0);
26+
}
27+
28+
top
29+
{
30+
type noSlip;
31+
}
32+
33+
bottom
34+
{
35+
type noSlip;
36+
}
37+
38+
inlet
39+
{
40+
// Time-varying inlet velocity
41+
type uniformFixedValue;
42+
uniformValue table
43+
(
44+
( 0 ( 0 0 0 ) )
45+
( 2. ( 2. 0 0 ) )
46+
( 100 ( 2. 0 0 ) )
47+
);
48+
}
49+
50+
outlet
51+
{
52+
type zeroGradient;
53+
}
54+
55+
front
56+
{
57+
type empty;
58+
}
59+
back
60+
{
61+
type empty;
62+
}
63+
}
64+
65+
// ************************************************************************* //
+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volScalarField;
6+
object p;
7+
}
8+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
9+
10+
dimensions [0 2 -2 0 0 0 0];
11+
12+
internalField uniform 0;
13+
14+
boundaryField
15+
{
16+
cylinder
17+
{
18+
type zeroGradient;
19+
}
20+
21+
flap
22+
{
23+
type zeroGradient;
24+
}
25+
26+
top
27+
{
28+
type zeroGradient;
29+
}
30+
31+
bottom
32+
{
33+
type zeroGradient;
34+
}
35+
36+
inlet
37+
{
38+
type zeroGradient;
39+
}
40+
41+
outlet
42+
{
43+
type fixedValue;
44+
value uniform 0;
45+
}
46+
47+
front
48+
{
49+
type empty;
50+
}
51+
back
52+
{
53+
type empty;
54+
}
55+
}
56+
57+
// ************************************************************************* //

0 commit comments

Comments
 (0)