File Exchange

image thumbnail

MSH (fluent mesh) reader

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


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

See help mshread

Suggestion or question, please let me know via email!

Cite As

Wouter (2021). MSH (fluent mesh) reader (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

Muzammil Ali

Ander Biguri

fatima Ali

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



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?


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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!