CFD Online URL
[Sponsors]
Home > Forums > ANSYS Meshing & Geometry

[Other] Exporting a mesh to read in MATLAB

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 5, 2011, 07:18
Default Exporting a mesh to read in MATLAB
  #1
New Member
 
Join Date: Jun 2011
Posts: 5
Rep Power: 5
cih89 is on a distinguished road
Hi

I'm currently doing a MSc project on mesh quality. I can create the meshes in any program I like but must do the analysis of them in MATLAB (the main part of my project is to write a program that can do this).

The meshes I need to analyse must be of mixed cell type so I would like to use Ansys meshing to produce these as this is what I'm familiar with. Unfortunately I can't seem to find any file types that either the meshing program in ANSYS workbench or the ICEM cfd program can export to that can also be read by MATLAB.

Has anyone else tried to do anything like this? I need to be able to read in both 2D and 3D meshes.

Any help much appreciated.
cih89 is offline   Reply With Quote

Old   July 6, 2011, 15:41
Default
  #2
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,660
Blog Entries: 1
Rep Power: 34
PSYMN has a spectacular aura aboutPSYMN has a spectacular aura about
There are many ASCII mesh types that can be output...

You just need to work out something it MATLAB to read the files correctly.

Does MATLAB have a generic mesh format that it can already read?
__________________
-----------------------------------------
Please help guide development at ANSYS by filling in these surveys

Public ANSYS ICEM CFD Users Survey

This second one is more general (Gambit, TGrid and ANSYS Meshing users welcome)...

CFD Online Users Survey
PSYMN is offline   Reply With Quote

Old   July 7, 2011, 09:32
Default
  #3
New Member
 
Join Date: Jun 2011
Posts: 5
Rep Power: 5
cih89 is on a distinguished road
Hi

I've now got an ASCII file that MATLAB can read which is great. As you say, now I've just got to work out a way of getting MATLAB to read it in a way that can store the information as I want it.

I don't believe there is a standard mesh file that MATLAB can read. MATLAB can create its own meshes but not with the types of cells that I need.

Thanks for your help though, I just need to trawl the internet for MATLAB help now instead!
cih89 is offline   Reply With Quote

Old   May 25, 2013, 07:07
Exclamation Gmsh
  #4
New Member
 
Goth ydamil
Join Date: Mar 2013
Posts: 7
Rep Power: 3
djamel is on a distinguished road
hello everybody
I have a problem in my program , I can't convert 3D GMSH to matlab
thank you very much
djamel is offline   Reply With Quote

Old   July 18, 2013, 12:57
Default
  #5
New Member
 
Aoife Considine
Join Date: Jul 2013
Posts: 4
Rep Power: 3
Femgineer is on a distinguished road
Hi guys,
I'm trying to do something similar; create a 3D mesh in ANSYS and then export the data of said mesh to a file that I can then read using Matlab.
I have an old neutral (.neu) file from Gambit that used to hold the info of a mesh that Matlab would read but I'm having trouble exporting a similar file using ANSYS. I've tried using ICEM CFD but I keep getting errors when I'm trying to export my mesh.

While file format should I be exporting as to get something similar as to what I was getting with Gambit?

any help at all would be seriously great!

Thanks!
Femgineer is offline   Reply With Quote

Old   July 18, 2013, 21:47
Default
  #6
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 15
stuart23 will become famous soon enough
Aoife,

Maybe try the Fluent .msh format. It is very well documented in the Appendix of the Fluent User Guide.

Stu
__________________
http://bc247.wordpress.com
stuart23 is offline   Reply With Quote

Reply

Tags
ansys, matlab, mesh export

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SnappyHexMesh for internal Flow vishwa OpenFOAM Native Meshers: snappyHexMesh and Others 23 August 6, 2014 04:50
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Inner geometry gets lost exporting mesh from ICEM CFD to CFX-Pre powpow CFX 3 December 20, 2012 10:14
2D Mesh Generation Tutorial for GMSH aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52
Gambit problems Althea FLUENT 21 February 6, 2001 08:05


All times are GMT -4. The time now is 13:15.