|
[Sponsors] |
[snappyHexMesh] snappyHexMesh multiple volumes |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 8, 2015, 16:06 |
snappyHexMesh multiple volumes
|
#1 |
New Member
Tommy Mello
Join Date: Mar 2015
Posts: 17
Rep Power: 11 |
Hi all!
I'm missing a few settings and/or a fundamental understanding of snappyHexMesh. I've used numerous resources (including this forum) yet I continue to fall short of my simple goal to mesh the inside of two volumes in the attached case. I'm able to mesh the interior of one (1) volume OR the other, never both at the same time. sHM seems to only mesh the volume that contains the "locationInMesh" point. If I move the "locationInMesh" point outside of my two volumes I am able to boolean the two (2) volumes from the surrounding blockMesh; however I need the opposite. I've tried numerous region definitions for faceZone, cellZone, allowFreeStandingZoneFaces, and various other options from the numerous multiple region tutorials I could find. I have yet to mesh the interior of block1 and the adjacent block2. Could someone explain what I'm missing here? Do I need individual stl files (as packaged here) to mesh the interior of both volumes or can regions/zones be used with a single stl? I have successfully used regions in other stl files to control boundaries, never entire volumes like this. |
|
April 8, 2015, 21:14 |
|
#2 |
New Member
Tommy Mello
Join Date: Mar 2015
Posts: 17
Rep Power: 11 |
The attached files work!
All I needed to do was "Include Zones" in the ParaView properties. Hopefully this can help someone else in meshing multiple volumes with snappyHexMesh. |
|
April 10, 2015, 04:25 |
|
#3 |
Senior Member
|
Without having had a look at your specific problem, I assume that you would like to mesh something similar to the inside of two spheres, that are not connected to each other. Right?
As far as I know, this is not possible with a single snappyHexMesh run. You could mesh the one and then the other sphere, in two separate cases. When this is done, use mergeMesh to merge both meshes into one.
__________________
Blog: sourceflux.de/blog "The OpenFOAM Technology Primer": sourceflux.de/book Twitter: @sourceflux_de Interested in courses on OpenFOAM? |
|
September 2, 2015, 06:06 |
|
#4 |
New Member
Join Date: Feb 2015
Posts: 4
Rep Power: 11 |
Hi,
I tried to open the file. It is damaged or I am doing something wrong with gunzip. |
|
September 9, 2015, 09:42 |
|
#5 |
Member
Vineet Bhola
Join Date: Jun 2015
Location: Chemnitz, Germany
Posts: 49
Rep Power: 11 |
Hi Guys,
It is indeed possible to mesh two or more volumes in a single run of snappyhexmesh. It works well if the surfaces do not cut each other. What you have to do is define the volumes as different cellzones surrounded entirely by closed facezones(boundary to the same volume as cellzone) (Inside Snappyhexmesh): refinementSurfaces { abgas { // Surface-wise min and max refinement level level (2 2); faceZone abgas; cellZone abgas; zoneInside true; } solid { // Surface-wise min and max refinement level level (2 2); faceZone solid; cellZone solid; zoneInside true; } wasser { // Surface-wise min and max refinement level level (2 2); faceZone wasser; cellZone wasser; zoneInside true; } } and later run commands to extract only these cellzones from the complete block. setSet -batch batch.setSet subsetMesh -overwrite isolation This is required because if there are more than one stl surfaces, snappy cuts the volume but does not discard the rest of the volume. You also need to add a .setSet file with the following content to define "isolation" volume. (P.S. isolation is just a name..not a keyword) cellSet isolation new zoneToCell solid cellSet isolation add zoneToCell wasser cellSet isolation add zoneToCell abgas cellSet isolation subset check out the original discussion here: http://www.cfd-online.com/Forums/ope...tml#post341623 |
|
Tags |
multiple regions, snappyhexmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
[snappyHexMesh] Creating multiple unconnected solid elements with snappyHexMesh | Goddi | OpenFOAM Meshing & Mesh Conversion | 1 | May 12, 2019 10:12 |
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! | divergence | OpenFOAM Meshing & Mesh Conversion | 0 | January 23, 2019 05:17 |
[snappyHexMesh] Using snappyHexMesh for multiple enclosed regions | richard_vega | OpenFOAM Meshing & Mesh Conversion | 0 | November 13, 2014 15:28 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |