<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hello Jing,</p>
<p>I tried your new python code for msh convert. I was able to read file successfully but not able to get .rea file. For my geometry I have following zones:</p>
<p><br>
</p>
<p></p>
<pre style="word-wrap: break-word; white-space: pre-wrap;">(0 "Zone Sections")
(39 (8 fluid CREATED_MATERIAL_6)())
(39 (9 interior int_CREATED_MATERIAL_6)())
(39 (10 wall W)())
(39 (11 velocity-inlet PA)())
(39 (12 velocity-inlet VEIN)())
(39 (13 pressure-outlet DA)())</pre>
<pre style="word-wrap: break-word; white-space: pre-wrap;">I have attached error file with this mail(error file name = error(1).png and msh file is mesh_hexa_final.msh).</pre>
<pre style="word-wrap: break-word; white-space: pre-wrap;">what other changes should I make to convert .msh file to .rea.</pre>
<pre style="word-wrap: break-word; white-space: pre-wrap;"><br></pre>
<pre style="word-wrap: break-word; white-space: pre-wrap;">Thanks,</pre>
<pre style="word-wrap: break-word; white-space: pre-wrap;">Mansi Patel</pre>
<br>
<p></p>
<p><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr style="display:inline-block; width:98%" tabindex="-1">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> nek5000-users-bounces@lists.mcs.anl.gov <nek5000-users-bounces@lists.mcs.anl.gov> on behalf of nek5000-users-request@lists.mcs.anl.gov <nek5000-users-request@lists.mcs.anl.gov><br>
<b>Sent:</b> Wednesday, June 8, 2016 12:18 PM<br>
<b>To:</b> nek5000-users@lists.mcs.anl.gov<br>
<b>Subject:</b> Nek5000-users Digest, Vol 88, Issue 8</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Send Nek5000-users mailing list submissions to<br>
nek5000-users@lists.mcs.anl.gov<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users" id="LPlnk732210" title="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
Ctrl+Click or tap to follow the link">
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
nek5000-users-request@lists.mcs.anl.gov<br>
<br>
You can reach the person managing the list at<br>
nek5000-users-owner@lists.mcs.anl.gov<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Nek5000-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Nek5000-users Digest, Vol 88, Issue 5<br>
(nek5000-users@lists.mcs.anl.gov)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 8 Jun 2016 18:15:42 +0200<br>
From: nek5000-users@lists.mcs.anl.gov<br>
To: nek5000-users@lists.mcs.anl.gov<br>
Subject: Re: [Nek5000-users] Nek5000-users Digest, Vol 88, Issue 5<br>
Message-ID:<br>
<mailman.23474.1465402725.24727.nek5000-users@lists.mcs.anl.gov><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello Jing,<br>
<br>
Recently I am also working on converting fluent mesh to nek5000. I have<br>
generated the *msh from gambit, then using the mshconvert.py tool to<br>
convert a simple mesh with a circular cylinder inside a square.<br>
<br>
simply, I can get the *rea file with circle of the "W", "v" and "O". but I<br>
have met two problems;<br>
<br>
1. to impose the periodic boundary conditons: in the script, it strongly<br>
recommend to impose "P" through the script, then how to setup it in<br>
mshconvert.py? the way<br>
<br>
convert('mesh.msh', bcs={1:'W',2:'v',3:'O',4:'P', 5:'P'})<br>
<br>
can generate the rea field but failed in the step of genmap. so how to<br>
treat boundary 4 and 5 as periodic BCs?<br>
<br>
2. about the curved wall. there is no problem to define a circle by<br>
"Circle" command, but if I want to using "m" to define a spline curve, how<br>
to seed middle points? I know in Gambit I can mesh the line using 3 node, I<br>
defined 3 node mode to mesh a circle, and using "m" instead of "circle",<br>
however, it failed to generate the rea file. the circle merged into a<br>
point, then what should I do to active the spline curve?<br>
<br>
Thanks!<br>
<br>
Wei<br>
<br>
2016-06-08 15:46 GMT+02:00 <nek5000-users@lists.mcs.anl.gov>:<br>
<br>
> Hi Mansi,<br>
><br>
> You can find the updated "mshconvert.py" in the attachment. You can run<br>
> the script for your case likes<br>
><br>
> ###<br>
> $ ipython<br>
><br>
> In [1]: from mshconvert import *<br>
> Converting from ANSYS Fluent format (.msh) to Nek5000, semtex or FEniCS<br>
> format<br>
><br>
> In [2]: convert('mesh_hexa_final.msh', bcs={10:'W',11:'v',12:'v',13:'O'})<br>
> ...<br>
> ###<br>
><br>
> Here I assume that BC "W" is on zone 10, "v" is on zones 11 and 12, and<br>
> 'O' on zone 13.<br>
><br>
> The snapshot for the Nek5000 mesh using visit is also attached in the<br>
> email.<br>
><br>
> /Jing<br>
><br>
><br>
> ________________________________________<br>
> From: nek5000-users-bounces@lists.mcs.anl.gov <<br>
> nek5000-users-bounces@lists.mcs.anl.gov> on behalf of<br>
> nek5000-users-request@lists.mcs.anl.gov <<br>
> nek5000-users-request@lists.mcs.anl.gov><br>
> Sent: Monday, June 6, 2016 22:09<br>
> To: nek5000-users@lists.mcs.anl.gov<br>
> Subject: Nek5000-users Digest, Vol 88, Issue 5<br>
><br>
> Send Nek5000-users mailing list submissions to<br>
> nek5000-users@lists.mcs.anl.gov<br>
><br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br>
> or, via email, send a message with subject or body 'help' to<br>
> nek5000-users-request@lists.mcs.anl.gov<br>
><br>
> You can reach the person managing the list at<br>
> nek5000-users-owner@lists.mcs.anl.gov<br>
><br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of Nek5000-users digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
> 1. Re: Nek5000-users Digest, Vol 88, Issue 4, Problem creating<br>
> .rea file (nek5000-users@lists.mcs.anl.gov)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Mon, 6 Jun 2016 19:58:31 +0000<br>
> From: nek5000-users@lists.mcs.anl.gov<br>
> To: "nek5000-users@lists.mcs.anl.gov"<br>
> <nek5000-users@lists.mcs.anl.gov><br>
> Subject: Re: [Nek5000-users] Nek5000-users Digest, Vol 88, Issue 4,<br>
> Problem creating .rea file<br>
> Message-ID:<br>
> <mailman.23344.1465243753.24727.nek5000-users@lists.mcs.anl.gov><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> Hello all,<br>
><br>
><br>
> Thanks jing, that was a lot helpful to me.<br>
><br>
> I have generated the .msh file for the hexahedral mesh for my geometry.<br>
> File is attached to this mail.<br>
><br>
><br>
> I have given boundary condition in this file only let me know if there are<br>
> any changes to be made and file has only one zone( if by one zone you mean<br>
> only 1 type of mesh through out whole geometry).<br>
><br>
><br>
> Questions:<br>
><br>
> 1) Users, what are other ways to convert (Icem cfd) .msh file to .rea<br>
> file?<br>
><br>
> 2) is there any way to smooth hexahedral mesh for unstructured geometry?<br>
><br>
><br>
> Thanks,<br>
><br>
> Mansi Patel<br>
><br>
><br>
> ________________________________<br>
> From: nek5000-users-bounces@lists.mcs.anl.gov <<br>
> nek5000-users-bounces@lists.mcs.anl.gov> on behalf of<br>
> nek5000-users-request@lists.mcs.anl.gov <<br>
> nek5000-users-request@lists.mcs.anl.gov><br>
> Sent: Friday, June 3, 2016 1:00 PM<br>
> To: nek5000-users@lists.mcs.anl.gov<br>
> Subject: Nek5000-users Digest, Vol 88, Issue 4<br>
><br>
> Send Nek5000-users mailing list submissions to<br>
> nek5000-users@lists.mcs.anl.gov<br>
><br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br>
> or, via email, send a message with subject or body 'help' to<br>
> nek5000-users-request@lists.mcs.anl.gov<br>
><br>
> You can reach the person managing the list at<br>
> nek5000-users-owner@lists.mcs.anl.gov<br>
><br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of Nek5000-users digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
> 1. Re: Nek5000-users Digest, Vol 88, Issue 3<br>
> (nek5000-users@lists.mcs.anl.gov)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Thu, 2 Jun 2016 21:21:13 +0000<br>
> From: nek5000-users@lists.mcs.anl.gov<br>
> To: "nek5000-users@lists.mcs.anl.gov"<br>
> <nek5000-users@lists.mcs.anl.gov><br>
> Subject: Re: [Nek5000-users] Nek5000-users Digest, Vol 88, Issue 3<br>
> Message-ID:<br>
> <mailman.23169.1464902611.24727.nek5000-users@lists.mcs.anl.gov><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> Hi Mansi,<br>
><br>
> 1)what should I do to solve error?<br>
><br>
> Right now mshconvert can only deal with single zone's case. So you should<br>
> have to manually merge the multi-zone to single-zone in the .msh file.<br>
><br>
> Also we found that there are few bugs in the file. Could you please send<br>
> us your .msh file to test and then we will get back to you with the<br>
> corrected version?<br>
><br>
> 2)what are mesh types that we can use?<br>
> Quadrant for 2D- and hexahedral for 3D-cases.<br>
><br>
> 3) I there any other easy way to convert .msh file to .rea?<br>
> I leave this question to other users.<br>
><br>
> Thanks.<br>
><br>
> Regards, Jing<br>
> ________________________________________<br>
> From: nek5000-users-bounces@lists.mcs.anl.gov <<br>
> nek5000-users-bounces@lists.mcs.anl.gov> on behalf of<br>
> nek5000-users-request@lists.mcs.anl.gov <<br>
> nek5000-users-request@lists.mcs.anl.gov><br>
> Sent: Thursday, June 2, 2016 19:17<br>
> To: nek5000-users@lists.mcs.anl.gov<br>
> Subject: Nek5000-users Digest, Vol 88, Issue 3<br>
><br>
> Send Nek5000-users mailing list submissions to<br>
> nek5000-users@lists.mcs.anl.gov<br>
><br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br>
> or, via email, send a message with subject or body 'help' to<br>
> nek5000-users-request@lists.mcs.anl.gov<br>
><br>
> You can reach the person managing the list at<br>
> nek5000-users-owner@lists.mcs.anl.gov<br>
><br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of Nek5000-users digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
> 1. problems in generating .rea file (nek5000-users@lists.mcs.anl.gov)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Thu, 2 Jun 2016 17:12:11 +0000<br>
> From: nek5000-users@lists.mcs.anl.gov<br>
> To: "nek5000-users@lists.mcs.anl.gov"<br>
> <nek5000-users@lists.mcs.anl.gov><br>
> Subject: [Nek5000-users] problems in generating .rea file<br>
> Message-ID:<br>
> <mailman.23153.1464887866.24727.nek5000-users@lists.mcs.anl.gov><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> Hello all,<br>
><br>
> I want to ask what type of mesh does Nek5000 accept? tetrahedral,<br>
> hexahedral,etc?<br>
><br>
> Because I am using ICEM CFD for generating mesh which has extension .msh<br>
> and for that I used python code given for mshconvert to convert into .rea<br>
> file but I am getting error. the error image is attached.<br>
><br>
> Please let me know following questions<br>
><br>
> 1)what should I do to solve error?<br>
><br>
> 2)what are mesh types that we can use?<br>
><br>
> 3) I there any other easy way to convert .msh file to .rea?<br>
><br>
><br>
> Thanks, any help would be appreciated.<br>
><br>
><br>
> Thanks,<br>
><br>
> Mansi Patel<br>
><br>
><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160602/aaf91e41/attachment.html">
http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160602/aaf91e41/attachment.html</a><br>
> ><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: error.png<br>
> Type: image/png<br>
> Size: 91392 bytes<br>
> Desc: error.png<br>
> URL: <<br>
> <a href="http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160602/aaf91e41/attachment.png">
http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160602/aaf91e41/attachment.png</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> _______________________________________________<br>
> Nek5000-users mailing list<br>
> Nek5000-users@lists.mcs.anl.gov<br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br>
><br>
><br>
> End of Nek5000-users Digest, Vol 88, Issue 3<br>
> ********************************************<br>
><br>
><br>
> ------------------------------<br>
><br>
> _______________________________________________<br>
> Nek5000-users mailing list<br>
> Nek5000-users@lists.mcs.anl.gov<br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br>
><br>
><br>
> End of Nek5000-users Digest, Vol 88, Issue 4<br>
> ********************************************<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<br>
> <a href="http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160606/e07ab762/attachment.html">
http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160606/e07ab762/attachment.html</a><br>
> ><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: mesh_hexa_final.msh<br>
> Type: application/octet-stream<br>
> Size: 24802571 bytes<br>
> Desc: mesh_hexa_final.msh<br>
> URL: <<br>
> <a href="http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160606/e07ab762/attachment.obj">
http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160606/e07ab762/attachment.obj</a><br>
> ><br>
><br>
> ------------------------------<br>
><br>
> _______________________________________________<br>
> Nek5000-users mailing list<br>
> Nek5000-users@lists.mcs.anl.gov<br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br>
><br>
><br>
> End of Nek5000-users Digest, Vol 88, Issue 5<br>
> ********************************************<br>
><br>
> _______________________________________________<br>
> Nek5000-users mailing list<br>
> Nek5000-users@lists.mcs.anl.gov<br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br>
><br>
><br>
<br>
<br>
-- <br>
<br>
Wei HE ??<br>
School of Aeronautics<br>
Universidad Polit?cnica de Madrid<br>
<a href="http://www.cfm.upm.es/">http://www.cfm.upm.es/</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160608/0c29485d/attachment.html">http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160608/0c29485d/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Nek5000-users mailing list<br>
Nek5000-users@lists.mcs.anl.gov<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br>
<br>
<br>
End of Nek5000-users Digest, Vol 88, Issue 8<br>
********************************************<br>
</div>
</span></font></div>
</div>
</body>
</html>