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

[snappyHexMesh] Create three patches along a tube

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2018, 04:19
Default Create three patches along a tube
  #1
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
Hello everyone,
i need to generate a mesh of a long cylinder or tube where the outer hull is divided into three single patches. The goal is to get the faceSet of all outer faces of the middle patch to use in a fvOptions source. See the image below.
So far i have tried using snappyHexMesh, but snappyHexMesh usually creates one outer patch (if its the whole cylinder) or only the part of the cylinder where the pointInMesh is, when i subdivide my stl-file.
I came accross a thread where it is suggested to use splitRegionMesh with the subdiveded stl-file to create different cellZones. That works, yes, but i dont get patches, but cellZones, and the results of my simulation is incorrect.

Does someone know how to solve this problem?

-Robert
RobertHB is offline   Reply With Quote

Old   May 31, 2018, 09:53
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


If you are using snappyHexMesh, save the different patches of the pipe into different stl files, and you can generate the mesh with different patches.
Or if you have the same boundary conditions for every parts, you can select the faces for the different parts with topoSet. First select all faces for example in a box (boxToFace) which contains the part of the region you need, and then use subset for the boundary patches. Then in the faceSet you will have all the boundary faces in the given region.
simrego is offline   Reply With Quote

Old   June 1, 2018, 03:53
Default
  #3
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
Quote:
Originally Posted by simrego View Post
If you are using snappyHexMesh, save the different patches of the pipe into different stl files, and you can generate the mesh with different patches.
Or if you have the same boundary conditions for every parts, you can select the faces for the different parts with topoSet. First select all faces for example in a box (boxToFace) which contains the part of the region you need, and then use subset for the boundary patches. Then in the faceSet you will have all the boundary faces in the given region.
Hi simrego,
thanks for the advice, that is exaclty what i ended up doing.
RobertHB 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
Problem using AMI vinz OpenFOAM Running, Solving & CFD 298 November 13, 2023 08:19
[ICEM] How to create helical tube in ICEM akbar.mech ANSYS Meshing & Geometry 2 March 7, 2018 10:59
[snappyHexMesh] SnappyHexMesh fails to create patches of .stl files WernerW OpenFOAM Meshing & Mesh Conversion 4 September 26, 2017 00:59
[mesh manipulation] mirrorMesh and undoing the joining of patches chegdan OpenFOAM Meshing & Mesh Conversion 3 October 21, 2015 08:09
About the createPatchDict flotran OpenFOAM 1 December 9, 2011 07:52


All times are GMT -4. The time now is 18:24.