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

[snappyHexMesh] snappyHexMesh multiple volumes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2015, 15:06
Default snappyHexMesh multiple volumes
  #1
New Member
 
Tommy Mello
Join Date: Mar 2015
Posts: 17
Rep Power: 11
twinturbotom is on a distinguished road
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.
Attached Files
File Type: gz blocks_share.gz (40.0 KB, 133 views)
twinturbotom is offline   Reply With Quote

Old   April 8, 2015, 20:14
Default
  #2
New Member
 
Tommy Mello
Join Date: Mar 2015
Posts: 17
Rep Power: 11
twinturbotom is on a distinguished road
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.
twinturbotom is offline   Reply With Quote

Old   April 10, 2015, 03:25
Default
  #3
Senior Member
 
Jens Höpken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 159
Rep Power: 17
jhoepken is on a distinguished road
Send a message via Skype™ to jhoepken
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?
jhoepken is offline   Reply With Quote

Old   September 2, 2015, 05:06
Default
  #4
New Member
 
Join Date: Feb 2015
Posts: 4
Rep Power: 11
mismichael is on a distinguished road
Hi,

I tried to open the file. It is damaged or I am doing something wrong with gunzip.
mismichael is offline   Reply With Quote

Old   September 9, 2015, 08:42
Default
  #5
Member
 
Vineet Bhola
Join Date: Jun 2015
Location: Chemnitz, Germany
Posts: 49
Rep Power: 10
vineet_bhola is on a distinguished road
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
vineet_bhola is offline   Reply With Quote

Reply

Tags
multiple regions, 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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
[snappyHexMesh] Creating multiple unconnected solid elements with snappyHexMesh Goddi OpenFOAM Meshing & Mesh Conversion 1 May 12, 2019 09:12
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 04:17
[snappyHexMesh] Using snappyHexMesh for multiple enclosed regions richard_vega OpenFOAM Meshing & Mesh Conversion 0 November 13, 2014 14:28
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21


All times are GMT -4. The time now is 21:37.