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

[snappyHexMesh] Damaged feature edges after boundary layer addition to other surfacfes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 8, 2020, 05:16
Default Damaged feature edges after boundary layer addition to other surfacfes
  #1
Member
 
X Meng
Join Date: Jun 2012
Location: Scotland
Posts: 89
Rep Power: 13
mxylondon is on a distinguished road
Dear foamers,

I am struggling with an issue that, by the stage of snapping, all good. However if I add boundary layers to a surface, it is found that some edges which have no relations to those boundary layers are damaged. Really confusing, cos they shouldn't be affected at all, since they are quite far from the surface with boundary layers and not even mentioned at all in the part of 'addLayersControls'.

Have you met this issue before?

Many thanks!
Attached Images
File Type: jpg Edge.jpg (60.2 KB, 64 views)
mxylondon is offline   Reply With Quote

Old   January 8, 2020, 05:40
Default
  #2
New Member
 
Najmiddin
Join Date: Dec 2018
Posts: 16
Rep Power: 7
najimaddin96 is on a distinguished road
Can you post your sHM dict?
I am guessing you turned off castellated and snapping before adding layers?

Yours, Nazhmiddin
najimaddin96 is offline   Reply With Quote

Old   January 10, 2020, 03:40
Default
  #3
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,066
Rep Power: 26
Yann will become famous soon enough
Hi !
Which OpenFOAM version are you using?



Yann
Yann is offline   Reply With Quote

Old   January 10, 2020, 04:41
Default
  #4
Member
 
X Meng
Join Date: Jun 2012
Location: Scotland
Posts: 89
Rep Power: 13
mxylondon is on a distinguished road
Quote:
Originally Posted by najimaddin96 View Post
Can you post your sHM dict?
I am guessing you turned off castellated and snapping before adding layers?

Yours, Nazhmiddin
Hi Nazhmiddin,

Thank you for your attention. Yes, I did switch off the first two steps when I added boundary layers, otherwise every time I have to wait a very long time to do castellation and snapping again. Theoretically switching-off the first two steps after I have them already shouldn't be a problem at all, am I right??

Cheers
Xiangyin
mxylondon is offline   Reply With Quote

Old   January 10, 2020, 04:49
Default
  #5
Member
 
X Meng
Join Date: Jun 2012
Location: Scotland
Posts: 89
Rep Power: 13
mxylondon is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hi !
Which OpenFOAM version are you using?



Yann
Hi Yann,

Thank you for your attention. The version I am using is v1712.

Cheers
mxylondon is offline   Reply With Quote

Old   January 10, 2020, 05:12
Default
  #6
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,066
Rep Power: 26
Yann will become famous soon enough
Then I'd definitely give a try to the mergePatchFacesAngle parameter. Check the v1712 snappyHexMeshDict annotated file, in the addLayersControls :

Code:
    // Static analysis of starting mesh

        // When not to extrude surface. 0 is flat surface, 90 is when two faces
        // are perpendicular
        featureAngle 130;

        // When to merge patch faces. Default is featureAngle. Useful when
        // featureAngle is large.
        mergePatchFacesAngle 45;

Cheers,
Yann
Yann is offline   Reply With Quote

Old   January 10, 2020, 07:00
Default
  #7
Member
 
X Meng
Join Date: Jun 2012
Location: Scotland
Posts: 89
Rep Power: 13
mxylondon is on a distinguished road
Many thanks Yann,

The additional bit works for me, the those edges not related to boundary layers are clear again!

However my simpleFoam-based simulation crashed again after solving this meshing issue, due to a huge number of time step continuity errors. I didn't have this issue at all before boundary layer addition. Which is quite strange and frustrating. Never seen this before.

Cheers
mxylondon is offline   Reply With Quote

Old   January 13, 2020, 05:36
Default
  #8
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,066
Rep Power: 26
Yann will become famous soon enough
Hi Xiangyin,


I don't think the "mergePatchFacesAngle" could be responsible for this behavior, but maybe something else in the mesh setup and/or the boundary conditions.


Maybe you can check your mesh and how the boundary layers has been extruded near your inlets/outlets. CheckMesh is not reporting any errors?


Cheers
Yann
Yann is offline   Reply With Quote

Old   January 23, 2020, 05:41
Default
  #9
Member
 
X Meng
Join Date: Jun 2012
Location: Scotland
Posts: 89
Rep Power: 13
mxylondon is on a distinguished road
Hi dear all,

Thank you so much for your time and attention on my issues. And really sorry to reply late after days.

I finally solved the issue with the help from my great tech manager. I made a silly mistake in pressure initialization and BC setup.

The pressure used in simpleFoam is kinematic pressure, but not the practical one we want to monitor. This mistake brought most of the problems I saw in this analysis.
mxylondon 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] Help with Snappy: no layers growing GianF OpenFOAM Meshing & Mesh Conversion 2 September 23, 2020 08:26
SimpleFoam & Theater jipai OpenFOAM Running, Solving & CFD 3 June 18, 2019 10:11
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20


All times are GMT -4. The time now is 15:08.