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

Programming a mesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 21, 2011, 01:37
Default Programming a mesh
  #1
New Member
 
Dimitar Kirilov
Join Date: Jan 2011
Posts: 4
Rep Power: 6
m0t0r0ne is on a distinguished road
Greetings,

I was told that Matlab can be used for programming the mesh for CFD problems instead of, shall we say, FORTRAN. What about Maple? Does Maple have the same capability? The reason why I am asking is that I have a little experience with both Maple and Matlab and I want to decide on which one to concentrate, at least when it comes to programming and not using commercial software.

Thanks
m0t0r0ne is offline   Reply With Quote

Old   January 21, 2011, 12:20
Default
  #2
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 10
DoHander is on a distinguished road
Maple and Matlab are both Turing complete programming languages, which means you can basically can program anything in them (almost), probably you should ask yourself in which of them it will be easier for you to implement the mesh generation code.

Do you plan to implement a unstructured mesh generator ? If yes, Matlab has some nice functionality to create a Delaunay triangulation from a set of points.

Do
DoHander is offline   Reply With Quote

Old   January 21, 2011, 12:41
Default Thanks
  #3
New Member
 
Dimitar Kirilov
Join Date: Jan 2011
Posts: 4
Rep Power: 6
m0t0r0ne is on a distinguished road
Thanks,

That really helps. I am not planning anything in particular yet, since I am at the very beginning of my project, but a lot of the people I know are using Matlab, so I'll probably go with that too.

Thank you for the help and the advice.
m0t0r0ne is offline   Reply With Quote

Old   January 21, 2011, 16:48
Default
  #4
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 10
DoHander is on a distinguished road
You can also use an existing mesh generator, like the one included in FreeFEM++ distribution, it will give you 2D triangular meshes.

Do
DoHander is offline   Reply With Quote

Old   January 22, 2011, 14:41
Default
  #5
New Member
 
Dimitar Kirilov
Join Date: Jan 2011
Posts: 4
Rep Power: 6
m0t0r0ne is on a distinguished road
OK, I'll try it.

Thanks again.
m0t0r0ne is offline   Reply With Quote

Old   January 23, 2011, 07:17
Default
  #6
New Member
 
Join Date: May 2009
Posts: 27
Rep Power: 8
walli is on a distinguished road
You can also have a look at the GMSH [1] mesh generator; there is also Netgen for generation of unstructured meshes [2]. If you consider programming in C++ rather than Matlab someday, I can recommend the DUNE interface [3] for mesh handling. A good overview can be found in [4]...

[1] http://www.geuz.org/gmsh/
[2] http://sourceforge.net/projects/netgen-mesher/
[3] http://www.dune-project.org/
[4] http://www-users.informatik.rwth-aac...eneration.html
walli is offline   Reply With Quote

Old   January 23, 2011, 13:59
Default
  #7
New Member
 
Dimitar Kirilov
Join Date: Jan 2011
Posts: 4
Rep Power: 6
m0t0r0ne is on a distinguished road
Quote:
Originally Posted by walli View Post
You can also have a look at the GMSH [1] mesh generator; there is also Netgen for generation of unstructured meshes [2]. If you consider programming in C++ rather than Matlab someday, I can recommend the DUNE interface [3] for mesh handling. A good overview can be found in [4]...

[1] http://www.geuz.org/gmsh/
[2] http://sourceforge.net/projects/netgen-mesher/
[3] http://www.dune-project.org/
[4] http://www-users.informatik.rwth-aac...eneration.html
I'll check it out. I am an absolute newcommer to CFD and right now I am looking for something to get started with. My supervisor mentioned that programming in 'something like C++ or Fortran' is preferable, but he did not point out anything in particular and this 'something' could mean anything. I can imagine that there is no 'best' choice when it comes to handling combustion problems, so I guess in the beginnig it will be OK if I get familiar with at least one of the above solutions be it Matlab or C++ or something else.

Thanks for the advice and for the links.
m0t0r0ne is offline   Reply With Quote

Reply

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
[ICEM] surface mesh merging problem everest ANSYS Meshing & Geometry 39 June 5, 2013 19:02
mesh missing after export in gambit morteza08 ANSYS Meshing & Geometry 1 July 26, 2010 01:10
Dynamic Mesh Problem. Tom Clark FLUENT 9 July 7, 2010 07:56
2d irregular grid Remy Main CFD Forum 1 December 22, 2008 05:49
basic of mesh refinement arya CFX 4 June 19, 2007 12:21


All times are GMT -4. The time now is 19:03.