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

[snappyHexMesh] Adding layers in multiRegion Case

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By Clau.77

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2021, 17:27
Default Adding layers in multiRegion Case
  #1
Member
 
Claudia
Join Date: Mar 2021
Posts: 43
Rep Power: 5
Clau.77 is on a distinguished road
Hey guys!


I m having trouble adding layers in my multi region case.


The way I tried it:
1. snappyHexMesh with addLayers false
2. Then copy the polyMesh folder of the region where I want layers into the constant folder
3. set addLayers in snappy to true and the other two to false


That works so far, when I open Paraview, I can see the region with the layers. Put when I copy the polyMesh folder back to its constant/region/ position and then take a look at the mesh with all regions, the layers are gone.



So, did I miss a step? Or is there another way to add layers?
When I try to addLayers the "normal" way (without copying the polyMesh folders from one place to another), snappy always tells me that there are no layers to generate...


I m getting really frustrated with this, I would appreciate some tipps
Clau.77 is offline   Reply With Quote

Old   June 29, 2021, 04:46
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hi Claudia,

If I am not mistaken, you are using OpenFOAM foundation version right?

Maybe have a look at the "mergeFaces" parameter which has been introduced since OpenFOAM-7 : https://github.com/OpenFOAM/OpenFOAM...c2d75980212a63

Foundation and ESI/OpenCFD versions have different ways to deal with layer addition in multiregion cases.
I am more used to OpenCFD version so I never used "mergeFaces" but I think this is worth trying.

Cheers,
Yann
Yann is offline   Reply With Quote

Old   June 29, 2021, 08:03
Default
  #3
Member
 
Claudia
Join Date: Mar 2021
Posts: 43
Rep Power: 5
Clau.77 is on a distinguished road
Hey Yann,


thank you for the tipp


Yes, i am using OF-8. I looked up the mergeFaces option, but I am not sure how it can help me.


I tried mergeFaces=true on the whole mesh, but there where this no layers to generate.

So I tried again to copy the polyMesh folder from the region to the constant folder, added the layers and the copied everything back to place but the mergeFaces option does not make a difference. So I tried to use splitMeshRegion -cellZonesOnly -overwrite before and after the addLayers step but when I use it after adding the layers I have problems with mssing entries in the nSurfaceLayers file.


Would you suggest a different workflow?
And just out of curriosity, how does it work when using OpenCFD?
Clau.77 is offline   Reply With Quote

Old   June 29, 2021, 09:45
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hi Claudia,

Have a look at this tutorial, it seems it uses the mergeFaces parameter : https://github.com/OpenFOAM/OpenFOAM...eHeatExchanger

In OpenCFD versions, there is the "locationsInMesh" parameter used to define the cellZones corresponding to the different regions in your mesh. It automatically creates interfaces while meshing (ie. region1_to_region2) and you can use these interfaces in addLayersControls.

Yann
Clau.77 likes this.
Yann is offline   Reply With Quote

Old   July 1, 2021, 09:40
Default
  #5
Member
 
Claudia
Join Date: Mar 2021
Posts: 43
Rep Power: 5
Clau.77 is on a distinguished road
That tutorial helped a lot, I finally managed to get the layers that I wanted


Thank you so much for your help, Yann!
Yann likes this.
Clau.77 is offline   Reply With Quote

Reply

Tags
addlayers, addlayerscontrols, multiregion, 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
engineFoam with layers - pressure problems when adding layers mturcios777 OpenFOAM Running, Solving & CFD 23 January 4, 2023 22:56
OF 4.0 multiregion case calculate yPlus pbnuclex OpenFOAM Post-Processing 6 July 16, 2020 05:27
[snappyHexMesh] SnappyHex add layers, is it adding hex's? Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 1 July 18, 2016 10:05
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53
[snappyHexMesh] Effect of adding layers with sHM Nucleophobe OpenFOAM Meshing & Mesh Conversion 4 August 20, 2012 17:45


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