|
[Sponsors] |
April 25, 2005, 12:59 |
msh file format
|
#1 |
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 |
|
April 25, 2005, 15:24 |
Re: msh file format
|
#2 |
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 |
|
April 25, 2005, 19:24 |
Re: msh file format
|
#3 |
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
|
|
April 26, 2005, 02:29 |
Re: msh file format
|
#4 |
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 |
|
April 26, 2005, 06:29 |
Re: msh file format
|
#5 |
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. |
|
May 25, 2012, 08:45 |
|
#6 | |
New Member
ali reshad
Join Date: May 2012
Posts: 1
Rep Power: 0 |
Quote:
please send me your code.i urgently need this code ali.reshad68@yahoo.com thanks |
||
October 14, 2014, 10:57 |
|
#7 | |
New Member
k
Join Date: Apr 2014
Posts: 12
Rep Power: 12 |
Quote:
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. |
||
October 29, 2014, 12:03 |
|
#8 | |
New Member
abhishek
Join Date: Sep 2014
Posts: 1
Rep Power: 0 |
Quote:
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.... |
||
September 9, 2015, 13:42 |
Ask for the code read fluent mesh
|
#9 | |
New Member
William Yao
Join Date: Sep 2015
Posts: 2
Rep Power: 0 |
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:
|
||
August 26, 2019, 21:17 |
|
#10 |
New Member
Join Date: Apr 2019
Posts: 1
Rep Power: 0 |
Here might be one:
http://oss.jishulink.com/upload/2016...e%20format.pdf |
|
|
|
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 |