Take the 2-minute tour ×
Computational Science Stack Exchange is a question and answer site for scientists using computers to solve scientific problems. It's 100% free, no registration required.

I am looking for flexible and easy to learn mesh framework which provides data structure for representing and manipulating meshes in 2D i 3D. I've already found a few:

It should work both on windows and linux in C++ and be open source or free. Do you have any suggestion?

share|improve this question
    
Maybe you can give more information about what you need? Do you want to use arbitrary elements, or are you fix to use either triangles/tetrahedron or rectangles/cubes? What's about parallelization? –  Thomas Witkowski Nov 27 '12 at 9:46
    
For now I have simple data structure for each element types. I would like to have efficient data structure for storing 2D and 3D meshes. So I have started looking for some frameworks and found OpenMesh and MSTK. Generally speaking Library should help me easily manage my meshes and help translate triangles elements to quadrangles by using external algorithms. Ability to easily attaching fields data to elements and nodes, saving meshes and results to files, for further postprocessing would be also very helpful in my work. Parallelization would be very appreciated. –  Krzysztof Bzowski Nov 27 '12 at 12:20
add comment

1 Answer 1

If quadrangles are fine, check www.p4est.org, a C++ open source mesh library which has shown very good scalability to very large number of cores. You may also want to check for the DUNE project at www.dune-project.org. They have a very nice abstract grid interface which can be used to make use of several different mesh libraries dependent on your specific requirement.

share|improve this answer
    
DUNE looks very promising. But I think it is not available for Windows. –  Krzysztof Bzowski Nov 27 '12 at 12:47
    
At least you have a chance to do it: dune-project.org/faq.html#ToC11 –  Thomas Witkowski Nov 27 '12 at 13:04
2  
I think p4est is written in C and not C++ –  stali Nov 27 '12 at 16:27
    
@stali: That's right, but from my point of view it should not play such a big role as you can use a C library from your C++ code. –  Thomas Witkowski Nov 27 '12 at 18:52
2  
p4est has a rather bare-bones interface to the mesh. If you want to have a more comfortable interface to the p4est data structures, then you should take a look at deal.II as it provides wrappers with a more C++-style interface around p4est; it is also far more extensively documented. (deal.II is at dealii.org ; disclaimer: I'm one of the authors of deal.II.) –  Wolfgang Bangerth Nov 28 '12 at 13:39
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.