|
[Sponsors] |
[CAD formats] Freecad: how to prepare a mesh suitable for OpenFOAM? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 20, 2017, 11:54 |
Freecad: how to prepare a mesh suitable for OpenFOAM?
|
#1 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
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 Last edited by samiam1000; October 24, 2017 at 09:18. Reason: The issue has been solved |
|
October 23, 2017, 03:46 |
|
#2 | |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
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 Last edited by NablaDyn; October 23, 2017 at 05:12. |
||
October 23, 2017, 05:08 |
|
#3 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
That's a great help: thanks a lot Martin, I'll follow your advice.
Samuele |
|
October 25, 2017, 10:37 |
|
#4 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
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 |
|
October 25, 2017, 12:35 |
|
#5 | |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
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 |
||
October 26, 2017, 04:36 |
|
#6 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
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 |
|
October 26, 2017, 04:50 |
|
#7 | |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Quote:
Last edited by NablaDyn; November 6, 2017 at 07:13. |
||
October 26, 2017, 09:24 |
|
#8 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
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 |
|
August 19, 2020, 23:07 |
A little correction
|
#9 | |
Member
|
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 Last edited by nepomnyi; August 20, 2020 at 13:35. |
||
February 19, 2021, 13:38 |
|
#10 | |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
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 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suitable mesh resolution for Deteched Eddy Simulations | siw | CFX | 8 | October 29, 2023 04:18 |
Setting the height of the stream in the free channel | kevinmccartin | CFX | 12 | October 13, 2022 22:43 |
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! | divergence | OpenFOAM Meshing & Mesh Conversion | 0 | January 23, 2019 05:17 |
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry | pizzaspinate | OpenFOAM Meshing & Mesh Conversion | 1 | February 25, 2015 08:05 |
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation | tommymoose | ANSYS Meshing & Geometry | 48 | April 15, 2013 05:24 |