File Exchange

image thumbnail

MSH (fluent mesh) reader

version 1.0 (2.75 KB) by

This function loads a fluent mesh (*.msh file) into an matlab struct.

12 Downloads

Updated

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 (2)

fatima Ali

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

Rojan

Rojan (view profile)

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
MATLAB 8.1 (R2013a)
Tags Add Tags

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video