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

[cfMesh] Create baffles with cfMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 31, 2022, 08:58
Default Create baffles with cfMesh
  #1
Senior Member
 
Join Date: Dec 2021
Posts: 209
Rep Power: 5
Alczem is on a distinguished road
Hi all,


Since cfMesh is such a nice mesher to use, I have been trying to trick it into creating baffles for a while now, so I could set up a fan simulation, without much success. This is one of the main features I need for my projects. It could also allow for easier multiregion meshing.



So far, I tried several things:


  • compute a mesh as usual but add a surfaceRefinement with a .stl file corresponding to my baffle. But it only refines (as expected) around the surface, and the cells do not snap to the surface itself, so I can't use topoSet after that to create the faceZone needed for the baffles.
  • compute a mesh using a .stl file which includes the internal baffle as well. It does produce a mesh snapped to the baffle (I think), but checkMesh returns the baffle as a patch and not as a faceZone, so I am stuck with an internal patch. I tried to use stitchMesh, mergeMesh, mergeOrSplitBaffles... but without much success since you need a neighbour patch. The best I got was to set its type to empty and create a faceZone using patchToFace in topoSetDict, which does create a facezone. But after createBaffles, the initial patch remains and the baffles contain 0 faces.
  • compute a mesh using a .stl file which includes the internal baffle and a doublon in order to trick OpenFoam into believing that two patches are overlapping so I could use one of its utilities to merge the two patches together and create baffles. But no shot.


I am aware that cfMesh is not programmed to allow faceZones, but seeing it can mesh an internal patch (I could even start a simulation when the patch was set to empty), I want to believe it is possible to use the multiple tools of OpenFoam to convert this patch to a faceZone/baffle/whatever.


Here is a picture of the patch cfMesh creates when the STL already includes it. It looks pretty conformal to me.



Does anyone has an idea to get to the finish line? Thanks for any tip!
Attached Images
File Type: jpg cfmesh_baffle.jpg (191.7 KB, 28 views)
Alczem is offline   Reply With Quote

Old   March 8, 2023, 06:52
Default
  #2
New Member
 
Mateusz Piecuch
Join Date: Feb 2022
Posts: 4
Rep Power: 4
mpiecuch is on a distinguished road
Hello

That is exacly what I'm thinking about and trying now. Have you been successful?

Best regards
Mateusz
mpiecuch 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
SimpleFoam & Theater jipai OpenFOAM Running, Solving & CFD 3 June 18, 2019 10:11
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
[DesignModeler] Create baffles fluidstu ANSYS Meshing & Geometry 1 May 29, 2016 23:47
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43
Actuator disk model audrich FLUENT 0 September 21, 2009 07:06


All times are GMT -4. The time now is 01:40.