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

cellSet - how to define a hollow cylinder

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 13, 2012, 06:11
Default cellSet - how to define a hollow cylinder
  #1
Member
 
Martin
Join Date: Aug 2010
Location: Germany
Posts: 55
Rep Power: 6
RugbyGandalf is on a distinguished road
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
Attached Images
File Type: jpg sketch.jpg (26.3 KB, 22 views)
RugbyGandalf is offline   Reply With Quote

Old   December 15, 2012, 13:54
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   December 17, 2012, 03:34
Default
  #3
Member
 
Martin
Join Date: Aug 2010
Location: Germany
Posts: 55
Rep Power: 6
RugbyGandalf is on a distinguished road
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;
}
}
RugbyGandalf is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
3-d mesh gambit (cylinder within a cylinder) Jason ANSYS Meshing & Geometry 19 June 26, 2013 10:00
HELP----Surface Reaction UDF Ashi Fluent UDF and Scheme Programming 0 May 25, 2009 09:39
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48
planetary hollow cylinder rotating system antonio FLUENT 1 March 9, 2007 14:35
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


All times are GMT -4. The time now is 06:48.