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

[snappyHexMesh] HOW to set a circular face by toposet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 372
Rep Power: 19
Artur will become famous soon enough
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


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
[ICEM] Error in mesh writing helios ANSYS Meshing & Geometry 21 August 19, 2021 14:18
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 05:50
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 15:10.