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

nonorthogonal corrections, when and where to apply?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Gerhard

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2012, 06:00
Default nonorthogonal corrections, when and where to apply?
  #1
New Member
 
Andrej
Join Date: Feb 2012
Posts: 2
Rep Power: 0
andrejkoch is on a distinguished road
Hello!
I found that it is necessary to apply nonorthogonal corrections when working with skew meshes. What exactly are the necessary steps?

Do I merely add a loop
Code:
for (int nonOrth=0; nonOrth<nNonOrthCorr; nonOrth++){
  solve(...);
}
around each "solve(...)"?
The Programmer's guide mentions that snGradCorrection is also needed on nonorthogonal meshes. But snGradCorrection isn't called in any of the solvers.

What if I solve several equations in a segregated solver?
Do I run the loop on each individual equation:
Code:
for (int nonOrth=0; nonOrth<nNonOrthCorr; nonOrth++){ Eqn1.solve(); }
for (int nonOrth=0; nonOrth<nNonOrthCorr; nonOrth++){ Eqn2.solve(); }
Or do I run the loop over the whole sequence:
Code:
for (int nonOrth=0; nonOrth<nNonOrthCorr; nonOrth++){ Eqn1.solve(); Eqn2.solve(); }
In the example: http://openfoamwiki.net/index.php/Ho...ation_to_solve
TEqn.solve() is added *outside* the non-orthogonal corrections loop. Why? Is TEqn not affected by non-orthogonality?

If you know a good explanation for understanding the details of non-orthogonal corrections, please tell.

Thank you
Andrej
andrejkoch is offline   Reply With Quote

Old   February 7, 2012, 09:13
Default
  #2
New Member
 
Join Date: Jun 2009
Posts: 27
Rep Power: 16
dshawul is on a distinguished road
I am not an expert but I think the non-orthogonal corrections are applied as implicit and explicit term in the discretization of the equation to be solved. Look into Jasaak's thesis to see how it is done. For example the poison pressure equation solution has a laplacian term which can benefit from non-orthogonal correction. So whenever the loop is called the explicit correction term is modified thereby refining the solution. It is all automatic so you don't have to add a snGradCorrection term yourself, just specify that correction should be applied in the discretized equation in fvSchemes.
Hope it helps.
dshawul is offline   Reply With Quote

Old   February 7, 2012, 10:45
Default
  #3
New Member
 
Andrej
Join Date: Feb 2012
Posts: 2
Rep Power: 0
andrejkoch is on a distinguished road
Daniel, thank you. That answers my first question.

Now what if I have to solve a sequence of equations?

And why is TEqn not corrected in the example from the Wiki?

Thank you
Andrej
andrejkoch is offline   Reply With Quote

Old   February 7, 2012, 16:36
Default
  #4
New Member
 
Join Date: Jun 2009
Posts: 27
Rep Power: 16
dshawul is on a distinguished road
Quote:
Originally Posted by andrejkoch View Post
Daniel, thank you. That answers my first question.

Now what if I have to solve a sequence of equations?

And why is TEqn not corrected in the example from the Wiki?

Thank you
Andrej
I think solution of the pressure equation with non-orthogonal correction should finish first before solving the transport equation. Once you know the corrected velocity field then you can solve transport equation of T. I suppose you can apply the correction to the diffusion term of T as well ( any implicit laplacian or snGrad term on a grid with skewed cells will benefit from multiple corrections ). So in case of T , i guess the correction is only applied once. It maybe that the pressure equation benefits more from multiple corrections depending on the skeweness of the grid.
Hope it helps
Wiki link: http://www.cfd-online.com/Wiki/Diffusion_term
dshawul is offline   Reply With Quote

Old   May 5, 2021, 13:29
Default
  #5
New Member
 
Gerhard
Join Date: Mar 2017
Posts: 26
Rep Power: 9
Gerhard is on a distinguished road
Hi,
This is an old thread, but if someone comes across it due to their interest in non-orthogonality, have a look at the following videos which describe it quite well:
https://www.youtube.com/watch?v=Dg2PwX6yxYY
https://www.youtube.com/watch?v=yU7r8mYK3bs
dlahaye likes this.
Gerhard 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



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