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

[snappyHexMesh] not capturing feature edges

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2023, 09:49
Default not capturing feature edges
  #1
cbe
New Member
 
Join Date: Mar 2023
Posts: 1
Rep Power: 0
cbe is on a distinguished road
Dear all,

I have recently started to get into SHM but am having problems with not being able to resolve component edges cleanly and not being able to snap to them. I am trying to mesh a fan and getting these problems on the trailing edge.

with surfaceFeatures i am capturing the edges by defining an angle. With paraview i checked if i got the edges of interest correctly (attached PNG, red lines are from the .obj, grey is the stl body). This does all seem correct.
in shmDict i use castellatedMeshControls / features to refine around those edges

Here's my surfaceFeaturesDict code

Code:
FoamFile

{

    format      ascii;

    class       dictionary;

    object      surfaceFeaturesDict;

}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
surfaces ("fan.stl");
includedAngle   130;
writeObj         yes;
snappyHexMeshDict:

Code:
FoamFile

{

    format      ascii;

    class       dictionary;

    object      snappyHexMeshDict;

}





castellatedMesh true;

snap            true;

addLayers       false;





geometry

{

    fan

    {

        type triSurfaceMesh;

        file "fan.stl";

    }





};







castellatedMeshControls

{





    maxLocalCells 1000000;

    maxGlobalCells 20000000;

    minRefinementCells 0;

    nCellsBetweenLevels 1;







    features

    (

        {

            file "fan.extendedFeatureEdgeMesh";

            level 5;

        }

    );



    refinementSurfaces

    {

        fan

        {

            // Surface-wise min and max refinement level

            level (4 4);

        }

    }



    resolveFeatureAngle 30;



    locationInMesh (0.00 0.00 0.27); // Inside point	

    allowFreeStandingZoneFaces true;

}









snapControls

{

    nSmoothPatch 3;

    tolerance 1.0;

    nSolveIter 300;

    nRelaxIter 5;

    nFeatureSnapIter 30;

    implicitFeatureSnap false;

    explicitFeatureSnap true;

    multiRegionFeatureSnap false;

}





.

.

.
I tryed to get a better solution with different settings
  • played around with level of "fan.extendedFeatureEdgeMesh" from 5 to 10
  • different refinement levels on surface
  • resolveFeatureAngle 5-30
  • nFeatureSnapIter 5-30

At first i thought it might be a problem with the very thin surface on the trailing edge, but i also get crinkles on the edges of the airfoil profile itself.

Do the more experienced users still have one or two tips that I could test? I would be very happy about any help.

Thanks.
Attached Images
File Type: png surfaceFeatures.PNG (70.7 KB, 8 views)
File Type: jpg crinkled_mesh.jpg (80.3 KB, 9 views)
cbe 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
[snappyHexMesh] stringing of feature edges Hr_kules OpenFOAM Meshing & Mesh Conversion 0 July 22, 2022 08:30
[snappyHexMesh] snappyHexMesh - 90° edges problem troth OpenFOAM Meshing & Mesh Conversion 22 October 22, 2021 10:28
[snappyHexMesh] snappyHexMesh stuck when snap is turned on yukuns OpenFOAM Meshing & Mesh Conversion 3 February 2, 2021 13:05
[snappyHexMesh] surfaceFeatureExtract error- Feature line extraction? anu.raghun OpenFOAM Meshing & Mesh Conversion 2 July 2, 2019 10:43
SimpleFoam & Theater jipai OpenFOAM Running, Solving & CFD 3 June 18, 2019 10:11


All times are GMT -4. The time now is 03:13.