|
[Sponsors] |
Converting Fluent mesh files to Gambit neutral files |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 21, 2010, 05:14 |
Converting Fluent mesh files to Gambit neutral files
|
#1 |
New Member
Sam
Join Date: May 2010
Posts: 5
Rep Power: 16 |
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. |
|
July 9, 2010, 19:37 |
|
#2 |
New Member
Vimal Kumar
Join Date: Jul 2010
Location: Roorkee, India
Posts: 3
Rep Power: 16 |
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 |
|
July 9, 2010, 21:13 |
|
#3 |
New Member
Sam
Join Date: May 2010
Posts: 5
Rep Power: 16 |
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 |
|
July 9, 2010, 21:16 |
|
#4 |
New Member
Sam
Join Date: May 2010
Posts: 5
Rep Power: 16 |
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 |
|
July 9, 2010, 23:51 |
|
#5 |
New Member
Vimal Kumar
Join Date: Jul 2010
Location: Roorkee, India
Posts: 3
Rep Power: 16 |
Thanks Sam. I will look into it. If there is something will discuss with you.
Regards, Vimal |
|
July 24, 2013, 09:02 |
Any progress?
|
#6 |
New Member
Aoife Considine
Join Date: Jul 2013
Posts: 4
Rep Power: 13 |
Any chance anyone has had any progress with creating a 3D version?
This is exactly what I've been looking for! Many thanks. |
|
April 1, 2016, 08:57 |
Unable to cunvert .msh file .neu
|
#7 |
New Member
Join Date: Feb 2012
Posts: 1
Rep Power: 0 |
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. |
|
August 30, 2017, 04:54 |
|
#8 |
New Member
Sam
Join Date: May 2010
Posts: 5
Rep Power: 16 |
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. |
|
April 21, 2021, 05:07 |
Did you find an answer to this?
|
#9 | |
New Member
zuheyr alsalihi
Join Date: May 2018
Location: Belgium
Posts: 18
Rep Power: 8 |
Quote:
Kind regards, Zuheyr |
||
April 21, 2021, 07:28 |
|
#10 |
New Member
Sam
Join Date: May 2010
Posts: 5
Rep Power: 16 |
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. |
|
Tags |
gambit, icem cfd, mesh conversion |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |