|
[Sponsors] |
[snappyHexMesh] Adding layers in multiRegion Case |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 28, 2021, 17:27 |
Adding layers in multiRegion Case
|
#1 |
Member
Claudia
Join Date: Mar 2021
Posts: 43
Rep Power: 5 |
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 |
|
June 29, 2021, 04:46 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
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 |
|
June 29, 2021, 08:03 |
|
#3 |
Member
Claudia
Join Date: Mar 2021
Posts: 43
Rep Power: 5 |
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? |
|
June 29, 2021, 09:45 |
|
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
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 |
|
July 1, 2021, 09:40 |
|
#5 |
Member
Claudia
Join Date: Mar 2021
Posts: 43
Rep Power: 5 |
That tutorial helped a lot, I finally managed to get the layers that I wanted
Thank you so much for your help, Yann! |
|
Tags |
addlayers, addlayerscontrols, multiregion, snappyhexmesh |
|
|
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 |