CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

how do we read meshes?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2014, 06:49
Default how do we read meshes?
  #1
Member
 
garry
Join Date: Oct 2013
Posts: 41
Rep Power: 12
yzeyue is on a distinguished road
hi, everyone,

I want to learn how to read meshes by Fortran.

I usually read H mesh before, and the mesh is generated by IGG(commercial software).

H mesh is not very good, but I do not know how to read C mesh or O mesh by Fortran.

So, I want to ask that how can I read C mesh or O mesh by Fortran. and if there some books about it----- read mesh which generated by commercial software.

thanks
yzeyue is offline   Reply With Quote

Old   March 11, 2014, 06:53
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
I think you are asking the wrong question. In general each grid generator has several output formats which are suited to different solvers. For example, Gambit uses either its own format, which is documented in the Gambit manual, or (among others) the Fluent .msh format, which is documented in the Fluent manual.

Then, if you want to read a mesh produced for, say, Fluent, you have to refer to the Fluent manual. If you want to read a mesh in the native Gambit format you have to read the related manual and so on.

Still, there is no way to simply read the mesh. You usally have to delve deeply in the format specification. If you want an example for the Fluent mesh you can refer to this page:

http://www.cfd-online.com/Forums/blo...ume-tools.html

Where, among other things, i also provide a basic MATLAB reader for a 2D/3D mesh in the Fluent format. You will also notice that, in order to read meshes coming out from Gambit and Fluent itself (which ideally should be the same) some dirty tricks have been required.

Note also that C, O and H grids are not formats but topologies for multi-block structured grids. There is no connection between a grid topology and the output format of the grid generator. Gambit can also produce fully structured grids, single or multi-block; still, the output format is always the same and related to the unstructured grid topology.
sbaffini 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
Error during reconstructing lagarangian fields ybapat OpenFOAM 9 November 17, 2014 07:52
Read parallel meshes dl6tud OpenFOAM Programming & Development 2 March 7, 2014 03:45
UDF to read cell var. based on particle position CeesH Fluent UDF and Scheme Programming 2 February 24, 2014 10:21
How to setup a simple OpenFOAM cluster? TommiPLaiho OpenFOAM Installation 3 October 27, 2013 15:15
How to read vtk format using fortran code? xiyuqiu Main CFD Forum 2 December 11, 2010 20:18


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