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

How can i read mesh files made with ICEM? I want use them for my own code

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 12, 2009, 10:28
Default How can i read mesh files made with ICEM? I want use them for my own code
  #1
New Member
 
Zoltán Hercz
Join Date: Sep 2009
Posts: 17
Rep Power: 7
zmester is on a distinguished road
Hi

Theres 2 type of mesh files in ICEM CFD as i know. .uns for unstructured, .domain for structured grids. I want to open them for my cfd code but i cant. I get with notepad a text with stange charachters. Until i cant read them, i do not able to interpret them. Is there anyone who know how to open them, or one who know the structure of these files?
(Not only the domain file belongs to the structured grid but a .blk file that i can read, but i also cannot interpret them)
Thanks for your respond!
zmester is offline   Reply With Quote

Old   September 12, 2009, 12:03
Default
  #2
Member
 
Ludvik Lanicek
Join Date: Apr 2009
Location: Czech Republic
Posts: 52
Rep Power: 9
Ludvik is on a distinguished road
http://www.ansys.com/products/icemcf...cemcfd-fpl.asp
Ludvik is offline   Reply With Quote

Old   September 12, 2009, 14:04
Default
  #3
New Member
 
Zoltán Hercz
Join Date: Sep 2009
Posts: 17
Rep Power: 7
zmester is on a distinguished road
Thanks! Its quite an extensive description. I hope i have patience to find out their structure.
zmester is offline   Reply With Quote

Old   September 14, 2009, 09:15
Default ASCII vs. Binary
  #4
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,662
Blog Entries: 1
Rep Power: 35
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
Those links only include info for the Tetin file, blocking file, etc. These are all ASCII files and can be read with a text browser.

In Zoltan is asking about mesh files, those are binary files that cannot be read with a Text editor. If he has access to ICEM CFD, he could open those file and then export them in an ASCII format like Fluent or Nastran…

Simon
PSYMN is offline   Reply With Quote

Old   September 14, 2009, 11:45
Default
  #5
Member
 
mechovator
Join Date: May 2009
Posts: 32
Rep Power: 8
mechovator is on a distinguished road
Dear Save the file as part.in this will give you data in nodepad of the nodes and elements. From where you can use it in FEAp or any other program u like.
mechovator is offline   Reply With Quote

Old   September 14, 2009, 11:55
Default further explanation.
  #6
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,662
Blog Entries: 1
Rep Power: 35
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
Mechovator is suggesting you output it as an ANSYS mesh input file... This is similar to the suggestion of outputting it as a Nastran or Fluent MSH file, except that the ANSYS input file format is designed for FEA codes. Because of the way the FEA codes apply bocos, you will find an ANSYS input file is much larger than the same mesh output to Fluent format. It is also more difficult to read (from a CFD user point of view).

If you are developing a CFD code, then I suggest using a popular CFD output format like Fluent msh or CGNS for optimal performance. Both of these formats are also supported by ANSYS Meshing and many other comercially avialble meshing tools, giving added flexibility to your tool.

I should also add that you can use the ICEM CFD translators in batch mode to convert the UNS or domain files to the format of your choice. Do it once thru the GUI to see where the files are and what commands are needed (listed in the message window). You can also learn more about the options for each specific interface here...

http://www.ansys.com/products/icemcf...interfaces.asp

The link at the bottom of that page takes you to a table of specific formats to choose from.

Simon
PSYMN is offline   Reply With Quote

Old   September 14, 2009, 11:58
Default
  #7
Member
 
Ludvik Lanicek
Join Date: Apr 2009
Location: Czech Republic
Posts: 52
Rep Power: 9
Ludvik is on a distinguished road
How to read/write *.uns (binary) mesh file for any format:
Libraries > Output Libraries > Domain (Native Mesh) Library Description

Better ways are:
- ASCII format: Simon recommendation
- Binary format: through CGNS format (http://cgns.sourceforge.net/), neutral mesh format
Ludvik is offline   Reply With Quote

Old   October 9, 2009, 15:32
Default
  #8
New Member
 
Zoltán Hercz
Join Date: Sep 2009
Posts: 17
Rep Power: 7
zmester is on a distinguished road
Thanks for all help!

Finally i managed to export mesh in .msh format easily from ICEM, after some seminar in the University. I have also put my OpenGL based MESHVIEWER software(writen in JAVA) to my homepage. You can visualize .msh (tested on certain versions, and some meshes of TGrid, Gambit,ICEM) meshes with it. Please visit my site, because I would like to see that not I am the only person who visit the site.
A matrix inverter java applet can be found too here. (good for matrices with arbitrary size, but over 10x10 becomes extremly slow)

www.herczz.extra.hu
zmester is offline   Reply With Quote

Old   October 10, 2009, 21:28
Default Viewer
  #9
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,662
Blog Entries: 1
Rep Power: 35
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
I checked it out and it worked on several files for me...

Your file filter only let me see or select .msh files though.

Now you need to work on being able to filter by element types, cut planes, etc.

Some more English on your site would help also... Most of the worlds engineering is done in English.


Simon

Last edited by PSYMN; October 10, 2009 at 21:33. Reason: added a smiley
PSYMN is offline   Reply With Quote

Old   October 11, 2009, 07:18
Default
  #10
New Member
 
Zoltán Hercz
Join Date: Sep 2009
Posts: 17
Rep Power: 7
zmester is on a distinguished road
You are right, I just made this mesh viewer to be sure i can read the mesh for my own cfd code. I uploaded it to my page, but i forgot to change the language to english in the matrix inverter application. And actually i able filter element types, etc, because different things(diff. element types, boundaries..) in the .msh file are grouped, and i conserved this grouping.
zmester is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
ICEM 10 mesh question DAK565656 CFX 6 May 8, 2007 12:16
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56


All times are GMT -4. The time now is 01:11.