CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

HOW to set a circular face by toposet

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 7, 2013, 05:26
Question HOW to set a circular face by toposet
  #1
New Member
 
Jessica
Join Date: Sep 2013
Posts: 2
Rep Power: 0
Jessica is on a distinguished road
Hello,everyone
There is a simple blockmesh, it is easy to set a square face on the boundray by topoSet using 'boxtoface' as follows.

Code:
BLOCKMESH:
vertices
(
    (-0.5 -0.5 0)
    ( 0.5 -0.5 0)
    ( 0.5 -0.5 1)
    (-0.5 -0.5 1)
    (-0.5  0.5 0)
    ( 0.5  0.5 0)
    ( 0.5  0.5 1)
    (-0.5  0.5 1)
);

blocks
(
    hex (0 1 2 3 4 5 6 7) (20 20 20) simpleGrading (1 1 1)
);

edges
(
);

boundary
(
    base
    {
        type patch;
        faces
        (
            (0 1 5 4)
        );
    }
    outlet
    {
        type patch;
        faces
        (
            (3 2 6 7)
        );
    }
    sides
    {
        type patch;
        faces
        (
            (0 4 7 3)
            (0 1 2 3)
            (1 5 6 2)
            (4 5 6 7)
        );
    }
);

TOPOSET:
actions
(
    {
        name    f0;
        type    faceSet;
        action  new;
        source  boxToFace;
        sourceInfo
        {
            box (-0.1 -0.001 -0.1)(0.1 0.005 0.1);
        }
    }
);
But I don't know how to set a circular face using the toposet, and I am puzzled after 'cylinderToCell' , please help me!

Code:
TOPOSET
  {
        name    c0;
        type    cellSet;
        action  new;
        source  cylinderToCell;
        sourceInfo
        {
         p1       (0 0 -0.001); // start point on cylinder axis
         p2       (0 0 0.025);   // end point on cylinder axis
         radius   0.2;
        }
    }
Thanks in advance!!!
Jessica is offline   Reply With Quote

Old   September 11, 2013, 05:33
Default
  #2
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 226
Rep Power: 6
Artur is on a distinguished road
As far as I know, cylinderToCell will select all cells inside the cylinder with the two circle centres at p1 and p2 with radius r, that's about it. If your mesh is a box then it will not turn it into a cylindrical mesh, I think.

The way I use it to create AMI interfaces is by snapping the mesh to a cylindrical shape and then using the cylinderToCell to select the snapped cells, much as in the propeller tutorial.
Artur is offline   Reply With Quote

Old   September 12, 2013, 20:54
Default
  #3
New Member
 
Jessica
Join Date: Sep 2013
Posts: 2
Rep Power: 0
Jessica is on a distinguished road
Quote:
Originally Posted by Artur View Post
As far as I know, cylinderToCell will select all cells inside the cylinder with the two circle centres at p1 and p2 with radius r, that's about it. If your mesh is a box then it will not turn it into a cylindrical mesh, I think.

The way I use it to create AMI interfaces is by snapping the mesh to a cylindrical shape and then using the cylinderToCell to select the snapped cells, much as in the propeller tutorial.
Hi,Autur,
Thank you for you reply. I'm trying.
Jessica is offline   Reply With Quote

Reply

Tags
toposet circular

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
non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Native Meshers: blockMesh 7 April 17, 2013 05:42
problem in toposet Ahmed Khattab OpenFOAM Pre-Processing 10 March 24, 2013 16:18
[ICEM] ICEM Scripting Issues tylerplowright ANSYS Meshing & Geometry 17 June 3, 2012 21:23
Import netgen mesh to OpenFOAM hsieh Open Source Meshers: Gmsh, Netgen, CGNS, ... 32 September 13, 2011 05:50
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


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