|
[Sponsors] |
[snappyHexMesh] snappyHexMesh Boundary Conditions |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 23, 2011, 01:07 |
snappyHexMesh Boundary Conditions
|
#1 |
New Member
Join Date: Jun 2011
Posts: 29
Rep Power: 15 |
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. |
|
June 24, 2011, 12:08 |
|
#2 |
New Member
Join Date: Jun 2011
Posts: 29
Rep Power: 15 |
Can anyone shed a little light on this?
|
|
June 25, 2011, 04:14 |
|
#3 |
Senior Member
|
I think you have to assign a different name to the protrusion and then assign the boundary condition you need to that region.
|
|
June 26, 2011, 02:51 |
|
#4 |
New Member
Join Date: Jun 2011
Posts: 29
Rep Power: 15 |
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.
|
|
June 26, 2011, 06:19 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Cyberholmes: you've got two possible methods:
Best regards, Bruno
__________________
|
|
June 26, 2011, 14:00 |
|
#6 |
New Member
Join Date: Jun 2011
Posts: 29
Rep Power: 15 |
Thank you so much! You don't know how much of a help you've been!
|
|
June 26, 2011, 15:22 |
|
#7 | |
Senior Member
|
Quote:
|
||
June 26, 2011, 18:10 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi lovecraft22,
It honestly depends on the source of your STL. Examples:
Best regards, Bruno
__________________
|
|
June 27, 2011, 19:19 |
|
#9 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
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. |
|
June 28, 2011, 11:36 |
|
#10 |
Senior Member
Join Date: Apr 2010
Posts: 151
Rep Power: 16 |
This one also shows how to define patches:
tutorials/incompressible/pimpleDyMFoam/wingMotion The Allrun file shows you what to do. |
|
July 10, 2017, 22:05 |
|
#11 |
Member
Hilbert
Join Date: Aug 2015
Location: Australia
Posts: 50
Rep Power: 11 |
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 ( { name setname; type faceSet; action new; source boxToFace; sourceInfo { box (-0.15 0 -0.081)(-0.145 0.0346751670140271 -0.0805); } } { name setname; type faceSet; action subset; source normalToFace; sourceInfo { normal (0.243182556589797 0.00832132403345907 0.94); cos 0.01; } } ); Code:
pointSync false; patches ( { // Name of new patch name patchname; // Type of new patch patchInfo { type patch; } // How to construct: either from 'patches' or 'set' constructFrom set; // If constructFrom = patches : names of patches. Wildcards allowed. set setname; } ); I hope this helps some people. |
|
Tags |
boundaries, boundaryfield, snappyhexmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Centrifugal fan | j0hnny | CFX | 13 | October 1, 2019 14:55 |
CFD analaysis of Pelton turbine | amodpanthee | CFX | 31 | April 19, 2018 19:02 |
Domain Imbalance | HMR | CFX | 5 | October 10, 2016 06:57 |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 02:27 |
Error - Solar absorber - Solar Thermal Radiation | MichaelK | CFX | 12 | September 1, 2016 06:15 |