CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

[Other] Exporting a mesh to read in MATLAB

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

Like Tree1Likes
  • 1 Post By cih89

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2011, 06:18
Default Exporting a mesh to read in MATLAB
  #1
New Member
 
Join Date: Jun 2011
Posts: 5
Rep Power: 14
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, 14:41
Default
  #2
Senior Member
 
PSYMN's Avatar
 
Simon Pereira
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 2,663
Blog Entries: 1
Rep Power: 47
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, 08:32
Default
  #3
New Member
 
Join Date: Jun 2011
Posts: 5
Rep Power: 14
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!
chaitanyaarige likes this.
cih89 is offline   Reply With Quote

Old   May 25, 2013, 06:07
Exclamation Gmsh
  #4
New Member
 
Goth ydamil
Join Date: Mar 2013
Posts: 13
Rep Power: 13
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, 11:57
Default
  #5
New Member
 
Aoife Considine
Join Date: Jul 2013
Posts: 4
Rep Power: 12
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, 20:47
Default
  #6
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 25
stuart23 will become famous soon enoughstuart23 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
stuart23 is offline   Reply With Quote

Reply

Tags
ansys, matlab, mesh export

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gambit problems Althea FLUENT 22 January 4, 2017 03:19
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Inner geometry gets lost exporting mesh from ICEM CFD to CFX-Pre powpow CFX 3 December 20, 2012 09:14
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52


All times are GMT -4. The time now is 18:20.