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/)
-   -   [mesh manipulation] cellSet - how to define a hollow cylinder (https://www.cfd-online.com/Forums/openfoam-meshing/110521-cellset-how-define-hollow-cylinder.html)

RugbyGandalf December 13, 2012 05:11

cellSet - how to define a hollow cylinder
 
1 Attachment(s)
Dear community,

i am facing the following problem:

I want to define three regions of a pipe, using cellSet and cellZoneSet. But after applying cylinderToCell for the outer region and doing the same (with smaller radius) for the middle region, the outer region won't reduce its cellsize. This leads to the problem, that the middle cells show up in the first cellSet, but in the second one as well. As a result, splitMeshRegions fails.

To make it clear, please have a look at my sketch and my topoSetDict.

Code:

actions
(

    {
        name    R1;
        type    cellSet;
        action  new;
        source  cylinderToCell;
        sourceInfo
        {
            p1 (0 0 -0.009950000000000001);
            p2 (0 0 -0.0014);
            radius 0.00291666613;
        }
    }
    {
        name    R2;
        type    cellSet;
        action  new;
        source  cylinderToCell;
        sourceInfo
        {
        p1 (0 0 -0.009950000000000001);
        p2 (0 0 -0.0014);
        radius 0.0021;
        }
    }

 
);

I am hoping for some help.

Regards,

Martin

wyldckat December 15, 2012 12:54

Greetings Martin,

Might I suggest you share an example case ready for testing? Even if not of a cylinder, perhaps of a cube?

As for your description:
Quote:

[...] the outer region won't reduce its cellsize.
Do you mean "cell size" or "cell count"??

Best regards,
Bruno

RugbyGandalf December 17, 2012 02:34

Dear Bruno,

thank you for your repeat.
I meant, that the number of cells is not decreasing, when applying the second action (for R2), but stays the same.

However, I figured out, how to solve this problem.
If someone faces the same problem, please have a look at the following code:

actions
(

{
name R1;
type cellSet;
action new;
source cylinderToCell;
sourceInfo
{
p1 (0 0 -0.009950000000000001);
p2 (0 0 -0.0014);
radius 0.00291666613;
}
}

{
name R1;
type cellSet;
action delete;
source cylinderToCell;
sourceInfo
{
p1 (0 0 -0.009950000000000001);
p2 (0 0 -0.0014);
radius 0.0021;
}
}
{
name R2;
type cellSet;
action new;
source cylinderToCell;
sourceInfo
{
p1 (0 0 -0.009950000000000001);
p2 (0 0 -0.0014);
radius 0.0021;
}
}


All times are GMT -4. The time now is 19:12.