CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Mesh skewness correction

Register Blogs Community New Posts Updated Threads Search

Like Tree12Likes
  • 2 Post By malaboss
  • 1 Post By joegi.geo
  • 9 Post By ViktorKL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 21, 2012, 16:44
Default Mesh skewness correction
  #1
New Member
 
Jakub Pola
Join Date: Feb 2011
Posts: 22
Rep Power: 15
stainboy is on a distinguished road
Dear Foamers,

I have a question related to fvSchemes and interpolation schemes. I have read that mesh skewness affecs interpolation calculation. Is there a discretisation scheme which may help correcting this issue. I'm curious about skewLinear (Linear with skewness correction) from Numerical schemes. Does it somehow help with the calculations on skewed mesh?
Does skewCorrected is the same scheme in OF 2.1.1?

How to use it? Because wehn I want to put it in fvSchemes
Code:
interpolationSchemes
{
    default skewCorrected;
}
OF throws an error "Discretisation scheme not specified".

Thank you in advance for your help.
Jakub.
stainboy is offline   Reply With Quote

Old   October 23, 2013, 15:07
Default
  #2
Member
 
Malik
Join Date: Dec 2012
Location: Austin, USA
Posts: 53
Rep Power: 13
malaboss is on a distinguished road
Hi,

I have almost the same issue : how to use the skewness correction in OpenFOAM.

To me the skewness is critical especially when we do an interpolation. Hence it has to be mentionned in the interpolation schemes.

Plus, it may be used in the div schemes of non surfaceField like U : when we integrate over a cell, we will need to interpolate the field from the center to the surface. I guess for a surfaceField, it is useless.


If then we use :

Code:
interpolationSchemes
{
    default         linear skewCorrected;
}

divSchemes
{
    div(U)          Gauss linear skewCorrected;
}
it will run. But I compared the result with the result simulating Taylor Vertices on an unstructured grid using


Code:
interpolationSchemes
{
    default         linear;
}

divSchemes
{
    div(U)          Gauss linear;
}
And the resulting U and p are exactly the same.

Then I think I don't really understand how this skewness correction work...
hogsonik and smayoral like this.
malaboss is offline   Reply With Quote

Old   October 23, 2013, 15:29
Default
  #3
New Member
 
Jakub Pola
Join Date: Feb 2011
Posts: 22
Rep Power: 15
stainboy is on a distinguished road
Hey,

Neither do I understand. It would be great to hear little bit about that. Does anyone have some article.

Jakub.
stainboy is offline   Reply With Quote

Old   October 24, 2013, 10:47
Default
  #4
Senior Member
 
joegi
Join Date: Nov 2009
Location: genoa
Posts: 104
Rep Power: 17
joegi.geo is on a distinguished road
Hi,

Let me put my two cents.

Mesh skeness will reduce the order of face integration. Basically it is the deviation from the face center to the actual face integration point (the intersection between the vector joining two neighboring CV and the common face), and this is already taken care of in OF. You can refer to Hrvoje Jasak phd thesis.

If you have highly skewed cells you can use least squares for gradients calculation in order to reduce the numerical diffusion. Maybe increasing the number of corrector steps will help as well.

jg
RodriguezFatz likes this.
joegi.geo is offline   Reply With Quote

Old   November 27, 2013, 11:09
Default
  #5
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
Quote:
Originally Posted by joegi.geo View Post
Mesh skeness will reduce the order of face integration. Basically it is the deviation from the face center to the actual face integration point (the intersection between the vector joining two neighboring CV and the common face), and this is already taken care of in OF. You can refer to Hrvoje Jasak phd thesis.
Hi, could you tell me, where in the code and where in the thesis I can see how the skewness correction is applied in OF?

Edit:
Ok, so after some more reading and searching I found the following:
Mesh weights (also used for central differencing in OF) for the cell-to-face interpolation are calculated using this formula:
http://openfoamwiki.net/index.php/Op...on_%28class%29
In the source code one can find the calculation in the "surfaceInterpolation.C" file, function is called "makeWeights()".
Now, obviously this is not just the standard linear weighting, as it is not only the distance of cell centers to the cell face that counts, but also the projection of the vectors on the face normal.
But also in the thesis I can not find any derivation of that fomula, I just found some words about the diffusion correction. Unfortunately, I could not adapt the lines to the convective / face value calculation.
__________________
The skeleton ran out of shampoo in the shower.

Last edited by RodriguezFatz; November 28, 2013 at 08:26.
RodriguezFatz is offline   Reply With Quote

Old   November 9, 2018, 07:45
Default Declaration of skewCorrected schemes
  #6
New Member
 
Viktor Klüber
Join Date: Jan 2018
Posts: 10
Rep Power: 8
ViktorKL is on a distinguished road
Hello,


Moukalled'16 gives an extensive report on discretization schemes of convective, diffusive, source terms etc, and briefly describes how they are implemented in OpenFOAM. Concerning a skew corrected gradient scheme he indicates the definition as
Code:
gradSchemes
{
    default         Gauss skewCorrected linear;
}
skewCorrected seems to be an optional feature and apparently must be prefixed to the actual discretization scheme. Otherwise, it won't be recognized by OpenFOAM. Also the derivation of mesh weights, which have been mentioned in this thread by RodriguezFatz, are discussed.


I worked on an unstructured skew mesh like shown in the picture
Basic-geometry-of-the-pipeline-and-polyhedral-mesh-generated-on-the-pipe.png.jpeg
By using skew correction I was able to reduce truncation errors essentially.



In case you are working on unstructured meshes, I want to draw your attention on this thread. It is a discussion about the consistency of green-gauß and least-square gradient discretization schemes.


Regards,
Viktor
louisgag, kiski, yhdbuaa and 6 others like this.

Last edited by ViktorKL; November 9, 2018 at 12:15.
ViktorKL is offline   Reply With Quote

Reply

Tags
correction, discretisation, fvshemes, skewness


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
[ICEM] Unstructure Meshing Around Imported Plot3D Structured Mesh ICEM kawamatt2 ANSYS Meshing & Geometry 17 December 20, 2011 12:45
engrid -> save as .stl with boundarie codes Zymon enGrid 31 August 29, 2011 14:40
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Severe nonorthogonality and severe skewness problem qtian OpenFOAM Running, Solving & CFD 2 January 22, 2008 19:47
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 19:10


All times are GMT -4. The time now is 22:24.