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

[snappyHexMesh] illegal faces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 22, 2021, 13:53
Default illegal faces
  #1
New Member
 
Charles Rymal
Join Date: Dec 2020
Posts: 1
Rep Power: 0
charles1 is on a distinguished road
I start with a rectangular block mesh and have a stl file that defines a boundary between solid and fluid within that rectangular region.

My snappyHexMeshDict is:

Code:
castellatedMesh true;
snap            true;
addLayers       true;

geometry
{
    solid_to_fluid
    {
        type triSurfaceMesh;
        file "solid_to_fluid.stl";
    }
};

castellatedMeshControls
{
    refinementSurfaces
    {

        solid_to_fluid
        {
            level (3 4);
            faceZone solid_to_fluid;
            cellZone solid;
            cellZoneInside insidePoint;
            insidePoint (0.0 0.0 0.0);
        }

    }

    nCellsBetweenLevels 1;

    refinementRegions
    {}

    locationInMesh (-0.019 0.0 0.0);
}

snapControls
{
        nSmoothPatch 3;
}

addLayersControls
{
    relativeSizes       true;
    minThickness        1;
    finalLayerThickness 1;
    expansionRatio      1;
    layers
    {}
}

meshQualityControls
{
        maxNonOrtho     65;
}
and I get the following output at the end of the snappyHexMesh command:


Code:
Checking faces in error :
    non-orthogonality > 65  degrees                        : 13930
    faces with face pyramid volume < 1e-13                 : 1585834
    faces with concavity > 80  degrees                     : 0
    faces with skewness > 4   (internal) or 20  (boundary) : 0
    faces with interpolation weights (0..1)  < 0.05        : 0
    faces with volume ratio of neighbour cells < 0.01      : 0
    faces with face twist < 0.02                           : 0
    faces on cells with determinant < 0.001                : 0
Finished meshing with 1599764 illegal faces (concave, zero area or negative cell pyramid volume)
This sounds like an indication of poor quality cells, is that correct? When I open the mesh in paraview, it looks OK, so I'm not sure where these bad faces are.

When I try to run the solution (conjugate heat transfer), the solver stops saying that it encountered a negative temperature. So the solution seems to be diverging and I'm wondering if its because of a bad mesh.

I appreciate your help!
charles1 is offline   Reply With Quote

Old   April 12, 2023, 04:49
Default
  #2
Senior Member
 
Farzad Faraji
Join Date: Nov 2019
Posts: 206
Rep Power: 7
farzadmech is on a distinguished road
Dear Charles
did you find what is illegal faces means? I also have illegal faces after I do SHM but when I check the mesh using checkMesh everything seems fine. I have attached the figure to the post.


Thanks,
Farzad



Quote:
Originally Posted by charles1 View Post
I start with a rectangular block mesh and have a stl file that defines a boundary between solid and fluid within that rectangular region.

My snappyHexMeshDict is:

Code:
castellatedMesh true;
snap            true;
addLayers       true;

geometry
{
    solid_to_fluid
    {
        type triSurfaceMesh;
        file "solid_to_fluid.stl";
    }
};

castellatedMeshControls
{
    refinementSurfaces
    {

        solid_to_fluid
        {
            level (3 4);
            faceZone solid_to_fluid;
            cellZone solid;
            cellZoneInside insidePoint;
            insidePoint (0.0 0.0 0.0);
        }

    }

    nCellsBetweenLevels 1;

    refinementRegions
    {}

    locationInMesh (-0.019 0.0 0.0);
}

snapControls
{
        nSmoothPatch 3;
}

addLayersControls
{
    relativeSizes       true;
    minThickness        1;
    finalLayerThickness 1;
    expansionRatio      1;
    layers
    {}
}

meshQualityControls
{
        maxNonOrtho     65;
}
and I get the following output at the end of the snappyHexMesh command:


Code:
Checking faces in error :
    non-orthogonality > 65  degrees                        : 13930
    faces with face pyramid volume < 1e-13                 : 1585834
    faces with concavity > 80  degrees                     : 0
    faces with skewness > 4   (internal) or 20  (boundary) : 0
    faces with interpolation weights (0..1)  < 0.05        : 0
    faces with volume ratio of neighbour cells < 0.01      : 0
    faces with face twist < 0.02                           : 0
    faces on cells with determinant < 0.001                : 0
Finished meshing with 1599764 illegal faces (concave, zero area or negative cell pyramid volume)
This sounds like an indication of poor quality cells, is that correct? When I open the mesh in paraview, it looks OK, so I'm not sure where these bad faces are.

When I try to run the solution (conjugate heat transfer), the solver stops saying that it encountered a negative temperature. So the solution seems to be diverging and I'm wondering if its because of a bad mesh.

I appreciate your help!
Attached Images
File Type: jpg illegalFaces.jpg (53.6 KB, 14 views)
farzadmech 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
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 09:23
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
GenerateVolumeMesh Error - Surface Wrapper Self Interacting (?) AndreP STAR-CCM+ 10 August 2, 2018 07:48
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
snappyhexmesh remove blockmesh geometry philipp1 OpenFOAM Running, Solving & CFD 2 December 12, 2014 10:58


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