|
[Sponsors] |
[snappyHexMesh] How to create an O-grid mesh for flow in a pipe using OpenFOAM? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 27, 2021, 22:51 |
How to create an O-grid mesh for flow in a pipe using OpenFOAM?
|
#1 |
Member
|
Hello dear CFDonline community.
I'm wondering if anybody can tell me, please, how to create an O-grid mesh in OpenFoam (for flow in a circular pipe obviously). So far, I tried this tutorial. That helped me a lot. I managed to create an O-grid mesh using blockMeshDict. But then I wanted to add inflation layers. I did it via snappyHesMeshDict. And after running it I didn't get inflation layers and got some unstructured mesh closer to the walls instead. What is the general procedure of getting an O-grid mesh in OpenFOAM? Thank you in advance. Ivan Please see attached picture: I want to get the same thing in OpenFOAM. |
|
October 28, 2021, 05:01 |
|
#2 |
New Member
Join Date: Aug 2021
Posts: 11
Rep Power: 5 |
Hallo Ivan,
I highly suggest you to have a look at blender and the swiftBlock add-on. It gave me gave nice Hexa meshes. As you can see from an early attempt with an airfoil, it does its job pretty well. It is knda ICEM, and comparable in usage. And most important, it is totally free to use! swiftBlock swiftblock.readthedocs.io/en/latest/ blender http://www.blender.org/ Greetings Daniel PS: Don't judge the mesh, I canceled work on it because I just wanted a quick look inside the tool. :-) |
|
October 28, 2021, 12:13 |
|
#3 | |
Member
|
Quote:
Thank you Daniel. I know about Blender. I even have SpaceClaim which can do the job exceptionally well. But I, specifically, want to know how to do it using OpenFOAM native tools. In other words, the goal behind my question is not to do the job quickly by any means, but rather learn how to do it in OpenFOAM. Ivan |
||
October 28, 2021, 16:04 |
|
#4 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
This is just my personal oppinon so take is as you want. Dont spend too much time learning how to use Blockmesh unless is some very niche cases. As soon as you go into industry (expect you will) you wont have time to deal with the perfect mesh every time. Then you start looking into trends of design changes and will only deep dive into the setup to make sorta sure that you follow best practice guidelines. Learn automated meshing strategies to make rapid design changes and optimization loops. Here is a small comparison for builtin meshers for OpenFOAM Automatic meshing strategies Would also advice you to learn how to use Salome as it is a very powerfull tool for making simple meshes and surface STL files for OpenFOAM. I can do what you want in Salome in about 10min but would probably use cfmesh if I were to thoose the mesher.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
October 29, 2021, 08:53 |
|
#5 |
New Member
Join Date: Aug 2021
Posts: 11
Rep Power: 5 |
Hallo Ivan,
well if you already know how to use blender, then siftBlock Add-on is your friend :-) It generates native openFoam blockMesh dictionary, that you can study and learn from. Beside SALOME tool, that is all I know, how to generate HEXA mesh within openFoam environment. Greetings Daniel |
|
November 26, 2021, 20:06 |
|
#6 |
Member
|
Thank you @Daniel_C and @linnemann.
To sum up, I did my best trying to make blockMesh and snappyHexMesh give me what I need and I failed. I can make nice inflation layers (i.e. those expanding circles at the boundary) with unstructured mesh in the middle or I can make the structured block mesh that I showed in my question but without the inflation layers. For the life of me, I can't figure out how to make both inflation layers and the structured block mesh that I showed in my original question. Therefore, at this point I conclude that it is impossible to do what I want using OpenFOAM native tools (which I regret a lot because I hate learning new GUIs and like very much the programmatic approach to meshing used in blockMesh). But I still have to do the job. I tried Blender with that add-on suggested by Daniel_C and I didn't like it at the first glance. Then I moved to cfmesh. Didn't work for me as well. That's because cfmesh comes with the openfoam.com. But I use openfoam.org. And it turned out to be a great pain to integrate it with my OpenFOAM. And then I moved to SALOME. I liked it more than Blender at the first glance because its GUI looks like any other GUI of any other piece of CAD software. I found this tutorial showing how to make structured mesh in SALOME. But even with the help of that tutorial I failed to generate the mesh I wanted. Primarily because I didn't figure out how to create those planes when I didn't have that cube around my pipe. Therefore, in order to close my question I'm wondering if you @linnemann can be so kind to share the way you created the block mesh please. I don't need the cross, just a circular pipe. Thank you in advance. Ivan |
|
November 27, 2021, 06:44 |
|
#7 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
Another alternative could be the dockerized version of openfoam2106, which also includes cfmesh and can also be used to fire off a single command. |
||
July 15, 2022, 18:04 |
How to do it in Salome
|
#8 |
Member
|
I figured out how to do what I want in Salome (in case anybody is interested).
You can do it two ways:
Last edited by nepomnyi; July 15, 2022 at 18:15. Reason: Add the link to the Salome's website. |
|
September 1, 2022, 13:55 |
|
#9 |
Member
|
Actually, my guide on how to do it in Salome is not complete and leaves some unanswered questions.
Here's the better post to read if you want to learn how to do the O-grid mesh in Salome. That's Salome's forum. A really good forum. I highly recommend it for any Salome related questions. And to complete the answer, see this tutorial (starting the 18:54min) on how to export the mesh to OpenFOAM from Salome. |
|
September 2, 2022, 13:34 |
|
#10 | |
Member
|
Quote:
Turns out, I was wrong. One can do that in OpenFOAM blockMesh! The solution is offered by the awesome folks from Wolf Dynamics. Here's their awesome presentation on how to do O-grid mesh in a round pipe (see the last slides). Even though inflation layers are not implemented there, they say one can change mesh stretching to get more cells close to the wall. That will look like an inflation layer (like the one I posted the picture of in my question). I'm going to play with that and I'm going to post the detailed guide here once I'm done. Huge thank you to Wolf Dynamics! |
||
July 12, 2023, 18:39 |
|
#11 | |
New Member
Join Date: Aug 2021
Posts: 1
Rep Power: 0 |
Quote:
thanks for sharing your knowledge on mesh generation. Based on your discussion, I can create O-grid mesh for one pipe with Salome and blockMesh. But I'm stuck on how to do it for T-connecting pipes. If I saw it correctly, linnermann already achieved it with Salome. Could you give me some advice? Thanks in advance. Teresa |
||
Tags |
blockmesh boundary layers, blockmesh cylinder, mesh 3d, openfoam 1.7.1, snappyhexmesh hex |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FFD shape deformation for 3D wing not changing the mesh | lwc24 | SU2 Shape Design | 5 | August 1, 2019 16:17 |
[Other] How to Create and mesh a pipe with a porous tube insert | mizzou | OpenFOAM Meshing & Mesh Conversion | 0 | June 6, 2017 23:38 |
Gambit problems | Althea | FLUENT | 22 | January 4, 2017 04:19 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
[ICEM] Using a hybrid mesh for a simple pipe | Udio_NT | ANSYS Meshing & Geometry | 17 | October 18, 2012 15:42 |