CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [mesh manipulation] Found loop on cell that resulted in an unexpected bad cut. (https://www.cfd-online.com/Forums/openfoam-meshing/220254-found-loop-cell-resulted-unexpected-bad-cut.html)

silviliril August 31, 2019 02:51

Found loop on cell that resulted in an unexpected bad cut.
 
2 Attachment(s)
Hello everyone,


I have been trying to mesh a geometry for the problem , "Cross flow over cylinder" in 2D.

After meshing i used refineMeshDict facility to refine more around cylinder.

But, I have been getting bad mesh at the intersections where two neighbouring blocks meet. Following is the warning it is showing:

Code:

FOAM Warning :
    From function void Foam::cellCuts::setFromCellCutter(const Foam::cellLooper&, const Foam::List<Foam::refineCell>&)
    in file meshCut/cellCuts/cellCuts.C at line 2393
    Found loop on cell 68422 that resulted in an unexpected bad cut.
    Suggestions:
      - Turn on the debug switch for 'cellCuts' to get geometry files that identify this cell.
      - Also keep in mind to check the defined reference directions, as these are most likely the origin of the problem.

Here is the refinemeshdict

Code:

set            c0;

coordinateSystem global;

globalCoeffs
{
    tan1            (1 1 0);
    tan2            (-1 1 0);
}

directions      ( tan1 tan2 );

useHexTopology  yes;

geometricCut    no;

writeMesh      no;

ToposetDict1
Code:

actions
(
    {
        name    c0;
        type    cellSet;
        action  new;
        source  cylinderAnnulusToCell;
        sourceInfo
        {
        p1 (0 0 -0.05);
        outerRadius 0.015;
        p2 (0 0 0.05);
        innerRadius 0.001;
        }
    }
);

TopoSetDict 2
Code:

actions
(
    {
        name    c0;
        type    cellSet;
        action  new;
        source  cylinderAnnulusToCell;
        sourceInfo
        {
        p1 (0 0 -0.05);
        outerRadius 0.011;
        p2 (0 0 0.05);
        innerRadius 0.005;
        }
    }
);


The bad cut cells can be seen in following pics.
The case file to reproduce the errors is also attached in google drive:
https://drive.google.com/file/d/1gUC...ew?usp=sharing


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