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

[Other] topoSet Wrong number of faces.

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2015, 10:56
Question topoSet Wrong number of faces.
  #1
New Member
 
zech
Join Date: Oct 2014
Location: Cambridge,England
Posts: 22
Rep Power: 11
a19910112a is on a distinguished road
Hi Foamers. I came across the same problem as describeded in http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/128416-problems-holes-gaps-baffle-internal-wall-zero-thickness.html.

I did the same thing as described in the referred post.

To solve this problem, I located the problem at topoSet. It recognise a wrong number of faces.

My blockMeshDict is as :
Code:
convertToMeters 1;

vertices
(

        (0    0    0    )    //    0
        (2.4424    0    0.1065158)    //    1
        (2.4424    0    -0.1065158)    //    2
        (0    1    0    )    //    3
        (2.4424    1    0.1065158)    //    4
        (2.4424    1    -0.1065158)    //    5
        (4.25    0    0.1853472)    //    6
        (4.25    0    -0.1853472)    //    7
        (4.25    1    0.1853472)    //    8
        (4.25    1    -0.1853472)    //    9  

 
);

//local axes (z x y)

blocks
(

        hex    (1      2    0    0    4    5    3    3    )    innerCore        (1    26    10)    simpleGrading    (1    1    1)
        hex    (6    7    2    1    8    9    5    4    )    radialReflector        (1    18    10)    simpleGrading    (1    1    1)
);

edges
(
); 
...
This generate a mesh of a wedge which is shown in the first attached pic. There are 10 meshes in the y direction.

I want to add a baffle wall in the middle of the wedge, which is shown in the second attachment.

The toposet file :
Code:
actions
(
   
    {
        name    baffle;
        type    faceSet;
        action  new;
        source  boxToFace;
        sourceInfo      
    box (2.4424    0 -0.107) (2.4424 1 0.107); //24
        }
    }

    {
        name    baffle;
        type    faceZoneSet;
        action  new;
        sourceInfo
        source  setToFaceZone;
        {
            faceSet baffle;
        }
    }

);
the log it generates:
Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh fluid for time = 0

Reading topoSetDict

Time = 0
    mesh not changed.
Created faceSet baffle
    Applying source boxToFace
    Adding faces with centre within boxes 1((2.4424 0 -0.107) (2.4424 1 0.107))
    faceSet baffle now size 9
Created faceZoneSet baffle
    Applying source setToFaceZone
    Adding all faces from faceSet baffle ...
    faceZoneSet baffle now size 9

End
As can be seen, topoSet recognises only 9 faces where 10 are expected, which gives the baffle shown in the second pic.

Can anyone tell me where the problem could be and how can I solve it ?

By the way, I also tried to use points 42, 15, 51, as the two points after the box item in topoSet. In those cases only 0 face could be recognised. This seems to be due to some similar or related reasons.

Thanks
Attached Images
File Type: jpg Screenshot from 2015-05-14 14:29:33.jpg (17.1 KB, 23 views)
File Type: jpg Screenshot from 2015-05-14 14:48:27.jpg (15.7 KB, 21 views)
a19910112a is offline   Reply With Quote

Old   June 9, 2015, 06:41
Default
  #2
Member
 
Howar
Join Date: Mar 2015
Posts: 53
Rep Power: 11
Howard is on a distinguished road
Quote:
Originally Posted by a19910112a View Post
Hi Foamers. I came across the same problem as describeded in http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/128416-problems-holes-gaps-baffle-internal-wall-zero-thickness.html.

I did the same thing as described in the referred post.

To solve this problem, I located the problem at topoSet. It recognise a wrong number of faces.

My blockMeshDict is as :
Code:
convertToMeters 1;
 
vertices
(
 
        (0    0    0    )    //    0
        (2.4424    0    0.1065158)    //    1
        (2.4424    0    -0.1065158)    //    2
        (0    1    0    )    //    3
        (2.4424    1    0.1065158)    //    4
        (2.4424    1    -0.1065158)    //    5
        (4.25    0    0.1853472)    //    6
        (4.25    0    -0.1853472)    //    7
        (4.25    1    0.1853472)    //    8
        (4.25    1    -0.1853472)    //    9  
 
 
);
 
//local axes (z x y)
 
blocks
(
 
        hex    (1      2    0    0    4    5    3    3    )    innerCore        (1    26    10)    simpleGrading    (1    1    1)
        hex    (6    7    2    1    8    9    5    4    )    radialReflector        (1    18    10)    simpleGrading    (1    1    1)
);
 
edges
(
); 
...
This generate a mesh of a wedge which is shown in the first attached pic. There are 10 meshes in the y direction.

I want to add a baffle wall in the middle of the wedge, which is shown in the second attachment.

The toposet file :
Code:
actions
(
 
    {
        name    baffle;
        type    faceSet;
        action  new;
        source  boxToFace;
        sourceInfo      
    box (2.4424    0 -0.107) (2.4424 1 0.107); //24
        }
    }
 
    {
        name    baffle;
        type    faceZoneSet;
        action  new;
        sourceInfo
        source  setToFaceZone;
        {
            faceSet baffle;
        }
    }
 
);
the log it generates:
Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
 
Create polyMesh fluid for time = 0
 
Reading topoSetDict
 
Time = 0
    mesh not changed.
Created faceSet baffle
    Applying source boxToFace
    Adding faces with centre within boxes 1((2.4424 0 -0.107) (2.4424 1 0.107))
    faceSet baffle now size 9
Created faceZoneSet baffle
    Applying source setToFaceZone
    Adding all faces from faceSet baffle ...
    faceZoneSet baffle now size 9
 
End
As can be seen, topoSet recognises only 9 faces where 10 are expected, which gives the baffle shown in the second pic.

Can anyone tell me where the problem could be and how can I solve it ?

By the way, I also tried to use points 42, 15, 51, as the two points after the box item in topoSet. In those cases only 0 face could be recognised. This seems to be due to some similar or related reasons.

Thanks
Hi friend, I also have some problem that when I use the toposet it shows cellzoneset size 0. but I think my boxes is defined right. Have you solve your problem?
Howard is offline   Reply With Quote

Reply

Tags
creatbaffles, mesh, toposet

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 10:23
[snappyHexMesh] Help with Snappy: no layers growing GianF OpenFOAM Meshing & Mesh Conversion 2 September 23, 2020 09:26
parallel run OpenFoam Srinath Reddy OpenFOAM Running, Solving & CFD 13 February 27, 2019 10:15
foam-extend_3.1 decompose and pyfoam warning shipman OpenFOAM 3 July 24, 2014 09:14
[blockMesh] --> foam fatal error: lillo763 OpenFOAM Meshing & Mesh Conversion 0 March 5, 2014 11:27


All times are GMT -4. The time now is 04:22.