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

Possible to create cyliner baffle (internal) using topoSet or stl Mesh?

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By andre.weiner
  • 1 Post By keepfit

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2013, 06:36
Default Possible to create cyliner baffle (internal) using topoSet or stl Mesh?
  #1
Senior Member
 
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 13
keepfit is on a distinguished road
Hi Foamers,

I am struggling to create internal zero-thickness cylinder wall. Having searched through the forum, but could not find any related posts about how to create curved internal patches.

It seems that topoSet can only select planar faceSet via Box. But how to select cylinder walls via topoSetDict?

So I tried another way to create such internal curved walls: generate the internal cells using 2 volumes via GMSH, and set all the BCs including the internal Cylinder BC (please take a look at the attached Picture as well as the gmsh file ). When convert the msh file using gmshToFoam, the internal BC disappeared.

SnappyHexMesh seems another way to solve this issue. By import all of the surface .stl mesh and using the new feature in OF 2.2.0 like:

Code:
   
refinementSurfaces 
{ 
...
        wallCylInside  // internal cylinder wall 
        {
            level (2 2);
            faceZone wallCylInside;

            // Create baffles for all faces on the surface
            faceType baffle;

            cellZone wallCylInside;
            cellZoneInside inside; 
        }
...
}
but the snapping process failed.

So is there anybody ever faced the same issue, any advice will be appreciated.

Best,

David
Attached Images
File Type: jpg a.jpg (82.7 KB, 319 views)
Attached Files
File Type: txt cycloneCFD.geo.txt (9.2 KB, 44 views)
keepfit is offline   Reply With Quote

Old   July 25, 2013, 08:20
Default
  #2
New Member
 
Andre Weiner
Join Date: Aug 2012
Posts: 29
Rep Power: 13
andre.weiner is on a distinguished road
Hello,

as i said bevor, the topoSetDict-file in the propeller tutorial is exactly what you need ( if i got your problem right :-)

It's correct that you can't select the faces directly, but you can do some boolean operations, starting with "cylinderToCell" or "surfaceToCell" as source for a cellSet. With the "surfaceToCell" source you can use a .stl-file as input.

Hope i could help you. Good luck!
Artur and ms.hashempour like this.
andre.weiner is offline   Reply With Quote

Old   July 25, 2013, 09:44
Default
  #3
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 19
Artur will become famous soon enough
Just to expand a bit on the previous commenter, who I agree with completely: propeller tutorial uses .obj files to snap the mesh to but you can use and .stl file just as well. As far as I remember it is possible to snap the mesh to a searchable cylinder as well but then you can't extract the features from it (not that I know of, at least) so you won't get a very good mesh.
Artur is offline   Reply With Quote

Old   August 1, 2013, 11:49
Default
  #4
Senior Member
 
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 13
keepfit is on a distinguished road
Quote:
Originally Posted by andre.weiner View Post
Hello,

as i said bevor, the topoSetDict-file in the propeller tutorial is exactly what you need ( if i got your problem right :-)

It's correct that you can't select the faces directly, but you can do some boolean operations, starting with "cylinderToCell" or "surfaceToCell" as source for a cellSet. With the "surfaceToCell" source you can use a .stl-file as input.

Hope i could help you. Good luck!
After Using snappyHexMesh to generate the internal cells, and then select the internal faces via "cylinderToCell" , delete the redundant faces via "normalToFace". As snappyHexMesh can not exactly capture the sharp edge, the selected internal faces is not perfect but acceptable.



I tried another way to do such job: generate mesh via Gmsh. As the meshes inside the internal Cylinder is created via a single Volume, hence the internal cylinder is perfect:



and the perfect internal faceSet:





Best

Daivd
mizzou likes this.
keepfit is offline   Reply With Quote

Old   February 19, 2017, 14:40
Default
  #5
Member
 
Milad
Join Date: Jul 2015
Location: USA
Posts: 45
Rep Power: 10
mizzou is on a distinguished road
Hello,

After a long time from the last post in this forum, I've got a similar problem. I have a half (due to axissymmetry) pipe geometry and I would like to have internal half-cylinder inside my pipe. The internal half cylinder should be baffle (zero thickness internal faces) so that I can apply pressure boundary condition on that. Unfortunately I am not familiar with snappyHexMesh now. Anybody has idea how to do that?

Thanks,
Milad
mizzou is offline   Reply With Quote

Reply

Tags
createbaffles, cylinder mesh, internal patch


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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
[Commercial meshers] Create solid mesh around fluid mesh wcpvandervelden OpenFOAM Meshing & Mesh Conversion 0 June 21, 2012 10:05
Creating a baffle in a mesh Alexvader OpenFOAM Pre-Processing 0 September 28, 2011 11:34
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 21:42.