|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Join Date: Jul 2013
Posts: 124
Rep Power: 13 ![]() |
Hi all,
Quick question: is there any general rule about when to pick leastSquares vs. Gauss linear for Grad(U)? From what I've read, it seems like leastSquares is more accurate when you have skewness in the mesh. Thanks! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 ![]() |
Quick answer: Always use LSQ unless you run into troubles.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Jul 2013
Posts: 124
Rep Power: 13 ![]() |
Great, thanks so much!
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Jul 2013
Posts: 124
Rep Power: 13 ![]() |
Hi, sorry one more question, does that also apply to Grad(p)?
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Peter Baskovich
Join Date: Jul 2014
Posts: 127
Rep Power: 11 ![]() |
I've seen it recommend to use LSQ unless you're on a tet mesh because of osciillitatory behaviour. I've also seen it recommend to never apply limiters on p field and that p should use Gauss linear as it is not a convective term.
|
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 ![]() |
Why would it matter if the gradient you are evaluating is part of the convective term or not?
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Join Date: Jul 2013
Posts: 124
Rep Power: 13 ![]() |
@akidess: So do you always use leastSquares for both grad(U) and grad(P)? I had one experience recently where a low-Reynolds number solution converged with grad(p) Gauss linear but diverged with grad(p) leastSquares. I guess this is probably due to a poorly designed mesh?
Thanks! |
|
![]() |
![]() |
![]() |
![]() |
#8 | |
Senior Member
Peter Baskovich
Join Date: Jul 2014
Posts: 127
Rep Power: 11 ![]() |
Quote:
gradient schemes |
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
p_rgh initial residual no change with different settings | manuc | OpenFOAM Running, Solving & CFD | 3 | June 26, 2018 15:53 |
2nd Order Convergence Problem for 3D Airfoil | turkmengokce | OpenFOAM Running, Solving & CFD | 1 | September 10, 2015 07:20 |
A turbulent test case for rhoCentralFoam | immortality | OpenFOAM Running, Solving & CFD | 13 | April 20, 2014 06:32 |
how to modify fvScheme to converge? | immortality | OpenFOAM Running, Solving & CFD | 15 | January 16, 2013 13:06 |
solution diverges when linear upwind interpolation scheme is used | subash | OpenFOAM | 0 | May 29, 2010 01:23 |