[Nek5000-users] periodic boundary conditions in mshconvert.py
nek5000-users at lists.mcs.anl.gov
nek5000-users at lists.mcs.anl.gov
Wed Feb 28 02:36:56 CST 2018
Hello Neks:
I‘m trying to use the mshconvert.py to get a periodic bc. I put in
convert('test.msh',periodic_dx={(3,4):[0.0,3.0]},bcs={5:'O',6:'v'}). But
there is always a mistake:
Traceback (most recent call last):
File "<ipython-input-93-7345a535cf67>", line 1, in <module>
convert('test.msh',periodic_dx={(3,4):[0.0,3.0]},bcs={5:'O',6:'v'})
File "C:/Users/Administrator/Desktop/test/mshconvert.py", line 1477, in
convert
create_boundary_section(bcs, temperature, passive_scalars, mesh_format)
File "C:/Users/Administrator/Desktop/test/mshconvert.py", line 668, in
create_boundary_section
periodic_cell_face_map[(c, local_face)]
KeyError: (1, 2)
The .msh file is the most simple one:
(0 "GAMBIT to Fluent File")
(0 "Dimension:")
(2 2)
(10 (0 1 8 1 2))
(10 (1 1 8 1 2)(
1.0000000000e+000 0.0000000000e+000
0.0000000000e+000 0.0000000000e+000
0.0000000000e+000 3.0000000000e+000
1.0000000000e+000 3.0000000000e+000
0.0000000000e+000 1.0000000000e+000
0.0000000000e+000 2.0000000000e+000
1.0000000000e+000 1.0000000000e+000
1.0000000000e+000 2.0000000000e+000
))
(0 "Faces:")
(13(0 1 a 0))
(13(3 1 1 4 0)(
2 1 2 0 1
))
(13(4 2 2 e 0)(
2 3 4 0 3
))
(13(5 3 5 25 0)(
2 1 7 1 0
2 7 8 2 0
2 8 4 3 0
))
(13(6 6 8 3 0)(
2 2 5 0 1
2 5 6 0 2
2 6 3 0 3
))
(13(8 9 a 2 0)(
2 7 5 1 2
2 8 6 2 3
))
(0 "Cells:")
(12 (0 1 3 0))
(12 (2 1 3 1 3))
(0 "Zones:")
(45 (2 fluid fluid)())
(45 (3 inlet-vent p2)())
(45 (4 fan p1)())
(45 (5 axis out)())
(45 (6 wall in)())
(45 (8 interior default-interior)())
Thank you!
Lily
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20180228/34a77f70/attachment.html>
More information about the Nek5000-users
mailing list