<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="">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.msh',curves={13:{'type': 'm'},14:{'type': 'm'},15:{'type': 'm'}},bcs={13:'W',14:'W',15:'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/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/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=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Aug 10, 2017, at 10:41 AM, <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="">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.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" 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>