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

[snappyHexMesh] Failed Edge Snap with box geometry and correct feature capture

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By thiagomarinho
  • 1 Post By Clément_G
  • 1 Post By cibanez

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 26, 2019, 08:34
Default Failed Edge Snap with box geometry and correct feature capture
  #1
New Member
 
Thiago Marinho
Join Date: Nov 2014
Posts: 8
Rep Power: 11
thiagomarinho is on a distinguished road
I've been a follower of this forum for a long time and found many answers to several issues here.

I've been through many threads with snapping problems and tried a bunch of different 'solutions' with no success. I've ended up with a much simplified case in order to iterate more quickly, still without success.

I am using openfoam 4 on ubuntu 16.04. The attached picture shows how the mesh is failing to snap to the feature edges of a simple box.

Under snappy log there's mention to the feature edges:
Code:
Reading features.
Read edgeMesh box.eMesh
    points      : 8
    edges       : 12
    boundingBox : (0 0 0) (0.5 0.5 0.5)
But during the morph section when its supposed to snap this is the status it provides is:
Code:
Feature analysis : total master points:638 attraction to :
    feature point   : 0
    feature edge    : 0
    nearest surface : 0
    rest            : 638
Along with the error/warning:
Code:
--> FOAM Warning : Displacement (-0.0001886980013 0.0003330792974 -5.659949559e-05) at mesh point 45330 coord (0.03065552061 0.002054266242 0.01850754925) points through the surrounding patch faces
I've observed this warning in the tutorial run as well but unlike my case the mesh snapped to the edges.

So far I've tried:
  • Increasing the snapControls tolerance up to 10 in 0.5 to 2 increments
  • implicit feature recognition
  • explicit feature recognition
  • disabling castellating by having the surface mesh refinement at level 0
  • converting the eMesh feature file to .obj format before running snap
  • upgrading to ubuntu 18.04 and openfoam 6
  • Increasing the refinement level on the curve up to level 7
  • refining the base mesh as a whole before running snap
  • providing a much coarser base mesh and refining only on the body really stressing the castellation
  • simplified geometry (as the box on the picture) to provide reduced number of feature lines
  • extracting the feature line file from the gz format before running SHM
  • increasing snap iterations up to 200
  • using the snapEdge utility post SHM

All of these without success.

Right now it seems I'm on a dead end where the only 'solution' is to really refine the edge mesh so that the absolute deviation of the mesh cells are much smaller, but this is going to be time consuming and not guaranteed to provide sucessfull meshing of the layers.

Im sure that I'm missing something obvious here, could you please provide some input?

I've attached the Log and dictionary files for SHM.

kind regards, T
Attached Images
File Type: png Failed Box.png (25.8 KB, 175 views)
Attached Files
File Type: zip snappyHexMeshDict.zip (9.0 KB, 5 views)
Clément_G likes this.
thiagomarinho is offline   Reply With Quote

 

Tags
shm, shm snapping edges


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] No satisfying result with feature edge refinement Krapf OpenFOAM Meshing & Mesh Conversion 5 December 13, 2019 06:59
[snappyHexMesh] snappyHexMesh Parallel bad size error andrewpomeroy OpenFOAM Meshing & Mesh Conversion 2 April 2, 2018 01:08
[cfMesh] feature edge error zordiack OpenFOAM Community Contributions 3 October 11, 2016 06:09
[mesh manipulation] Sharp edge problem on concave patches using polyDualMesh without error keepfit OpenFOAM Meshing & Mesh Conversion 1 November 25, 2014 14:28
[snappyHexMesh] snappyHexMesh failure to snap to geometry Yadasol OpenFOAM Meshing & Mesh Conversion 1 November 17, 2014 05:00


All times are GMT -4. The time now is 07:26.