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

[mesh manipulation] Non-orthogonal cells after refineMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By NablaDyn

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2018, 04:10
Default Non-orthogonal cells after refineMesh
  #1
Senior Member
 
NablaDyn's Avatar
 
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 10
NablaDyn is on a distinguished road
Hi all,


I searched the forum but did not find any solution or thread regarding my issue:


I use pretty good quality and smooth (pure) hex meshes in OF. Now, I want to refine the mesh using refineMesh and refineHexMesh on well-defined cellSets but neither utility manages to generate a valid mesh. After refinement all (I'm not quite sure but it seems like that) faces of the refined cells are highly non-orthogonal, rendering the result rubbish. The mesh looks appropriate, though.


So here's my question: Has anyone encountered the same and maybe found a remedy for this or does someone know what is going wrong here? I can provide checkMesh results before and after as well as some pictures (will do later).


Regards and thanks in advance,


Martin
NablaDyn is offline   Reply With Quote

Old   October 29, 2018, 09:30
Default
  #2
Member
 
Paul Palladium
Join Date: Jan 2016
Posts: 93
Rep Power: 10
Fauster is on a distinguished road
Quote:
Originally Posted by NablaDyn View Post
Hi all,


I searched the forum but did not find any solution or thread regarding my issue:


I use pretty good quality and smooth (pure) hex meshes in OF. Now, I want to refine the mesh using refineMesh and refineHexMesh on well-defined cellSets but neither utility manages to generate a valid mesh. After refinement all (I'm not quite sure but it seems like that) faces of the refined cells are highly non-orthogonal, rendering the result rubbish. The mesh looks appropriate, though.


So here's my question: Has anyone encountered the same and maybe found a remedy for this or does someone know what is going wrong here? I can provide checkMesh results before and after as well as some pictures (will do later).


Regards and thanks in advance,


Martin
Dear Martin,

I am facing exactly the same problem. refineMesh creates non-orthogonal cells when used multiple time on the same cell set. I tried to play with tolerance in controlDict without success. I thought it was due to reconstructParMesh that I used before but it's not the case. I tried the option use geometry or use hex without effect. I also tried to use refineMesh in parallel or in serial (no change !).

F
Fauster is offline   Reply With Quote

Old   October 29, 2018, 09:41
Default
  #3
Senior Member
 
NablaDyn's Avatar
 
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 10
NablaDyn is on a distinguished road
Hi Paul,


well, yet I did not solve my issue but, as my computational results do not seem to be very sensitive to the determined nonorthogonality, I assume it only is a matter of how nonorthogonality is computed for the newly introduced cells containing hanging nodes.



I suppose, by splitting cells in octree fashion, the locations of the new cell centroids cause high nonorthogonality where there was none before. I further assume that - given OF can handle hanging nodes by means of flow computations - this nonorthogonality might not pose a 'real' problem but rather the incapability of the mesh checks to account for properly account for hanging nodes.


Please, anyone, correct me if I'm wrong...
NablaDyn is offline   Reply With Quote

Old   August 2, 2019, 13:49
Default
  #4
New Member
 
Charlie Barraud
Join Date: Jun 2016
Posts: 5
Rep Power: 9
choch is on a distinguished road
Hello Paul and Martin,

I am facing the same error after iterating refineMesh on the same cell set. I tried to increase writePrecision in controlDict with no effect.

Did you ever find a solution to this problem ?

Regards,

C.
choch is offline   Reply With Quote

Old   August 2, 2019, 14:10
Default
  #5
Senior Member
 
NablaDyn's Avatar
 
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 10
NablaDyn is on a distinguished road
Hello Charlie,


indeed, I reviewed this specific problem recently. I'm pretty confident, that I have now understood what's the point after reading Juretic's thesis ("Error Analysis in Finite Volume CFD") and having a look at how cfMesh handles "split hexahedra", i.e. hexahedral cells that have been split in such a way that they now have a hanging node on at least one of its six cell faces:


Consider two adjacent hex cells, whereby one is decomposed in octree fashion into, say, 2 cells. As OpenFOAM treats any cell generically as arbitrarily polyhedral cell, it does not account in any special way for hanging nodes. Thus, non-orthogonality arises or increases locally as soon as such a non-symmetric (only one cell of a pair) is refined (non-ortghogonality is defined as the angle between the normal vector of the cell-connecting face and the vector connecting the cell centres of two neighbouring cells. The introduced non-orthogonality is thus a "real" numerical concern which reduces accuracy and might result in convergence degradation.

I hope this helps but much more I hope I'm right in my interpretation. Anyone correct me please if I'm wrong.
choch and mdk1 like this.
NablaDyn is offline   Reply With Quote

Old   August 2, 2019, 16:18
Default
  #6
New Member
 
Charlie Barraud
Join Date: Jun 2016
Posts: 5
Rep Power: 9
choch is on a distinguished road
Thank you very much for your answer Martin.

You are totally right. I was using cells with high aspect ratio in one direction. By refining the cells in that direction I was creating non-orthogonal cells.

By lowering the aspect ratio in the zone of refinement this issue was solved.

C.
choch is offline   Reply With Quote

Old   August 6, 2019, 08:27
Default
  #7
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 7
Carlo_P is on a distinguished road
I'm having a similar problem using improveMeshQuality.
I used it, but in the end, I have a worst mesh.
You can see the report of checkMesh:


before:

Max cell openness = 7.35622e-16 OK.
Max aspect ratio = 29.7317 OK.
Minimum face area = 3.92408e-13. Maximum face area = 1.47856e-07. Face area magnitudes OK.
Min volume = 1.60163e-18. Max volume = 3.43724e-11. Total volume = 3.3578e-06. Cell volumes OK.
Mesh non-orthogonality Max: 84.9321 average: 12.8083
*Number of severely non-orthogonal (> 70 degrees) faces: 309.
Non-orthogonality check OK.
<<Writing 309 non-orthogonal faces to set nonOrthoFaces
Face pyramids OK.
***Max skewness = 4.04614, 2 highly skew faces detected which may impair the quality of the results
<<Writing 2 skew faces to set skewFaces
Coupled point location match (average 0) OK.

Failed 1 mesh checks.


after:


Checking patch topology for multiply connected surfaces...
Patch Faces Points Surface topology
Inlet_up 4820 5250 ok (non-closed singly connected)
Inlet_sx 17145 18233 ok (non-closed singly connected)
Outlet 1743 1893 ok (non-closed singly connected)
Wall 291922 301087 ok (non-closed singly connected)

Checking geometry...

Max cell openness = 4.85654e-16 OK.
Max aspect ratio = 41.771 OK.
Minimum face area = 1.25284e-12. Maximum face area = 1.65683e-07. Face area magnitudes OK.
Min volume = 1.20562e-18. Max volume = 3.30891e-11. Total volume = 3.3578e-06. Cell volumes OK.
Mesh non-orthogonality Max: 79.9838 average: 18.2811
*Number of severely non-orthogonal (> 70 degrees) faces: 797.
Non-orthogonality check OK.
<<Writing 797 non-orthogonal faces to set nonOrthoFaces
Face pyramids OK.
***Max skewness = 7.31313, 6 highly skew faces detected which may impair the quality of the results
<<Writing 6 skew faces to set skewFaces
Coupled point location match (average 0) OK.

Failed 1 mesh checks.

End


What do you think about?
Thanks a lot,
Carlo
Attached Images
File Type: jpg Schermata da 2019-08-06 14-21-20.jpg (128.0 KB, 16 views)
Carlo_P is offline   Reply With Quote

Old   August 6, 2019, 10:03
Default
  #8
Senior Member
 
NablaDyn's Avatar
 
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 10
NablaDyn is on a distinguished road
1. Your problem is not related to "mesh refinement", so I'd advice you to open a new thread, e.g., concering the improveMeshQuality utility (I suppose it belongs to cfMesh)


2. If you have a mesh that bad, an implicit improvement technique will surely not "improve" your mesh. I'm afraid you need to review your first mesh entirely. I suspect you don't capture geometric features well enough achieve a decent quality in that region (or even globally). But this is all speculation. Without seeing your mesh I cannot make any reliable statement.
NablaDyn is offline   Reply With Quote

Old   April 17, 2020, 09:56
Default
  #9
New Member
 
Athanasios Niotis
Join Date: Aug 2018
Posts: 12
Rep Power: 7
thanosniotis is on a distinguished road
Hello community,

I have been investigating the same condition two weeks now. I perform wave propagation simulation so i would like to refine the mesh to specific regions close to the water free surface. When i refine one cellSet at the three dimensions it creates non orthogonal mesh; but when i refine it only to Z anisotropicaly the refined cells are purely hexahedral. If anybody has an idea regarding this issue please let us know.

Best regards,
Thanos
thanosniotis 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] Layers not growing at all zonda OpenFOAM Meshing & Mesh Conversion 12 June 6, 2020 11:28
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
[ICEM] Problem with prism cells sidharath ANSYS Meshing & Geometry 0 September 1, 2015 07:09
snappyhexmesh remove blockmesh geometry philipp1 OpenFOAM Running, Solving & CFD 2 December 12, 2014 10:58
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43


All times are GMT -4. The time now is 19:11.