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

[snappyHexMesh] Unzoned cells by SnappyHexMesh for a Multiregion Mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mujika

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2017, 15:18
Default Unzoned cells by SnappyHexMesh for a Multiregion Mesh
  #1
New Member
 
mujika
Join Date: Feb 2014
Posts: 4
Rep Power: 12
mujika is on a distinguished road
Hi fellow Foamers,

I am trying to generate a Mesh for a case where there should be two regions: solid particles, and the surrounding fluid (see geom.stl). Both regions are defined by single connected surfaces (attached in the case Mesh4sover_test_Castellate.zip).

The issue here is that when castellating, SnappyHexMesh leaves unzoned some cells that cross the fluid-solid boundary more than once (see close2.png).

This shouldn't be a major issue if you'd be able to modify cellZone groups. That way splitMeshRegions would work just fine. So far I have created the correct cellSets but splitMeshRegions would not accept anything else than cellZones to split the mesh into regions.

Moreover, I tried to split the regions according to the faceZones (-useFaceZones) without success. I also tried -sloppycellZones option without success (see splitMeshRegions.png).

I though of making a script to modify the cellZone file in /polyMesh, according to the appropiate cellSet I am able to extract using setSet.

Do you guys/girls know any easier way to split the Mesh?
Attached Images
File Type: jpg close2.jpg (27.5 KB, 47 views)
File Type: jpg far.jpg (54.4 KB, 43 views)
File Type: jpg geom.jpg (62.4 KB, 53 views)
File Type: png splitMeshRegions.png (111.4 KB, 32 views)
tomaso909 likes this.

Last edited by mujika; January 21, 2017 at 15:31. Reason: ortograph
mujika is offline   Reply With Quote

Old   January 21, 2017, 15:25
Default Case files
  #2
New Member
 
mujika
Join Date: Feb 2014
Posts: 4
Rep Power: 12
mujika is on a distinguished road
You can download the case that I am working on from this address:

https://app.box.com/s/0t9jcnsz0i046k5vg3apcfgnjnrv2q7y
mujika is offline   Reply With Quote

Old   February 14, 2018, 10:29
Default
  #3
New Member
 
Join Date: Oct 2016
Posts: 20
Rep Power: 10
JoeFriend is on a distinguished road
Hello mujika, I'm facing exactly the same problem when using snappyHexMesh with multi regions. Could you find an answer?
Regards,

Jose
JoeFriend is offline   Reply With Quote

Old   February 14, 2018, 10:57
Default
  #4
New Member
 
mujika
Join Date: Feb 2014
Posts: 4
Rep Power: 12
mujika is on a distinguished road
Hi Jose,

I gave up trying to split the mesh. Now I make two meshes with the same case: on one I set the location to be inside the geometry, and the other one outside.

Bonus: You get meshes that are conformal.

Good luck!
mujika is offline   Reply With Quote

Old   February 14, 2018, 11:36
Default
  #5
New Member
 
Join Date: Oct 2016
Posts: 20
Rep Power: 10
JoeFriend is on a distinguished road
Hey mujika, thanks for the quick reply.

I'm kind of giving up too...I've verified my STL files are ok (closed surfaces) and have run SHM with different parameters and the result is the same.

I'll try your method, hope it works .
JoeFriend is offline   Reply With Quote

Old   February 14, 2018, 15:38
Default
  #6
New Member
 
Join Date: Oct 2016
Posts: 20
Rep Power: 10
JoeFriend is on a distinguished road
Just to confirm if I understood the procedure:

In your case, you used a single STL file that defined the edges of your spheres. But how did you define the edges of the external half cylinder? Was that information also contained in the STL file? Or did you define the cylinder geometry in SHM?

Regards,

José Amigo
JoeFriend is offline   Reply With Quote

Reply

Tags
multiregion, snappyhexmesh, splitmeshregions, unzoned cells


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
[snappyHexMesh] snappyHexMesh not deleting the inside cells Bdew8556 OpenFOAM Meshing & Mesh Conversion 9 May 14, 2019 11:53
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 10:42
[snappyHexMesh] Problem: after snappyHexMesh, the cells size are not the same kanes OpenFOAM Meshing & Mesh Conversion 0 January 25, 2016 09:06
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 10:03
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 20:43


All times are GMT -4. The time now is 10:51.