Search code examples
c++mathphysicstransfer

Finite Element Library for Heat Transfer 2D


Hi I am currently COMSOL for calculating the Heat Transfer over time in 2D and I was looking for a library to do it in C++. Is the combination of libMesh and Gmsh the best choice?

It would be really helpful, if you could please also provide an example of such an operation on the suggested library? I use the Fourier equation.

Thank you in advance


Solution

  • I think that there are a lot of such libraries!

    My favorite choice would be Dealii (http://www.dealii.org/) which is very well documented, has a lot of examples and is very flexible. If the 2D heat transfer is only what you need, I think that this is the right library.

    Otherwise, you can have a look at Dune (http://www.dune-project.org/dune.html), LibMesh (http://libmesh.sourceforge.net) as you suggested, GetFem++ and so on and so on. There are also a few libraries that allow you to write the weak form of your problem, for example Feel++(http://www.feelpp.org/) or LifeV ( http://www.lifev.org). (I guess there are others, but these are the ones I know).

    Depending on the library, you need an external tool for the mesh and Gmsh is on (good) of them.