CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Salome mesh with NETGEN 1D-2D-3D for OF (http://www.cfd-online.com/Forums/openfoam/77071-salome-mesh-netgen-1d-2d-3d.html)

kriz June 11, 2010 12:58

Salome mesh with NETGEN 1D-2D-3D for OF
 
2 Attachment(s)
Hi!

I am not sure if this is the right place to post, but maybe someone using Salome for meshing can help?

I am currently lacking any commercial mesher, so I am using Salome. The current problem is very, very simple: I have a rectangular room with a small rectangle cut out of the room - it should be a room with a radiator (see attachment).

When I mesh this geometry with NETGEN 1D2D3D it will not refine the mesh at the edges of the radiator, only at the very end of it - Looking at the attachment, you see a slice through the mesh - You can see a finer mesh where the radiator sits, but only at the end of it. Looking at the mesh you can see that the mesh does not refine in direction to the radiator surface.

Is there a possibility to mesh it with a decent refinement at the edges and at the radiator surface, w/o buying a commercial mesher?

ogloth June 11, 2010 15:37

1 Attachment(s)
Hello,

Quote:

Originally Posted by kriz (Post 262663)
Is there a possibility to mesh it with a decent refinement at the edges and at the radiator surface, w/o buying a commercial mesher?

Yes there is (attention: advertising own stuff :rolleyes:). Using enGrid and Blender you can easily create the geometry, mesh it, and export it to OpenFOAM. The attached picture shows a similar geometry to yours; the walls have prismatic layers which might be useful if you want to resolve the temperature boundary layer. enGrid uses NETGEN for the tetra meshing and its own algorithms for surface meshing and prismatic boundary layers. It is open-source (GPL) and can be found here:
http://engits.eu/engrid

Regards,
Oliver

FG_HSRM June 12, 2010 07:53

Quote:

Originally Posted by kriz (Post 262663)
Is there a possibility to mesh it with a decent refinement at the edges and at the radiator surface, w/o buying a commercial mesher?

Hi kriz,

why you are not using snappyHexMesh for meshing and using Salome just for the *.stls? You will have Hexaeder and you can do refinements in special areas.

Regards

Fritz

kriz June 13, 2010 08:18

Quote:

Originally Posted by FG_HSRM (Post 262737)
why you are not using snappyHexMesh for meshing and using Salome just for the *.stls?

Good question. I just started giving snappyHexMesh a try. Thanks for the hint. Is there a good tutorial for it? I found this one: http://www.hydroniumion.de/allgemein...mesh-tutorial/

Is there a possibility to define edges/surfaces in Salome (e.g. with groups) that will be refined by snappyHexMesh? Or do I always have to specify the regions to be refined by coordinates in the snappyHexMeshDict? This would be very cumbersome for more complex geometries.

FG_HSRM June 14, 2010 06:17

Hello!
Quote:

Originally Posted by kriz (Post 262799)

It looks good to me. There also some tutorials in OpenFoam.

Quote:

Originally Posted by kriz (Post 262799)
Is there a possibility to define edges/surfaces in Salome (e.g. with groups) that will be refined by snappyHexMesh? Or do I always have to specify the regions to be refined by coordinates in the snappyHexMeshDict? This would be very cumbersome for more complex geometries.

Yes, there are some way to do that. Just take a look in the userguide to get a first impression, what you can do.
Do you already know, how to export the patches?
regards
Fritz


All times are GMT -4. The time now is 21:52.