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

msh file format

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By fab
  • 1 Post By alireshad

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2005, 12:59
Default msh file format
  #1
fab
Guest
 
Posts: n/a
Hi,

I want to read a fluent 'msh' file with fortran. I made the mesh in 'Icem' and exported it.

To read the mesh with a fortran sequence, I have to know the structure, but unfortunately I just find an explanation about the 'cas'-file structure in the manual.

Does anybody have an idea, how the 'msh'-file structure looks like?

Greetings! fab
poptiger likes this.
  Reply With Quote

Old   April 25, 2005, 15:24
Default Re: msh file format
  #2
Harish
Guest
 
Posts: n/a
The mesh file can be read by opening into word pad. It basically has tge grid points lines faces etc. That you created. Just erase everything else other than the grid points and import the file.

-H
  Reply With Quote

Old   April 25, 2005, 19:24
Default Re: msh file format
  #3
zxaar
Guest
 
Posts: n/a
the format of meshexplained in cas file portion of manual is enough to read it, my code reads fluents mesh and only read the portion of manual
  Reply With Quote

Old   April 26, 2005, 02:29
Default Re: msh file format
  #4
fab
Guest
 
Posts: n/a
Hi,

as mentioned I saw the cas-portion in the manual before; I thought it just explains the cas-file which looks pretty different to my original msh-file.

As I understand it now, the cas-file has different sections and one is the section for the grid which does have the same structure as the msh-file. Right?

Actually, taking a look at some cas-file I just see binary stuff in the grid section, but I suppose it has the same format as in the mesh file ...

Would you mind to share the routine to read the msh-file?

Thanks!

fab
  Reply With Quote

Old   April 26, 2005, 06:29
Default Re: msh file format
  #5
zxaar
Guest
 
Posts: n/a
yes the portion describing mesh in cas file is same as the msh.

this is the reason fluent reads cas/msh file from read->cas menu.

i can give u my code to read fluent mesh, but there are two problems, one the code is written in c++, and second the file is long becuase in the same file after reading the mesh i generate coarse meshes for implementing multigrids. this will confuse you. further the module is not so fast, because for readign mesh the hex number has to be converted and that takes time (in c++ otherwise we have a funstion of reading hex, but i am currently using c type i/o),

you can drop me an email i will send you the file that reads fluent mesh, see if u can make out of it.

  Reply With Quote

Old   May 25, 2012, 08:45
Default
  #6
New Member
 
ali reshad
Join Date: May 2012
Posts: 1
Rep Power: 0
alireshad is on a distinguished road
Quote:
Originally Posted by zxaar
;120131
yes the portion describing mesh in cas file is same as the msh.

this is the reason fluent reads cas/msh file from read->cas menu.

i can give u my code to read fluent mesh, but there are two problems, one the code is written in c++, and second the file is long becuase in the same file after reading the mesh i generate coarse meshes for implementing multigrids. this will confuse you. further the module is not so fast, because for readign mesh the hex number has to be converted and that takes time (in c++ otherwise we have a funstion of reading hex, but i am currently using c type i/o),

you can drop me an email i will send you the file that reads fluent mesh, see if u can make out of it.
hi zxaar
please send me your code.i urgently need this code
ali.reshad68@yahoo.com
thanks
poptiger likes this.
alireshad is offline   Reply With Quote

Old   October 14, 2014, 10:57
Default
  #7
New Member
 
k
Join Date: Apr 2014
Posts: 12
Rep Power: 12
znri is on a distinguished road
Quote:
Originally Posted by alireshad View Post
hi zxaar
please send me your code.i urgently need this code
ali.reshad68@yahoo.com
thanks
Hi
I have a msh file that I have created with a software for generating porous models. I need to read it with fortran (or C++). But my msh file is binary and when I open it in wordpad , I can't see within the file. And the software hasn't any option for producing msh file. How I can I convert my msh file to ascii format? I want then use this msh file to fluent.
Any help would be appreciated.
znri is offline   Reply With Quote

Old   October 29, 2014, 12:03
Default
  #8
New Member
 
abhishek
Join Date: Sep 2014
Posts: 1
Rep Power: 0
abhi158 is on a distinguished road
Quote:
Originally Posted by zxaar
;120131
yes the portion describing mesh in cas file is same as the msh.

this is the reason fluent reads cas/msh file from read->cas menu.

i can give u my code to read fluent mesh, but there are two problems, one the code is written in c++, and second the file is long becuase in the same file after reading the mesh i generate coarse meshes for implementing multigrids. this will confuse you. further the module is not so fast, because for readign mesh the hex number has to be converted and that takes time (in c++ otherwise we have a funstion of reading hex, but i am currently using c type i/o),

you can drop me an email i will send you the file that reads fluent mesh, see if u can make out of it.
hi ...
i have gone through the post, i am also looking for a way to import ansys icem msh file in FORTRAN....
if nebody has a sample program or subroutine related.....can u please mail me abhibhesania@gmail.com .....
its quite urgent....
abhi158 is offline   Reply With Quote

Old   September 9, 2015, 13:42
Default Ask for the code read fluent mesh
  #9
New Member
 
William Yao
Join Date: Sep 2015
Posts: 2
Rep Power: 0
william.yao is on a distinguished road
Hi,
I have read through the posts and I'm also struggling on how to read the msh file in FORTRAN. Could you please send me your code in reading .msh file in FORTRAN, Thank you, it's really appreciated. Email address: yaomin_yaomin@163.com
Quote:
Originally Posted by zxaar
;120131
yes the portion describing mesh in cas file is same as the msh.

this is the reason fluent reads cas/msh file from read->cas menu.

i can give u my code to read fluent mesh, but there are two problems, one the code is written in c++, and second the file is long becuase in the same file after reading the mesh i generate coarse meshes for implementing multigrids. this will confuse you. further the module is not so fast, because for readign mesh the hex number has to be converted and that takes time (in c++ otherwise we have a funstion of reading hex, but i am currently using c type i/o),

you can drop me an email i will send you the file that reads fluent mesh, see if u can make out of it.
william.yao is offline   Reply With Quote

Old   August 26, 2019, 21:17
Default
  #10
New Member
 
Join Date: Apr 2019
Posts: 1
Rep Power: 0
lyy07 is on a distinguished road
Here might be one:
http://oss.jishulink.com/upload/2016...e%20format.pdf
lyy07 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
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50
OpenFOAM Install Script ljsh OpenFOAM Installation 82 October 12, 2009 12:47
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
gcc and executable file from Mac to Linux simone Marras Main CFD Forum 0 April 8, 2007 16:49


All times are GMT -4. The time now is 22:35.