|
[Sponsors] |
February 24, 2016, 03:55 |
How to create patches
|
#1 |
Member
thomas
Join Date: Jul 2014
Posts: 50
Rep Power: 11 |
Hello all,
I have been searching through the web for this simple questions with no success: how to create a not-trivial geometry, create the respective patches in order to do the meshing with snappyHexMesh. This, by using only open source software. I created the geometry with Freecad and exported it in .ast (ASCII-.stl) format. I created the geometry from the basic primitives and then ran the fusion-boolean (attached picture). As for the meshing, I have been trying following ways: 1. I tried to separate the surfaces into regions with surfaceAutoPatch. Then, create a .vtk-file with surfaceConvert to recognize the regions in Paraview. This may work, but I would like to find a more general way in order to apply it for every case, no matter how complex the geometry is. 2. I tried to export from Freecad single .ast files for every patch (inlet, wall, outlet etc.) with no success. When I click on the inlet and try to export it, it exports the whole part and not just the inlet. Same for outlet, walls etc. 3. Open the same Freecad file in Netgen. But here I don't know how to proceed to create the patches in order to be able to export a suitable mesh for snappyHexMesh. 4. I will try now the Blender+swiftBlock+swiftSnap alternative. Generally speaking, I'm quite confused when it comes to the geometry/mesh creating procedure. I would REALLY appreciate any help. Thanks in advance! |
|
February 25, 2016, 09:29 |
|
#2 |
Senior Member
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17 |
Hi Thomas,
Did you try to use snappyHexMesh? I think that a good starting point to learn snappy, is to study it's use in the tutorial below: https://www.hpc.ntnu.no/display/hpc/OpenFOAM+-+Spillway+Tutorial Best regards, Paulo |
|
February 25, 2016, 09:45 |
|
#3 |
Member
thomas
Join Date: Jul 2014
Posts: 50
Rep Power: 11 |
Hi Paulo,
that's actually my goal! I don't have trouble with that part though (thanks for the tutorial anyway!). I somehow got stuck with the "trivial" part of the CAD/patch- creation part (exporting the .stl file and then beeing able to create/recognize the patches), but I already found a possible solutiont: just exporting the .stl (ASCII) file, then applying surfaceAutoPatch and then surfaceSplitByPatch. The patches created with surfaceAutoPatch can also be recognized with the Selection Display Inspector in Paraview. Best regards, Thomas |
|
February 25, 2016, 10:15 |
|
#4 |
Senior Member
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17 |
Hi Thomas,
I haven't tried, but i think it's possible to generate the mesh using snappy and then using the CreatePatch tool. Best Regards, Paulo |
|
February 26, 2016, 03:57 |
|
#5 |
Member
thomas
Join Date: Jul 2014
Posts: 50
Rep Power: 11 |
Hi Paulo,
Thanks! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] fluentMeshToFoam: "fluent patch type shadow not recognised" | preibie | OpenFOAM Meshing & Mesh Conversion | 28 | March 29, 2017 04:56 |
Create patches to initialize a variable | chmurillor | STAR-CCM+ | 0 | July 2, 2015 08:34 |
About the createPatchDict | flotran | Main CFD Forum | 0 | December 7, 2011 11:31 |
How to create patches for this problem | sachin | OpenFOAM Running, Solving & CFD | 0 | August 11, 2009 08:40 |
Where's the singularity/mesh flaw? | audrich | FLUENT | 3 | August 4, 2009 01:07 |