[Nek5000-users] Nek5000-users Digest, Vol 88, Issue 8

nek5000-users at lists.mcs.anl.gov nek5000-users at lists.mcs.anl.gov
Mon Jun 13 11:50:49 CDT 2016


Hello Jing,

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:


(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)())

I have attached error file with this mail(error file name = error(1).png and msh file is mesh_hexa_final.msh).

what other changes should I make to convert .msh file to .rea.


Thanks,

Mansi Patel




________________________________
From: nek5000-users-bounces at lists.mcs.anl.gov <nek5000-users-bounces at lists.mcs.anl.gov> on behalf of nek5000-users-request at lists.mcs.anl.gov <nek5000-users-request at lists.mcs.anl.gov>
Sent: Wednesday, June 8, 2016 12:18 PM
To: nek5000-users at lists.mcs.anl.gov
Subject: Nek5000-users Digest, Vol 88, Issue 8

Send Nek5000-users mailing list submissions to
        nek5000-users at lists.mcs.anl.gov

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
        nek5000-users-request at lists.mcs.anl.gov

You can reach the person managing the list at
        nek5000-users-owner at lists.mcs.anl.gov

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 5
      (nek5000-users at lists.mcs.anl.gov)


----------------------------------------------------------------------

Message: 1
Date: Wed, 8 Jun 2016 18:15:42 +0200
From: nek5000-users at lists.mcs.anl.gov
To: nek5000-users at lists.mcs.anl.gov
Subject: Re: [Nek5000-users] Nek5000-users Digest, Vol 88, Issue 5
Message-ID:
        <mailman.23474.1465402725.24727.nek5000-users at lists.mcs.anl.gov>
Content-Type: text/plain; charset="utf-8"

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 <nek5000-users at lists.mcs.anl.gov>:

> 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: nek5000-users-bounces at lists.mcs.anl.gov <
> nek5000-users-bounces at lists.mcs.anl.gov> on behalf of
> nek5000-users-request at lists.mcs.anl.gov <
> nek5000-users-request at lists.mcs.anl.gov>
> Sent: Monday, June 6, 2016 22:09
> To: nek5000-users at lists.mcs.anl.gov
> Subject: Nek5000-users Digest, Vol 88, Issue 5
>
> Send Nek5000-users mailing list submissions to
>         nek5000-users at lists.mcs.anl.gov
>
> 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
>         nek5000-users-request at lists.mcs.anl.gov
>
> You can reach the person managing the list at
>         nek5000-users-owner at lists.mcs.anl.gov
>
> 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 (nek5000-users at lists.mcs.anl.gov)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 6 Jun 2016 19:58:31 +0000
> From: nek5000-users at lists.mcs.anl.gov
> To: "nek5000-users at lists.mcs.anl.gov"
>         <nek5000-users at lists.mcs.anl.gov>
> Subject: Re: [Nek5000-users] Nek5000-users Digest, Vol 88, Issue 4,
>         Problem creating .rea file
> Message-ID:
>         <mailman.23344.1465243753.24727.nek5000-users at lists.mcs.anl.gov>
> 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: nek5000-users-bounces at lists.mcs.anl.gov <
> nek5000-users-bounces at lists.mcs.anl.gov> on behalf of
> nek5000-users-request at lists.mcs.anl.gov <
> nek5000-users-request at lists.mcs.anl.gov>
> Sent: Friday, June 3, 2016 1:00 PM
> To: nek5000-users at lists.mcs.anl.gov
> Subject: Nek5000-users Digest, Vol 88, Issue 4
>
> Send Nek5000-users mailing list submissions to
>         nek5000-users at lists.mcs.anl.gov
>
> 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
>         nek5000-users-request at lists.mcs.anl.gov
>
> You can reach the person managing the list at
>         nek5000-users-owner at lists.mcs.anl.gov
>
> 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
>       (nek5000-users at lists.mcs.anl.gov)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 2 Jun 2016 21:21:13 +0000
> From: nek5000-users at lists.mcs.anl.gov
> To: "nek5000-users at lists.mcs.anl.gov"
>         <nek5000-users at lists.mcs.anl.gov>
> Subject: Re: [Nek5000-users] Nek5000-users Digest, Vol 88, Issue 3
> Message-ID:
>         <mailman.23169.1464902611.24727.nek5000-users at lists.mcs.anl.gov>
> 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: nek5000-users-bounces at lists.mcs.anl.gov <
> nek5000-users-bounces at lists.mcs.anl.gov> on behalf of
> nek5000-users-request at lists.mcs.anl.gov <
> nek5000-users-request at lists.mcs.anl.gov>
> Sent: Thursday, June 2, 2016 19:17
> To: nek5000-users at lists.mcs.anl.gov
> Subject: Nek5000-users Digest, Vol 88, Issue 3
>
> Send Nek5000-users mailing list submissions to
>         nek5000-users at lists.mcs.anl.gov
>
> 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
>         nek5000-users-request at lists.mcs.anl.gov
>
> You can reach the person managing the list at
>         nek5000-users-owner at lists.mcs.anl.gov
>
> 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 (nek5000-users at lists.mcs.anl.gov)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 2 Jun 2016 17:12:11 +0000
> From: nek5000-users at lists.mcs.anl.gov
> To: "nek5000-users at lists.mcs.anl.gov"
>         <nek5000-users at lists.mcs.anl.gov>
> Subject: [Nek5000-users] problems in generating .rea file
> Message-ID:
>         <mailman.23153.1464887866.24727.nek5000-users at lists.mcs.anl.gov>
> 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
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160602/aaf91e41/attachment.html
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: error.png
> Type: image/png
> Size: 91392 bytes
> Desc: error.png
> URL: <
> http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160602/aaf91e41/attachment.png
> >
>
> ------------------------------
>
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>
>
> End of Nek5000-users Digest, Vol 88, Issue 3
> ********************************************
>
>
> ------------------------------
>
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>
>
> End of Nek5000-users Digest, Vol 88, Issue 4
> ********************************************
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160606/e07ab762/attachment.html
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: mesh_hexa_final.msh
> Type: application/octet-stream
> Size: 24802571 bytes
> Desc: mesh_hexa_final.msh
> URL: <
> http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160606/e07ab762/attachment.obj
> >
>
> ------------------------------
>
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>
>
> End of Nek5000-users Digest, Vol 88, Issue 5
> ********************************************
>
> _______________________________________________
> Nek5000-users mailing list
> Nek5000-users at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users
>
>


--

Wei HE ??
School of Aeronautics
Universidad Polit?cnica de Madrid
http://www.cfm.upm.es/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160608/0c29485d/attachment.html>

------------------------------

_______________________________________________
Nek5000-users mailing list
Nek5000-users at lists.mcs.anl.gov
https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users


End of Nek5000-users Digest, Vol 88, Issue 8
********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160613/5c1b21d4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error (1).png
Type: image/png
Size: 106163 bytes
Desc: error (1).png
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160613/5c1b21d4/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mesh_hexa_final.msh
Type: application/octet-stream
Size: 14680064 bytes
Desc: mesh_hexa_final.msh
URL: <http://lists.mcs.anl.gov/pipermail/nek5000-users/attachments/20160613/5c1b21d4/attachment-0001.obj>


More information about the Nek5000-users mailing list