Freecad: how to prepare a mesh suitable for OpenFOAM?
Dear All,
I am having a couple of problems dealing wirh the mesh. 1. I want to create a geometry using freecad, and to mesh it with OpenFOAM. Let's say that I want to prepare a channel with an inlet, an outlet and four walls. Do you know any step-by-step tutorial to do this? I can build this (very easy) geometry, but I can not create the patches. 2. if I have a step file, which is the best way to import it, create the patches that I need and mesh it? Thanks a lot, Samuele |
Quote:
that's a pretty simple and handy task. In my opinion even simpler and more consistent than in many commercial softwares. I use only FreeCAD in combination with cfMesh for my unstructured/hybrid CFD analyses' preprocessing.
Martin |
That's a great help: thanks a lot Martin, I'll follow your advice.
Samuele |
Hi Martin,
thanks again for your kind answer. I have a question, just to completely understand this point. I have a cad that I explode into many faces (something like 5000). I create a shell, but it is almost impossible to mesh it: it seems that creating the surface mesh is almost impossible for Freecad. Have you ever handle quite big and complex geometries? Thanks a lot, Samuele |
Quote:
what do you mean by impossible? Does the mesher or FreeCAD crash? One hint: I usually use the standard mesher with surface deviation set to 0.01. I never encountered any issues regarding the number of faces but I must note that I never got to process more than about 1000 surfaces. Regards Martin |
Hello Martin,
thanks for answering. Actually, using the standard mesher, with standard deviation of 0.01 mm, it works. It crashed when I used either Netgen or Mephisto. Don't know why. Anyway, how about the second parameter, linked to the angle? Is 30° a good value? Thanks a lot, Samuele |
Quote:
|
It works, great.
Thanks a lot for your help. I'll dig into all the parameters, to better understand how they work. Thanks a lot, Samuele |
A little correction
Quote:
Thank you very much. I've a little correction. 1) I'm using FreeCad 0.18.4 and I was unable to find Explode option in the Draft. I found it in the Part workbench: Part --> Compound --> Explode compound (referene: https://wiki.freecadweb.org/Part_ExplodeCompound). 2) Where to find "Create shape utility"? It is actually this thing: https://wiki.freecadweb.org/Part_Builder. To do it, go to Part --> Shape builder and then you'll see the necessary options. 3) Here is a detailed review of how to export .stl files from FreeCAD for snappyhexmesh: https://wiki.openfoam.com/Integratio...by_Stefan_Radl. Very close to what NableDyn described but uses different tools and - what is most important - shows how to do it. Ivan |
Quote:
sorry it seems it's already been awhile... 1) That's the thick blue downwards pointing arrow in the Draft workbench 2) Yes 3) Sorry I considered this to be self-explanatory but good to read you found a helpful reference Regards |
All times are GMT -4. The time now is 00:41. |