CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   Programming a mesh (http://www.cfd-online.com/Forums/main/84144-programming-mesh.html)

m0t0r0ne January 21, 2011 01:37

Programming a mesh
 
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

DoHander January 21, 2011 12:20

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

m0t0r0ne January 21, 2011 12:41

Thanks
 
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.

DoHander January 21, 2011 16:48

You can also use an existing mesh generator, like the one included in FreeFEM++ distribution, it will give you 2D triangular meshes.

Do

m0t0r0ne January 22, 2011 14:41

OK, I'll try it.

Thanks again.

walli January 23, 2011 07:17

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

m0t0r0ne January 23, 2011 13:59

Quote:

Originally Posted by walli (Post 291757)
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.


All times are GMT -4. The time now is 22:36.