File Exchange

image thumbnail

MSH (fluent mesh) reader

version 1.0.0.0 (2.75 KB) by Wouter
This function loads a fluent mesh (*.msh file) into an matlab struct.

9 Downloads

Updated 15 Nov 2013

View License

mshread loads a Fluent mesh file (*.msh).

USAGE: (Loading files)
[ msh_file_contents ] = mshread( file )
[ msh_file_contents ] = mshread( directory ); % asks for file

OPTIONAL - show loading progress
[ msh_file_contents ] = mshread( filelocation , 1);
[ msh_file_contents ] = mshread( '' , 1);

msh_file_contents is a struct containing the vertices and the different faces from your mesh file

VISUALISATION EXAMPLE
See help mshread

Suggestion or question, please let me know via email!

Comments and Ratings (4)

Ander Biguri

fatima Ali

i alos have the same problem and need to convert it asap :(

Rojan

Hi

I have a .msh file and I tried to use mshread.m to read my mesh but something goes wrong and it gives me "abort" message. I tried to understand the problem, it seems that in the code line74 you have put an if condition ( if niter>10, error('abort'); end ) which I cannot understand why. I tried to comment this condition and ran the code again but other error came up. Maybe if I could send my .msh file someone could help me with it. Is there any way to send my mesh file?

Thanks

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags