CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

Converting Fluent mesh files to Gambit neutral files

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By samuelkc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2010, 05:14
Default Converting Fluent mesh files to Gambit neutral files
  #1
New Member
 
Sam
Join Date: May 2010
Posts: 5
Rep Power: 16
samuelkc is on a distinguished road
Now that Ansys no longer supports Gambit (after this month), it is no longer possible to export meshes in Gambit neutral format (*.neu) for any legacy codes which require it. Attached to this post is the code for two tools:

msh2neu: convert Fluent mesh files (*.msh) to Gambit neutral files (*.neu)
neu2msh: convert Gambit neutral files (*.neu) to Fluent mesh files (*.msh)

The code is limited to two dimensional, non-periodic meshes. However, it supports tagging of boundaries (for specification of boundary conditions in your code) and tagging of mesh regions (e.g. to distinguish an outlet region where the convection-diffusion equation is solved instead of Navier-Stokes).

Compilation is using gcc and make. Also included is documentation. I could not include any example meshes or icemcfd projects because of the size constraint on attachments.

This code may or may not be of any use to anyone, but I certainly need it as my own code was developed to use Gambit neutral files only and Gambit license support ends in a few days time. If anybody else has a similar problem, feel free to use it.
Attached Files
File Type: gz msh2neu.tar.gz (23.9 KB, 436 views)
samuelkc is offline   Reply With Quote

Old   July 9, 2010, 19:37
Default
  #2
New Member
 
Vimal Kumar
Join Date: Jul 2010
Location: Roorkee, India
Posts: 3
Rep Power: 16
Vimal.Singh is on a distinguished road
Hi Samuel,

Do you know if somebody had developed or using any prgoram to convert FLUENT mesh file to GAMBIT neutral file format for 3D problem. My code is also uses the files with GAMBIT *.neu file format.

Thanks,

Vimal
Vimal.Singh is offline   Reply With Quote

Old   July 9, 2010, 21:13
Default
  #3
New Member
 
Sam
Join Date: May 2010
Posts: 5
Rep Power: 16
samuelkc is on a distinguished road
Hi Vimal,

Sorry, I don't know of any 3D equivalent to my code. It may exist somewhere out there, of course, but I wasn't able to find any *.msh to *.neu converter when I looked.

Perhaps your best solution is to develop your own converter. You could use my code as a guide, but beware that there will be some significant changes in going to 3D. Information on the file formats is available in the manuals, which will be invaluable if you choose to go down this path.

Regards,
Sam
samuelkc is offline   Reply With Quote

Old   July 9, 2010, 21:16
Default
  #4
New Member
 
Sam
Join Date: May 2010
Posts: 5
Rep Power: 16
samuelkc is on a distinguished road
By the way, I understand that it may be possible to purchase a separate license for Gambit. However, it is no longer included in the standard package for Ansys/Fluent. Talk to your local distributor.

Sam
samuelkc is offline   Reply With Quote

Old   July 9, 2010, 23:51
Default
  #5
New Member
 
Vimal Kumar
Join Date: Jul 2010
Location: Roorkee, India
Posts: 3
Rep Power: 16
Vimal.Singh is on a distinguished road
Thanks Sam. I will look into it. If there is something will discuss with you.

Regards,

Vimal
Vimal.Singh is offline   Reply With Quote

Old   July 24, 2013, 09:02
Default Any progress?
  #6
New Member
 
Aoife Considine
Join Date: Jul 2013
Posts: 4
Rep Power: 13
Femgineer is on a distinguished road
Any chance anyone has had any progress with creating a 3D version?
This is exactly what I've been looking for!

Many thanks.
Femgineer is offline   Reply With Quote

Old   April 1, 2016, 08:57
Question Unable to cunvert .msh file .neu
  #7
New Member
 
Join Date: Feb 2012
Posts: 1
Rep Power: 0
subhash is on a distinguished road
Hi Sam,
First i would like to appreciate you on the work done by you in converting .msh to .neu and via-versa
I have downloaded your code and installed successfully,
I tried to convert one .msh(2D) file to .neu, its successfully dumping an output.neu file but it is having only nodal coordinate information, there is nothing written in the out file regarding element connectivity and all.
did you face this kind of problem at your work any time?
I am not understanding what is wrong with my file........
Thank you in advance.
subhash is offline   Reply With Quote

Old   August 30, 2017, 04:54
Default
  #8
New Member
 
Sam
Join Date: May 2010
Posts: 5
Rep Power: 16
samuelkc is on a distinguished road
To everyone posting on this thread:

I haven't looked at this code since I finished my PhD years ago. Please understand that I cannot provide any further development or tech support on it. Also, I rarely check this forum, as you have probably gathered.

If the code that I have provided (with the included documentation) happens to be useful to you, great. If it is not quite adequate for your needs, by all means hack it around until it is. If you believe that your hacked version would be useful to others, by all means post it on this thread too.

If someone else wants to go to the effort of developing a 3D version, by all means post it on this thread so that others can benefit too.
samuelkc is offline   Reply With Quote

Old   April 21, 2021, 05:07
Default Did you find an answer to this?
  #9
New Member
 
zuheyr alsalihi
Join Date: May 2018
Location: Belgium
Posts: 18
Rep Power: 8
zuheyr is on a distinguished road
Quote:
Originally Posted by subhash View Post
Hi Sam,
First i would like to appreciate you on the work done by you in converting .msh to .neu and via-versa
I have downloaded your code and installed successfully,
I tried to convert one .msh(2D) file to .neu, its successfully dumping an output.neu file but it is having only nodal coordinate information, there is nothing written in the out file regarding element connectivity and all.
did you face this kind of problem at your work any time?
I am not understanding what is wrong with my file........
Thank you in advance.
Hi I share your concern, did you happen to solve this problem? Many thanks for letting me know.

Kind regards, Zuheyr
zuheyr is offline   Reply With Quote

Old   April 21, 2021, 07:28
Default
  #10
New Member
 
Sam
Join Date: May 2010
Posts: 5
Rep Power: 16
samuelkc is on a distinguished road
I have not looked at this code for over a decade, so can't be of much help now.

The code worked fine for converting 2D meshes at the time that I developed it, including nodes, edges and elements. If people are finding that it's not working anymore, then that is probably due to some change in the format of the input file.

I recommend tackling the issue by creating an input file which is of a tiny mesh, e.g. with just 20 elements or so. Use this as input while you debug my code, as it will be easier to see what is going on. Debugging can be done using a tool such as GDB, or the old-school method of inserting diagnostic printf() statements in the code and recompiling it. You should be able to see where the code gets up to in parsing the input file, processing it, and generating the output. That may be enough to reveal the problem, if it's some trivial formatting issue.

If you make any progress, please post your findings on this thread, along with your updated version of the code and the tiny mesh input file used for testing.
zuheyr likes this.
samuelkc is offline   Reply With Quote

Reply

Tags
gambit, icem cfd, mesh conversion


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting structured mesh from ICEMCFD to Fluent? jeevan kumar FLUENT 1 January 23, 2012 12:21
A error about importing Gambit mesh to Fluent. shin FLUENT 3 November 19, 2002 03:09
Importing mesh files from Ansys into Gambit Srinivas FLUENT 2 August 6, 2002 11:02
Reading mesh files into Fluent from Gambit Prabhu.B FLUENT 4 July 16, 2002 20:03
Converting .geo files into Fluent newuser FLUENT 0 September 10, 2001 14:38


All times are GMT -4. The time now is 06:10.