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

[Other] Mesh refinement

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2017, 10:41
Default Mesh refinement
  #1
Member
 
Join Date: Jun 2017
Posts: 73
Rep Power: 8
Friendly is on a distinguished road
Hello,

I would like to refine a mesh next to a wall with several layers with a structured mesh. The problem is that my body is not a cuboid, so the refinement box doesnt fitt well.

My first try to solve the problem:

I have created a faceSet and then added all cells which are in contact with the faces to cellSet and then refined my layer. But this method works only with one layer.

Code:
{
        name    cells_wall;
        type    faceSet;
        action  new;
        source  patchToFace;
        sourceInfo
        {
            name "Front|Back|Top|Bottom|p1|Left|Right";
        }
    }

{
        name    cells_wall;
        type    faceSet;
        action  subset;
        source  boxToFace;
        sourceInfo
        {
            box (-100 -100  0) (100 100 100);
        }
    }
    {
        name    box;
        type    cellSet;
        action  new;
        source  faceToCell;
        sourceInfo
        {
            set     cells_wall;
            option  any;
        }
    }
Does anyone know how to do this with n layers? For example to select all cells which are in contact with the cells of "cells_wall" and add them to the cellSet?
Friendly is offline   Reply With Quote

Reply


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 sticking point natty_king OpenFOAM Meshing & Mesh Conversion 11 February 20, 2024 09:12
y+ = 1 boundary layer mesh with snappyHexMesh Arzed23 OpenFOAM Running, Solving & CFD 6 November 23, 2022 15:15
[snappyHexMesh] Edge Refinement fracasce OpenFOAM Meshing & Mesh Conversion 3 December 2, 2017 13:30
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
[snappyHexMesh] problems using snappyHexMesh 2.1.0 on a supercomputer Sunxing OpenFOAM Meshing & Mesh Conversion 9 September 20, 2014 09:30


All times are GMT -4. The time now is 18:43.