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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2009, 11: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: 17
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, 13:03
Default
  #2
Member
 
Join Date: Apr 2009
Location: Czech Republic
Posts: 65
Rep Power: 18
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, 15:04
Default
  #3
New Member
 
Zoltán Hercz
Join Date: Sep 2009
Posts: 17
Rep Power: 17
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, 10:15
Default ASCII vs. Binary
  #4
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
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, 12:45
Default
  #5
Member
 
mechovator
Join Date: May 2009
Posts: 32
Rep Power: 17
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, 12:55
Default further explanation.
  #6
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
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, 12:58
Default
  #7
Member
 
Join Date: Apr 2009
Location: Czech Republic
Posts: 65
Rep Power: 18
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, 16:32
Default
  #8
New Member
 
Zoltán Hercz
Join Date: Sep 2009
Posts: 17
Rep Power: 17
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, 22:28
Default Viewer
  #9
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
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 22:33. Reason: added a smiley
PSYMN is offline   Reply With Quote

Old   October 11, 2009, 08:18
Default
  #10
New Member
 
Zoltán Hercz
Join Date: Sep 2009
Posts: 17
Rep Power: 17
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


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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07: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 13:16
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 16:56


All times are GMT -4. The time now is 04:59.