Re: [Nek5000-users] Nek5000-users Digest, Vol 88, Issue 5
Hi Mansi, You can find the updated "mshconvert.py" in the attachment. You can run the script for your case likes ### $ ipython In [1]: from mshconvert import * Converting from ANSYS Fluent format (.msh) to Nek5000, semtex or FEniCS format In [2]: convert('mesh_hexa_final.msh', bcs={10:'W',11:'v',12:'v',13:'O'}) ... ### Here I assume that BC "W" is on zone 10, "v" is on zones 11 and 12, and 'O' on zone 13. The snapshot for the Nek5000 mesh using visit is also attached in the email. /Jing ________________________________________ From: [email protected] <[email protected]> on behalf of [email protected] <[email protected]> Sent: Monday, June 6, 2016 22:09 To: [email protected] Subject: Nek5000-users Digest, Vol 88, Issue 5 Send Nek5000-users mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Nek5000-users digest..." Today's Topics: 1. Re: Nek5000-users Digest, Vol 88, Issue 4, Problem creating .rea file ([email protected]) ---------------------------------------------------------------------- Message: 1 Date: Mon, 6 Jun 2016 19:58:31 +0000 From: [email protected] To: "[email protected]" <[email protected]> Subject: Re: [Nek5000-users] Nek5000-users Digest, Vol 88, Issue 4, Problem creating .rea file Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" Hello all, Thanks jing, that was a lot helpful to me. I have generated the .msh file for the hexahedral mesh for my geometry. File is attached to this mail. I have given boundary condition in this file only let me know if there are any changes to be made and file has only one zone( if by one zone you mean only 1 type of mesh through out whole geometry). Questions: 1) Users, what are other ways to convert (Icem cfd) .msh file to .rea file? 2) is there any way to smooth hexahedral mesh for unstructured geometry? Thanks, Mansi Patel ________________________________ From: [email protected] <[email protected]> on behalf of [email protected] <[email protected]> Sent: Friday, June 3, 2016 1:00 PM To: [email protected] Subject: Nek5000-users Digest, Vol 88, Issue 4 Send Nek5000-users mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Nek5000-users digest..." Today's Topics: 1. Re: Nek5000-users Digest, Vol 88, Issue 3 ([email protected]) ---------------------------------------------------------------------- Message: 1 Date: Thu, 2 Jun 2016 21:21:13 +0000 From: [email protected] To: "[email protected]" <[email protected]> Subject: Re: [Nek5000-users] Nek5000-users Digest, Vol 88, Issue 3 Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" Hi Mansi, 1)what should I do to solve error? Right now mshconvert can only deal with single zone's case. So you should have to manually merge the multi-zone to single-zone in the .msh file. Also we found that there are few bugs in the file. Could you please send us your .msh file to test and then we will get back to you with the corrected version? 2)what are mesh types that we can use? Quadrant for 2D- and hexahedral for 3D-cases. 3) I there any other easy way to convert .msh file to .rea? I leave this question to other users. Thanks. Regards, Jing ________________________________________ From: [email protected] <[email protected]> on behalf of [email protected] <[email protected]> Sent: Thursday, June 2, 2016 19:17 To: [email protected] Subject: Nek5000-users Digest, Vol 88, Issue 3 Send Nek5000-users mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Nek5000-users digest..." Today's Topics: 1. problems in generating .rea file ([email protected]) ---------------------------------------------------------------------- Message: 1 Date: Thu, 2 Jun 2016 17:12:11 +0000 From: [email protected] To: "[email protected]" <[email protected]> Subject: [Nek5000-users] problems in generating .rea file Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" Hello all, I want to ask what type of mesh does Nek5000 accept? tetrahedral, hexahedral,etc? Because I am using ICEM CFD for generating mesh which has extension .msh and for that I used python code given for mshconvert to convert into .rea file but I am getting error. the error image is attached. Please let me know following questions 1)what should I do to solve error? 2)what are mesh types that we can use? 3) I there any other easy way to convert .msh file to .rea? Thanks, any help would be appreciated. Thanks, Mansi Patel
Hello Jing, Recently I am also working on converting fluent mesh to nek5000. I have generated the *msh from gambit, then using the mshconvert.py tool to convert a simple mesh with a circular cylinder inside a square. simply, I can get the *rea file with circle of the "W", "v" and "O". but I have met two problems; 1. to impose the periodic boundary conditons: in the script, it strongly recommend to impose "P" through the script, then how to setup it in mshconvert.py? the way convert('mesh.msh', bcs={1:'W',2:'v',3:'O',4:'P', 5:'P'}) can generate the rea field but failed in the step of genmap. so how to treat boundary 4 and 5 as periodic BCs? 2. about the curved wall. there is no problem to define a circle by "Circle" command, but if I want to using "m" to define a spline curve, how to seed middle points? I know in Gambit I can mesh the line using 3 node, I defined 3 node mode to mesh a circle, and using "m" instead of "circle", however, it failed to generate the rea file. the circle merged into a point, then what should I do to active the spline curve? Thanks! Wei 2016-06-08 15:46 GMT+02:00 <[email protected]>:
Hi Mansi,
You can find the updated "mshconvert.py" in the attachment. You can run the script for your case likes
### $ ipython
In [1]: from mshconvert import * Converting from ANSYS Fluent format (.msh) to Nek5000, semtex or FEniCS format
In [2]: convert('mesh_hexa_final.msh', bcs={10:'W',11:'v',12:'v',13:'O'}) ... ###
Here I assume that BC "W" is on zone 10, "v" is on zones 11 and 12, and 'O' on zone 13.
The snapshot for the Nek5000 mesh using visit is also attached in the email.
/Jing
________________________________________ From: [email protected] < [email protected]> on behalf of [email protected] < [email protected]> Sent: Monday, June 6, 2016 22:09 To: [email protected] Subject: Nek5000-users Digest, Vol 88, Issue 5
Send Nek5000-users mailing list submissions to [email protected]
To subscribe or unsubscribe via the World Wide Web, visit https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users or, via email, send a message with subject or body 'help' to [email protected]
You can reach the person managing the list at [email protected]
When replying, please edit your Subject line so it is more specific than "Re: Contents of Nek5000-users digest..."
Today's Topics:
1. Re: Nek5000-users Digest, Vol 88, Issue 4, Problem creating .rea file ([email protected])
----------------------------------------------------------------------
Message: 1 Date: Mon, 6 Jun 2016 19:58:31 +0000 From: [email protected] To: "[email protected]" <[email protected]> Subject: Re: [Nek5000-users] Nek5000-users Digest, Vol 88, Issue 4, Problem creating .rea file Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1"
Hello all,
Thanks jing, that was a lot helpful to me.
I have generated the .msh file for the hexahedral mesh for my geometry. File is attached to this mail.
I have given boundary condition in this file only let me know if there are any changes to be made and file has only one zone( if by one zone you mean only 1 type of mesh through out whole geometry).
Questions:
1) Users, what are other ways to convert (Icem cfd) .msh file to .rea file?
2) is there any way to smooth hexahedral mesh for unstructured geometry?
Thanks,
Mansi Patel
________________________________ From: [email protected] < [email protected]> on behalf of [email protected] < [email protected]> Sent: Friday, June 3, 2016 1:00 PM To: [email protected] Subject: Nek5000-users Digest, Vol 88, Issue 4
Send Nek5000-users mailing list submissions to [email protected]
To subscribe or unsubscribe via the World Wide Web, visit https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users or, via email, send a message with subject or body 'help' to [email protected]
You can reach the person managing the list at [email protected]
When replying, please edit your Subject line so it is more specific than "Re: Contents of Nek5000-users digest..."
Today's Topics:
1. Re: Nek5000-users Digest, Vol 88, Issue 3 ([email protected])
----------------------------------------------------------------------
Message: 1 Date: Thu, 2 Jun 2016 21:21:13 +0000 From: [email protected] To: "[email protected]" <[email protected]> Subject: Re: [Nek5000-users] Nek5000-users Digest, Vol 88, Issue 3 Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1"
Hi Mansi,
1)what should I do to solve error?
Right now mshconvert can only deal with single zone's case. So you should have to manually merge the multi-zone to single-zone in the .msh file.
Also we found that there are few bugs in the file. Could you please send us your .msh file to test and then we will get back to you with the corrected version?
2)what are mesh types that we can use? Quadrant for 2D- and hexahedral for 3D-cases.
3) I there any other easy way to convert .msh file to .rea? I leave this question to other users.
Thanks.
Regards, Jing ________________________________________ From: [email protected] < [email protected]> on behalf of [email protected] < [email protected]> Sent: Thursday, June 2, 2016 19:17 To: [email protected] Subject: Nek5000-users Digest, Vol 88, Issue 3
Send Nek5000-users mailing list submissions to [email protected]
To subscribe or unsubscribe via the World Wide Web, visit https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users or, via email, send a message with subject or body 'help' to [email protected]
You can reach the person managing the list at [email protected]
When replying, please edit your Subject line so it is more specific than "Re: Contents of Nek5000-users digest..."
Today's Topics:
1. problems in generating .rea file ([email protected])
----------------------------------------------------------------------
Message: 1 Date: Thu, 2 Jun 2016 17:12:11 +0000 From: [email protected] To: "[email protected]" <[email protected]> Subject: [Nek5000-users] problems in generating .rea file Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1"
Hello all,
I want to ask what type of mesh does Nek5000 accept? tetrahedral, hexahedral,etc?
Because I am using ICEM CFD for generating mesh which has extension .msh and for that I used python code given for mshconvert to convert into .rea file but I am getting error. the error image is attached.
Please let me know following questions
1)what should I do to solve error?
2)what are mesh types that we can use?
3) I there any other easy way to convert .msh file to .rea?
Thanks, any help would be appreciated.
Thanks,
Mansi Patel
participants (1)
-
nek5000-users@lists.mcs.anl.gov