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

[snappyHexMesh] Create patches after snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2015, 06:51
Default Create patches after snappyHexMesh
  #1
Member
 
Sebastian Trunk
Join Date: Mar 2015
Location: Erlangen, Germany
Posts: 60
Rep Power: 11
sisetrun is on a distinguished road
Hello Foamers,

I successfully created my mesh using snappyHexMesh (tube with a sphere inside; or better: cylinder with flow resistance).

Now, I want to define an inlet / out / wall patch for my BC.

What is the best way to do this after snappyHexMesh?

Thanks a lot
sisetrun is offline   Reply With Quote

Old   February 9, 2017, 09:27
Default
  #2
Member
 
Sebastian Trunk
Join Date: Mar 2015
Location: Erlangen, Germany
Posts: 60
Rep Power: 11
sisetrun is on a distinguished road
I found my own thread and meanwhile a have the solution:

once you have created your mesh, you can use the setSet utility to make a cellSet c1 from given stl by surfaceToCell.

*Than, make a faceSet f1 from the cellSet c1.
*Make a second faceset f2 with patchToFace from the patch (existing patch after mesh generation)
*Subset f2 with f1

use the resulting f2 in the createPatch utility
-> edit the BC for the new patch
sisetrun 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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
Patches disappear after snappyHexMesh Chris123 OpenFOAM Running, Solving & CFD 2 March 5, 2019 09:09
[snappyHexMesh] Create three patches along a tube RobertHB OpenFOAM Meshing & Mesh Conversion 2 June 1, 2018 03:53
[GAMBIT] How to plot S pipe mariam.sara ANSYS Meshing & Geometry 36 November 7, 2013 15:22
[snappyHexMesh] Is it possible to create a "complex" mesh using snappyHexMesh? rendagar OpenFOAM Meshing & Mesh Conversion 3 October 17, 2013 02:56


All times are GMT -4. The time now is 11:50.