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

[snappyHexMesh] non manifold points

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Casper123

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2024, 11:58
Smile non manifold points [answered]
  #1
New Member
 
Casper
Join Date: Dec 2023
Posts: 1
Rep Power: 0
Casper123 is on a distinguished road
Hey OpenFoamers,

For my simulation of a rotating wheel (which currently is only a simple cylinder), I have created a mesh using snappyHexMesh. However, when running my case the velocity always explodes and I do not think it is due to the boundary conditions as it usually starts somewhere within the mesh. I could not find any logic behind where the issue starts based on looking at each timestep. My simulation will be an MRF approach and using the pimpleFoam solver. For now, I have set the rotation to zero for simplicity.

However, after running checkMesh -writeSets vtk, it outputs a file called nonManifoldPoints.vtk. When loading it in ParaView it looks something like the attached images, where the red dots are the output. I cannot find which setting triggers these nonManifoldPoints or see why these points are non manifold using paraview.

I will provide my snappyHexMeshDict below, in that file I refer to the wheel surface as 'wiel'. Hope someone can help me out!

Edit:
I found the issue. The refinementSurfaces in the snappyHexMeshDict wants to refine both the MRF and the wiel surfaces. This caused an issue, therefore I disabled the refinementSurfaces MRF. This did remove the creation of the MRF cellzone, so for this I used topoSet.

Regards,
Casper

Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7  
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      snappyHexMeshDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

castellatedMesh true;
snap            true;
addLayers       true;

geometry
{
    wiel
    {
        type triSurfaceMesh;
        file "wiel.stl";
    }
    MRF
    {
        type searchableCylinder;
        point1 (0 -150 0);
        point2 (0  150 0);
        radius 300;
    }
}


castellatedMeshControls
{

    maxLocalCells 100000;

    maxGlobalCells 2000000;

    minRefinementCells 0;

    nCellsBetweenLevels 2;

    maxLoadUnbalance 0.10;

    features
    (
        {
            file "wiel.eMesh";
            level 0;
        }
    );

    resolveFeatureAngle 30;

    refinementSurfaces
    {
        MRF
        {
            level (0 0);
            cellZone cellMRFzone;
            faceZone faceMRFzone;
            cellZoneInside inside;
        }

        wiel
        {
            level (0 0);
        }
    }

    refinementRegions
    {
        MRF
        {
            mode inside;
            levels ((1E15 1));
        }
        
    }

    locationInMesh (1000.0001 0 0); // Inside point

    allowFreeStandingZoneFaces true;
}

// Settings for the snapping.
snapControls
{

    nSmoothPatch 3;

    tolerance 0.1;

    nSolveIter 300;

    nRelaxIter 10;

    nFeatureSnapIter 10;

    implicitFeatureSnap true;

    explicitFeatureSnap false;

    multiRegionFeatureSnap true;
}

// Settings for the layer addition.
addLayersControls
{

    relativeSizes true;

    layers
    {
		wiel
		{
			nSurfaceLayers 3;
		}
    }

    expansionRatio 1.0;

    finalLayerThickness 0.3;

    minThickness 0.25;

    nGrow 0;

    featureAngle 30;

    nRelaxIter 5;

    nSmoothSurfaceNormals 1;

    nSmoothNormals 3;

    nSmoothThickness 10;

    maxFaceThicknessRatio 0.5;

    maxThicknessToMedialRatio 0.3;

    minMedianAxisAngle 90;

    nBufferCellsNoExtrude 0;

    nLayerIter 50;

    nRelaxedIter 20;
}

meshQualityControls
{
    #include "meshQualityDict"

    relaxed
    {
        maxNonOrtho 75;
    }
}

writeFlags
(
);

mergeTolerance 1E-6;


// ************************************************************************* //
wht likes this.

Last edited by Casper123; January 16, 2024 at 03:38. Reason: Found the cause of the issue
Casper123 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
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 09:21
[snappyHexMesh] Help with Snappy: no layers growing GianF OpenFOAM Meshing & Mesh Conversion 2 September 23, 2020 08:26
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
[snappyHexMesh] SHM Layer Addition Phase dickcruz OpenFOAM Meshing & Mesh Conversion 4 November 1, 2018 07:05
Equidistant points on sample surface? HenningW OpenFOAM Post-Processing 0 August 22, 2016 04:04


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