Skip to content

Commit 90875bd

Browse files
committed
first commit
0 parents  commit 90875bd

27 files changed

+86796
-0
lines changed

mshconvert/OScCyl

+9,091
Large diffs are not rendered by default.

mshconvert/OScCyl.msh

+11,351
Large diffs are not rendered by default.

mshconvert/OScCyl.xml

+7,689
Large diffs are not rendered by default.

mshconvert/OscCyl.msh

+11,270
Large diffs are not rendered by default.

mshconvert/OscCyl.xml

+7,533
Large diffs are not rendered by default.

mshconvert/OscCylCoarse

+769
Large diffs are not rendered by default.

mshconvert/OscCylCoarse.msh

+517
Large diffs are not rendered by default.

mshconvert/README

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
To get started:
2+
3+
Unix> ipython
4+
5+
...
6+
[1]: from mshconvert import *
7+
[2]: convert('sirkel4.msh', curves={7:{'type':'C', 'radius':1, 'depth': 4, 'circle_center': (0, 0)}})
8+
9+
This will create the rea-file (sirkel.rea) that can be read by nek5000.
10+
11+
Note that this geometry is a circle and thus it has one circular boundary, number 7. The radius is 1. I choose to tranplant the curvature four elements into the geometry, hence 'depth': 4. This is completely necessary to create a decent boundary layer. 'circle_center': (0, 0) gives the location of the center of the circle that makes up the boundary. This is used to compute the radii of the inner facets.
12+
13+
Hope it works for you as well!
14+
15+
Mikael

mshconvert/dabla.msh

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
(0 "GAMBIT to Fluent File")
2+
(0 "Dimension:")
3+
(2 3)
4+
(10 (0 1 8 1 3))
5+
(10 (1 1 8 1 3)
6+
(
7+
0.0000000000e+00 0.0000000000e+00 0.0000000000e+00
8+
1.0000000000e+00 0.0000000000e+00 0.0000000000e+00
9+
0.0000000000e+00 1.0000000000e+00 0.0000000000e+00
10+
1.0000000000e+00 1.0000000000e+00 0.0000000000e+00
11+
0.0000000000e+00 0.0000000000e+00 1.0000000000e+00
12+
1.0000000000e+00 0.0000000000e+00 1.0000000000e+00
13+
0.0000000000e+00 1.0000000000e+00 1.0000000000e+00
14+
1.0000000000e+00 1.0000000000e+00 1.0000000000e+00
15+
))
16+
(0 "Faces:")
17+
(13 (0 1 c 0))
18+
(13 (3 1 c 2 0)(
19+
3 1 8 2 1 2
20+
3 4 8 1 1 4
21+
3 6 1 8 2 3
22+
3 1 8 5 3 5
23+
3 1 3 8 4 6
24+
3 7 1 8 5 6
25+
))
26+
(0 "Cells:")
27+
(12 (0 1 6 0))
28+
(12 (2 1 6 1 2))
29+
(0 "Zones:")
30+
(45 (2 fluid blood)())
31+
(45 (3 interior default-interior)())

0 commit comments

Comments
 (0)