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

[snappyHexMesh] snappyHexMesh AND cfMesh process possible?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By rocketLauncher

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2024, 18:12
Default snappyHexMesh AND cfMesh process possible?
  #1
New Member
 
Jacob Child
Join Date: May 2024
Posts: 3
Rep Power: 2
JacobTheWindWrangler is on a distinguished road
Hello All!
This is my first post here, so if I do something wrong, please feel free to correct me. In short:
1. I wondered if it is possible to generate a mesh and boundary layers with cfMesh ([cartesianMesh] command) and then run snappy afterward (just the "snap" step) to improve the mesh, nonOrtho faces etc? This came up because I like the Boundary Layers that cfMesh makes, but it has some nonOrtho cells that are causing me issues, so I want to keep the BL, but use something to fix those cells.

2. Could I use snappy to create the initial mesh, so the castellation and snap steps, and then cfMesh to generate the boundary layers?

Note on option 2: I haven't had much luck with the `generateBoundaryLayers` command by itself in cfMesh. When it makes BL from my meshDict as part of `cartesianMesh` it does well, but if I run it part way and stop it, then say `generateBoundaryLayers` it runs but often gives a lot of warnings. Same if I do `improveMeshQuality` > these are probably different topics though.

General Note: I have tried some version of both methods, and both methods seem to run, but then I don't seem to actually see a difference in Paraview- ie for option 1 I didn't see a change in the mesh, although `checkMesh` is probably where I should look (I think I did, I can't remember), and for option 2 BL weren't added.

Thanks for everyone's help all over the forum! I have read many threads and been helped over the past while haha! I just started openfoam a little over a month ago for an internship.
JacobTheWindWrangler is offline   Reply With Quote

Old   June 18, 2024, 06:16
Default
  #2
New Member
 
James
Join Date: Jun 2024
Posts: 1
Rep Power: 0
JamesJackson is on a distinguished road
Initial mesh with snappyHexMesh, followed by cfMesh for boundary layers could be a viable method. If you have problems with the generateBoundaryLayers command, it may be due to your specific configuration or the complexity of your geometry. It is important to review the warnings carefully and adjust your MeshDict settings accordingly.
__________________

Last edited by JamesJackson; June 27, 2024 at 00:04.
JamesJackson is offline   Reply With Quote

Old   June 19, 2024, 10:03
Default
  #3
Member
 
Join Date: May 2024
Location: France
Posts: 35
Rep Power: 2
rocketLauncher is on a distinguished road
I haven't tried this, but in theory it could be possible. However, you should know that boundary layer meshing is one of the weaker points of cfMesh. The features are more developed in the paid version.

Before you try mixing algorithms, I highly recommend running through a little checklist with snappy hex mesh:
1. Do your .stl files capture the geometry well? If not, refine them.
2. Is your blockMesh providing a good enough domain? Snapping is very sensitive to the blockMesh features (nb elements, domain size etc)
3.Run the castellation and snapping steps separately and inspect your mesh before you add layers. No point in trying to build a BL if the rest of the mesh is not up to par.


Good luck!
lourencosm likes this.
rocketLauncher is offline   Reply With Quote

Reply

Tags
cartesianmesh, cfmesh, snappy hex mesh, snappyhexmesh


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
[snappyHexMesh] snappyHexMesh and CfMesh: Surface is not smooth mortezahdr OpenFOAM Meshing & Mesh Conversion 2 April 29, 2024 22:59
[cfMesh] [Guide] How to mesh a propeller domain using cfMesh - AMI patch gabrielfelix OpenFOAM Community Contributions 2 April 2, 2024 21:28
[snappyHexMesh] Cfmesh vs snappyHexMesh harsha_kulkarni OpenFOAM Meshing & Mesh Conversion 2 November 30, 2020 15:42
[cfMesh] How to start using cfMesh with OpenFOAM v1706? Carno OpenFOAM Community Contributions 1 November 1, 2018 17:28
[snappyHexMesh] snaapyHexMesh or cfMesh JSMOKA OpenFOAM Meshing & Mesh Conversion 3 January 13, 2017 03:25


All times are GMT -4. The time now is 19:47.