<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Dear Nicolas,
<div class=""><br class="">
</div>
<div class="">I think it will be helpful if you email your 2D msh format.</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Marco<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Aug 10, 2017, at 1:03 PM, <a href="mailto:nek5000-users@lists.mcs.anl.gov" class="">
nek5000-users@lists.mcs.anl.gov</a> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class="">Dear Marco,<br class="">
<br class="">
</div>
I have actually very little experience with the script. Some people used it here (at KTH) for 2D and 3D wings and we never encountered such an issue.<br class="">
</div>
If you cannot get it to work for simple cases and if that helps, I can send you a simple 2D msh file that works. From there, you could compare the files format... I am sorry that I cannot help much more than that.<br class="">
<br class="">
</div>
Best,<br class="">
</div>
Nicolas<br class="">
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Thu, Aug 10, 2017 at 5:44 PM, <span dir="ltr" class="">
<<a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank" class="">nek5000-users@lists.mcs.anl.gov</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word" class="">Dear Nicolas,
<div class=""><br class="">
</div>
<div class="">thank you for your reply. We tested the python script on different meshes to get familiar with it before diving into our working mesh. We can generate a rea file with velocity and temperature boundary conditions fine. However, whenever we try
 to use the curved side option we get the following error message:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin:0px;line-height:normal;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)" class="">
<span style="font-variant-ligatures:no-common-ligatures" class="">Traceback (most recent call last):</span></div>
<div style="margin:0px;line-height:normal;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)" class="">
<span style="font-variant-ligatures:no-common-ligatures" class="">  File "makemesh.py", line 6, in <module></span></div>
<div style="margin:0px;line-height:normal;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)" class="">
<span style="font-variant-ligatures:no-common-ligatures" class="">    convert('Single-Pitch-Mesh.<wbr class="">msh',curves={13:{'type': 'm'},14:{'type': 'm'},15:{'type': 'm'}},bcs={13:'W',14:'W',15:'<wbr class="">W',16:'O',17:'v'})</span></div>
<div style="margin:0px;line-height:normal;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)" class="">
<span style="font-variant-ligatures:no-common-ligatures" class="">  File "/Users/v9g/Documents/Nek5000/<wbr class="">mshconvert.py", line 1525, in convert</span></div>
<div style="margin:0px;line-height:normal;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)" class="">
<span style="font-variant-ligatures:no-common-ligatures" class="">    read_curved_sides(curves)</span></div>
<div style="margin:0px;line-height:normal;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)" class="">
<span style="font-variant-ligatures:no-common-ligatures" class="">  File "/Users/v9g/Documents/Nek5000/<wbr class="">mshconvert.py", line 751, in read_curved_sides</span></div>
<div style="margin:0px;line-height:normal;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)" class="">
<span style="font-variant-ligatures:no-common-ligatures" class="">    cell_face_m.append((cell, face_map[cell][(nds[0], nds[1])], face_number)) </span></div>
<div style="margin:0px;line-height:normal;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)" class="">
<span style="font-variant-ligatures:no-common-ligatures" class="">KeyError: (20355, 20211)</span></div>
</div>
<div class=""><br class="">
</div>
<div class="">I am not sure how to proceed next, besides digging in the source code and try to resolve this error. We are currently trying to debug on a simpler geometry with curved boundaries, but we would really appreciate any help.</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
</div>
<div class="">Marco</div>
<div class="">
<div class="h5">
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Aug 10, 2017, at 10:41 AM, <a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank" class="">
nek5000-users@lists.mcs.anl.<wbr class="">gov</a> wrote:</div>
<br class="m_-2443849625363306073Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">Dear Tommy,<br class="">
<br class="">
</div>
Besides the short REAMDE file, there is a detailed explanation on how to use the script at the end of the file 'mshconvert.py' (starting from line 1385).<br class="">
</div>
<div class="">Basically, you need to identify the IDs of the curved boundaries in the .msh file and give it a Nek type (either midpoint 'm' or curve 'C' + some info: I think that only the radius is required, the rest is optional) and pass this info to the script
 in the form of a Python dictionary called 'curves'.<br class="">
</div>
<div class="">If the problem persists, feel free to share some details about the error that you get.<br class="">
<br class="">
</div>
<div class="">Best,<br class="">
</div>
<div class="">Nicolas<br class="">
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Wed, Aug 9, 2017 at 10:43 PM, <span dir="ltr" class="">
<<a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank" class="">nek5000-users@lists.mcs.anl.<wbr class="">gov</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif" class="">
<p class="">Greetings,<br class="">
</p>
<p class=""><br class="">
</p>
<p class="">I am trying to use the mshconvert script to produce a rea file for a helical geometry. I am running into errors when I try to define the boundaries that have curved surfaces. Has anyone used it to generate a rea file with curved data?<br class="">
</p>
<p class=""><br class="">
</p>
<p class="">Thanks,<br class="">
</p>
<p class=""><br class="">
</p>
<p class="">Tommy<br class="">
</p>
</div>
<br class="">
______________________________<wbr class="">_________________<br class="">
Nek5000-users mailing list<br class="">
<a href="mailto:Nek5000-users@lists.mcs.anl.gov" target="_blank" class="">Nek5000-users@lists.mcs.anl.go<wbr class="">v</a><br class="">
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" rel="noreferrer" target="_blank" class="">https://lists.mcs.anl.gov/mail<wbr class="">man/listinfo/nek5000-users</a><br class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
______________________________<wbr class="">_________________<br class="">
Nek5000-users mailing list<br class="">
<a href="mailto:Nek5000-users@lists.mcs.anl.gov" target="_blank" class="">Nek5000-users@lists.mcs.anl.<wbr class="">gov</a><br class="">
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" target="_blank" class="">https://lists.mcs.anl.gov/<wbr class="">mailman/listinfo/nek5000-users</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
<br class="">
______________________________<wbr class="">_________________<br class="">
Nek5000-users mailing list<br class="">
<a href="mailto:Nek5000-users@lists.mcs.anl.gov" class="">Nek5000-users@lists.mcs.anl.<wbr class="">gov</a><br class="">
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" rel="noreferrer" target="_blank" class="">https://lists.mcs.anl.gov/<wbr class="">mailman/listinfo/nek5000-users</a><br class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
_______________________________________________<br class="">
Nek5000-users mailing list<br class="">
<a href="mailto:Nek5000-users@lists.mcs.anl.gov" class="">Nek5000-users@lists.mcs.anl.gov</a><br class="">
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>