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

Anybody know the format of *.msh file?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By jntan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2005, 05:19
Default Anybody know the format of *.msh file?
  #1
Vito Chow
Guest
 
Posts: n/a
I am developing my own code to do some simple computation, and i wanna read the *.msh file generated by Gambit. However, i have no idea of the file format. Could anybody here give me a hand? Any help will be appreciated.
  Reply With Quote

Old   April 20, 2005, 05:32
Default Re: Anybody know the format of *.msh file?
  #2
Harish
Guest
 
Posts: n/a
create a simple rectangular 2-d geometry and make just few grid points. open the .msh file with wordpad and look at it.

-H
  Reply With Quote

Old   April 20, 2005, 05:41
Default Re: Anybody know the format of *.msh file?
  #3
zxaar
Guest
 
Posts: n/a
fluent's manual describe the mesh format in section cas and data file formats (in the cas section you will have all the details you need).
  Reply With Quote

Old   April 20, 2005, 09:11
Default Re: Anybody know the format of *.msh file?
  #4
rom
Guest
 
Posts: n/a
To get the basic grid informations select "generic" as solver type and export the neutral grid *.neu. Neutral mesh files are easy to unterstand even without the manual. they are devided into 3 sections: 1. a header with basic grid informations (number of nodes, number of elements,...); 2. the point coordinates and 3. the elements (wich points form a an element). if you added boundaries in gambit there will be an 4th section with boundary informations.

good luck rom
  Reply With Quote

Old   April 20, 2005, 10:43
Default Re: Anybody know the format of *.msh file?
  #5
Vito Chow
Guest
 
Posts: n/a
actually i did it just as you suggested, but i failed to get the exact meaning of the file. it's a little bit troublesome.

the following is an example: a cavity with each edge divided into four parts, that is , nine cells.

(0 "GAMBIT to Fluent File")

(0 "Dimension:") (2 2)

(10 (0 1 10 1 2)) (10 (1 1 10 1 2)(

0.0000000000e+000 1.0000000000e+000

1.0000000000e+000 1.0000000000e+000

0.0000000000e+000 0.0000000000e+000

1.0000000000e+000 0.0000000000e+000

1.0000000000e+000 3.3333333333e-001

1.0000000000e+000 6.6666666667e-001

0.0000000000e+000 6.6666666667e-001

0.0000000000e+000 3.3333333333e-001

3.3333333333e-001 1.0000000000e+000

6.6666666667e-001 1.0000000000e+000

3.3333333333e-001 0.0000000000e+000

6.6666666667e-001 0.0000000000e+000

6.6666666667e-001 3.3333333333e-001

6.6666666667e-001 6.6666666667e-001

3.3333333333e-001 3.3333333333e-001

3.3333333333e-001 6.6666666667e-001 ))

(0 "Faces:") (13(0 1 18 0)) (13(3 1 9 3 0)( 2 1 7 9 0 2 7 8 6 0 2 8 3 3 0 2 3 b 3 0 2 b c 2 0 2 c 4 1 0 2 4 5 1 0 2 5 6 4 0 2 6 2 7 0 )) (13(4 a c 14 0)( 2 1 9 0 9 2 9 a 0 8 2 a 2 0 7 )) (13(6 d 18 2 0)( 2 d c 1 2 2 5 d 1 4 2 f b 2 3 2 d f 2 5 2 f 8 3 6 2 e d 4 5 2 6 e 4 7 2 10 f 5 6 2 e 10 5 8 2 10 7 6 9 2 a e 7 8 2 9 10 8 9 ))

(0 "Cells:") (12 (0 1 9 0)) (12 (2 1 9 1 3))

(0 "Zones:") (45 (2 fluid fluid)()) (45 (3 wall new_wall.4)()) (45 (4 mass-flow-inlet wall.4)()) (45 (6 interior default-interior)())
  Reply With Quote

Old   April 20, 2005, 10:46
Default Re: Anybody know the format of *.msh file?
  #6
Vito Chow
Guest
 
Posts: n/a
i think i will try more to find it in the manual. thank you !
  Reply With Quote

Old   April 20, 2005, 10:56
Default Re: Anybody know the format of *.msh file?
  #7
Vito Chow
Guest
 
Posts: n/a
compared to the *.msh, the *.neu file is easier to understand. But the problem is that some boundary conditions such as "wall","mass flow inlet", are not compatible with this filetype, so i cannot add the BC to the *.neu file, which make me turn to *.msh file.
  Reply With Quote

Old   May 12, 2010, 13:01
Default
  #8
New Member
 
Jiannan
Join Date: Mar 2009
Posts: 10
Rep Power: 17
jntan is on a distinguished road
The structure of *.msh file is closely related to FLUENT solver. Although you can easily open the file with a wordpad something and extract the point information, only point information is far from enough to be utilized in a solver. You need more information on how these points are connected and how the volume cells are built.

I spent more than 1 year looking into the *.msh file structure and finally figured it out. Then I built my own solver for research purpose on that. Drop me a message if you are interested in more details.

cheers,
febriyan91 likes this.
jntan is offline   Reply With Quote

Old   November 27, 2010, 15:49
Default
  #9
New Member
 
Okke Bronkhorst
Join Date: Nov 2010
Posts: 2
Rep Power: 0
Okke79 is on a distinguished road
Dear jntan,
I am very interested in more details about reading the *.msh file.
Regards,
Okke
Okke79 is offline   Reply With Quote

Old   October 16, 2014, 14:17
Default
  #10
New Member
 
k
Join Date: Apr 2014
Posts: 12
Rep Power: 12
znri is on a distinguished road
Quote:
Originally Posted by jntan View Post
The structure of *.msh file is closely related to FLUENT solver. Although you can easily open the file with a wordpad something and extract the point information, only point information is far from enough to be utilized in a solver. You need more information on how these points are connected and how the volume cells are built.

I spent more than 1 year looking into the *.msh file structure and finally figured it out. Then I built my own solver for research purpose on that. Drop me a message if you are interested in more details.

cheers,

Hi,
I need to edit my msh file manually. Can you please tell me how can I start to find the structure of fluent msh files?
Best regards
znri 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
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 08:11
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
gcc and executable file from Mac to Linux simone Marras Main CFD Forum 0 April 8, 2007 16:49
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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