<div dir="ltr"><div><div><div><div>Dear Marco,<br><br></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></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><br></div>Best,<br></div>Nicolas<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 10, 2017 at 5:44 PM, <span dir="ltr"><<a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">nek5000-users@lists.mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Dear Nicolas,
<div><br>
</div>
<div>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><br>
</div>
<div>
<div style="margin:0px;line-height:normal;font-family:Courier;color:rgb(76,47,45);background-color:rgb(223,219,196)">
<span style="font-variant-ligatures:no-common-ligatures">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)">
<span style="font-variant-ligatures:no-common-ligatures"> 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)">
<span style="font-variant-ligatures:no-common-ligatures"> convert('Single-Pitch-Mesh.<wbr>msh',curves={13:{'type': 'm'},14:{'type': 'm'},15:{'type': 'm'}},bcs={13:'W',14:'W',15:'<wbr>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)">
<span style="font-variant-ligatures:no-common-ligatures"> File "/Users/v9g/Documents/Nek5000/<wbr>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)">
<span style="font-variant-ligatures:no-common-ligatures"> 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)">
<span style="font-variant-ligatures:no-common-ligatures"> File "/Users/v9g/Documents/Nek5000/<wbr>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)">
<span style="font-variant-ligatures:no-common-ligatures"> 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)">
<span style="font-variant-ligatures:no-common-ligatures">KeyError: (20355, 20211)</span></div>
</div>
<div><br>
</div>
<div>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><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Marco</div><div><div class="h5">
<div><br>
<div>
<blockquote type="cite">
<div>On Aug 10, 2017, at 10:41 AM, <a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">
nek5000-users@lists.mcs.anl.<wbr>gov</a> wrote:</div>
<br class="m_-2443849625363306073Apple-interchange-newline">
<div>
<div dir="ltr">
<div>
<div>Dear Tommy,<br>
<br>
</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>
</div>
<div>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>
</div>
<div>If the problem persists, feel free to share some details about the error that you get.<br>
<br>
</div>
<div>Best,<br>
</div>
<div>Nicolas<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Aug 9, 2017 at 10:43 PM, <span dir="ltr">
<<a href="mailto:nek5000-users@lists.mcs.anl.gov" target="_blank">nek5000-users@lists.mcs.anl.<wbr>gov</a>></span> wrote:<br>
<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">
<p>Greetings,<br>
</p>
<p><br>
</p>
<p>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>
</p>
<p><br>
</p>
<p>Thanks,<br>
</p>
<p><br>
</p>
<p>Tommy<br>
</p>
</div>
<br>
______________________________<wbr>_________________<br>
Nek5000-users mailing list<br>
<a href="mailto:Nek5000-users@lists.mcs.anl.gov" target="_blank">Nek5000-users@lists.mcs.anl.go<wbr>v</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" rel="noreferrer" target="_blank">https://lists.mcs.anl.gov/mail<wbr>man/listinfo/nek5000-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
______________________________<wbr>_________________<br>
Nek5000-users mailing list<br>
<a href="mailto:Nek5000-users@lists.mcs.anl.gov" target="_blank">Nek5000-users@lists.mcs.anl.<wbr>gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" target="_blank">https://lists.mcs.anl.gov/<wbr>mailman/listinfo/nek5000-users</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div></div></div>
<br>______________________________<wbr>_________________<br>
Nek5000-users mailing list<br>
<a href="mailto:Nek5000-users@lists.mcs.anl.gov">Nek5000-users@lists.mcs.anl.<wbr>gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" rel="noreferrer" target="_blank">https://lists.mcs.anl.gov/<wbr>mailman/listinfo/nek5000-users</a><br>
<br></blockquote></div><br></div>