CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] How to create patches

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 24, 2016, 03:55
Default How to create patches
  #1
Member
 
thomas
Join Date: Jul 2014
Posts: 50
Rep Power: 11
thomas. is on a distinguished road
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!
Attached Images
File Type: jpg Screenshot from 2016-02-24 09:53:54.jpg (65.3 KB, 66 views)
thomas. is offline   Reply With Quote

Old   February 25, 2016, 09:29
Default
  #2
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
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
vatavuk is offline   Reply With Quote

Old   February 25, 2016, 09:45
Default
  #3
Member
 
thomas
Join Date: Jul 2014
Posts: 50
Rep Power: 11
thomas. is on a distinguished road
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
thomas. is offline   Reply With Quote

Old   February 25, 2016, 10:15
Default
  #4
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
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
vatavuk is offline   Reply With Quote

Old   February 26, 2016, 03:57
Default
  #5
Member
 
thomas
Join Date: Jul 2014
Posts: 50
Rep Power: 11
thomas. is on a distinguished road
Hi Paulo,

Thanks!
thomas. is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 08:15.