snappyHexMesh Boundary Conditions
I have just managed to successfully use snappyHexMesh to mesh a geometry I made in Blender. What I'm now wondering is how I go about assigning boundary conditions to the boundaries in this mesh.
For example, I have a protrusion in my geometry that needs to have a velocity boundary condition set on the boundary at its end. How do I specify that surface? Thank you. |
Can anyone shed a little light on this?
|
I think you have to assign a different name to the protrusion and then assign the boundary condition you need to that region.
|
What I don't know is how to assign a name to that region with snappyHexMesh. snappyHexMesh creates a meshing on its own, and it has hundreds of thousands of cells that have random names. I don't know how to specify a region out of that.
|
Greetings to all!
@Cyberholmes: you've got two possible methods:
Best regards, Bruno |
Thank you so much! You don't know how much of a help you've been!
|
Quote:
|
Hi lovecraft22,
Quote:
Best regards, Bruno |
There is a script that allows you to define boundaries in Blender and have it exported to STL. It is mentioned in the thread:
http://www.cfd-online.com/Forums/ope...cii-stlbs.html I've used it and it works quite well. |
This one also shows how to define patches:
tutorials/incompressible/pimpleDyMFoam/wingMotion The Allrun file shows you what to do. |
Dear Foamers,
I know that this thread is old, but I wanted to add my solution, since I still had to Google for a good couple of hours to figure out how to name the surfaces, and this might help some people. As has been discussed in this thread you can put in multiple stl files into SHM or name the patches after the meshing. Naming surfaces in the stl didn't work for me. I have tried splitting them in Salome, but my geometry is quite complex, and so i had a huge amount of separate faces which didn't make that solution that great. The solution that worked for me is the following: Mesh the part in SHM. Them use Toposet to make faceSet of the faces of interest. Below are my actions in for toposet. i.e I make a box around the faces of interest and then refine by just selecting the faces with a certain normal. Code:
actions Code:
pointSync false; I hope this helps some people. |
All times are GMT -4. The time now is 17:56. |