CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] Using addLayers to create boundary layers OUTside of the added .stl file (https://www.cfd-online.com/Forums/openfoam-meshing/220928-using-addlayers-create-boundary-layers-outside-added-stl-file.html)

vince_cfd September 27, 2019 04:42

Using addLayers to create boundary layers OUTside of the added .stl file
 
1 Attachment(s)
Hello foamers,


the title says it all I believe. I want to add a boundary layer on the outside of the .stl file that I'm adding to my mesh.

What I have tried so far is using SHM, splitting the mesh in two regions, then use SHM again with only addLayers activated and an entry for the second region. But it does not work like that. I believe there should be an easy command to solve my problem...

This is what my addLayersControls looks like right now:
Code:

addLayersControls                                           
{
    relativeSizes          true;

    minThickness            0.05;
    finalLayerThickness    0.5;
    expansionRatio            1.2;
    nGrow                          1;

    featureAngle                90;
    slipFeaterAngle            30;
    nRelaxIter                      5;
    nSmoothSurfaceNormals    1;
    nSmoothNormals            3;
    nSmoothThickness      10;
    maxFaceThicknessRatio    0.5;
    maxThicknessToMedialRatio 0.3;
    minMedianAxisAngle    90;
    nBufferCellsNoExtrude    0;
    nLayerIter                  100;
   
    layers
        {
        fluid               
        {
        nSurfaceLayers 8;
        }
    }
}

The .stl that I added is stored in the cylinder region, the rest of the mesh is stored as fluid region.

Thank you already!
Vince


All times are GMT -4. The time now is 15:07.