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

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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

 


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 04:57.