CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

matlab mesh generation for fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 26, 2009, 18:26
Default matlab mesh generation for fluent
  #1
New Member
 
Mike
Join Date: May 2009
Posts: 2
Rep Power: 0
mleahy is on a distinguished road
I have been working on a elliptical mesh generator for an airfoil in matlab. I want to be able to write the mesh in a format that can be read by fluent. are there any source codes available that can do this? or other recommendations?
mleahy is offline   Reply With Quote

Old   May 28, 2009, 23:19
Default
  #2
Senior Member
 
N/A
Join Date: Mar 2009
Posts: 189
Rep Power: 17
harishg is on a distinguished road
I guess fluent can read vtk meshes. Check for the documentation which gives you the details of writing vtk meshes. Another option you can try if you have tecplot is to write the ascii data in tecplot format. Open it with tecplot and export it to fluent format.
harishg is offline   Reply With Quote

Old   May 29, 2009, 11:58
Default
  #3
Member
 
Join Date: Mar 2009
Posts: 62
Rep Power: 17
RenardP is on a distinguished road
Hello,

Fluent is an unstructured solver and if I understand correctly you have implemented a structured grid generation method in Matlab. You need to write your mesh in format similar with this (for a 2D mesh):

n1 n2 n3 4
.............
x1 y1
........

Where n1,n2 ... are the vertex numbers and x1 y1 are the coordinates of n1; x2 y2 the coordinates of n2 ....

In order to be able to import your mesh in Fluent I suggest you to create a simple 2D mesh example in Gambit (the mesh generator of Fluent) save this mesh in neutral format (*.neu). Using this file you will be able to see how you must format your mesh file in order to be able to use it with Fluent.

If you need help in coding this let me know.
RenardP is offline   Reply With Quote

Old   May 29, 2009, 12:43
Question that post lets me wonder about this
  #4
New Member
 
amira maizi
Join Date: Mar 2009
Posts: 8
Rep Power: 17
amira is on a distinguished road
can we write a UDF using matlab and implement it into Fluent?
amira is offline   Reply With Quote

Old   May 31, 2009, 20:17
Default
  #5
Member
 
Join Date: Mar 2009
Posts: 62
Rep Power: 17
RenardP is on a distinguished road
Quote:
Originally Posted by amira View Post
can we write a UDF using matlab and implement it into Fluent?
First, I strongly recommend you to read the Fluent help about UDF.
About your question now, the answer is NO! You can write a UDF only in the C language.
RenardP is offline   Reply With Quote

Old   October 11, 2013, 08:50
Default
  #6
New Member
 
Sorin Munteanu
Join Date: Apr 2013
Posts: 27
Rep Power: 14
Sorin is on a distinguished road
Hi Amira,

A Fluent UDF is a C library, so technically the answer is No.

You can drive Fluent from Matlab, though, but that is slightly different functionality that the one you handle in UDF. It is the equivalent if running Fluent in batch from a .m file instead of doing it from a *.jou file.

Sorin
Quote:
Originally Posted by amira View Post
can we write a UDF using matlab and implement it into Fluent?
Sorin is offline   Reply With Quote

Reply

Tags
fluent, matlab, mesh


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
Mesh generation software is needed H.Dou Main CFD Forum 12 May 4, 2011 16:20
ICEM - incomplete mesh generation ralph CFX 0 June 24, 2008 00:35
2D mesh generation!! HELP...! Jesper Sørensen Main CFD Forum 1 October 24, 2006 18:58
need info on companies in mesh generation Ramesh Main CFD Forum 1 June 24, 2006 10:15
Mesh Mignard FLUENT 2 March 22, 2000 06:12


All times are GMT -4. The time now is 07:31.