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

[mesh manipulation] cellSet - how to define a hollow cylinder

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By RugbyGandalf

Reply
 
LinkBack Thread Tools Search this Thread 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: 16
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, 37 views)
RugbyGandalf is offline   Reply With Quote

Old   December 15, 2012, 13:54
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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: 16
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;
}
}
franciscofelis likes this.
RugbyGandalf 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
Induction heating of hollow cylinder cfd.geek FLUENT 1 August 12, 2022 17:38
HELP----Surface Reaction UDF Ashi Fluent UDF and Scheme Programming 1 May 19, 2020 22:13
An odd ERROR mdakbari Fluent UDF and Scheme Programming 7 April 4, 2016 05:30
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24


All times are GMT -4. The time now is 00:29.