gauss upwind和gauss linearUpwind grad(U)结果差异大
-
@xpqiu 确实是只有仿真结果,没有直接的试验结果参考。。但是这个仿真是为风吹雪这个物理过程做参考的,他们是做了风吹雪的风洞试验的,按照这个仿真结果算风吹雪的现象和风洞试验对上了。。。
另外我看您的设置有两个问题:
1.我看k文件里把壁面kLowREWallFucntion改成了kqrWallFunction。我记得kLowREWallFunction是适合低、高雷诺的,kqrWallFunction只适合高雷诺。我就是按比较保险的设置,所以用的kLowREWallFunction(当然现在看来yPLus那么大,没有必要用这个低、高雷诺都可以的壁面)。您这里为什么改成kqrWallFunction呢
2.fvSolution里面把nNonOrthogonalCorrectors从2改成0了。我记得这个是好像用来修正网格非正交的,我的网格有非正交的网格,这里改动的目的是啥呢。。 -
cfdOnline里关于这个非正交修正次数的讨论
Non-orthogonal correctorsare here to save you if your code is blowing up because the mesh is so non-orthogonal that the first solution is driving the velocity to be stupid. If your velocity is OK, you just keep doing "normal" correctors, without special need for non-orthogonal ones.I use them on bad meshes (some people call them "industrial") when the solver is giving me trouble. Usually, 1 is enough, and I never used more than 3.
Hope this helps,
Hrvoje
按照hjasak的说法,nNonOrthogonalCorrectors实际不是修正网格非正交的,而是使得计算不容易发散。又学到了一点 -
@cccrrryyy
这个链接里面解释了为什么nut需要设置壁函数:https://www.slideshare.net/fumiyanozaki96/openfoam-36426892
这几个视频里面解释了壁函数以及k,epsilon的壁面处理的原则:
https://www.youtube.com/watch?v=fJDYtEGMgzs&t=4s
https://www.youtube.com/watch?v=zSIgKsQSa9k
https://www.youtube.com/watch?v=RKoXFpwi2go其他资料:
On the Wall Boundary Condition for Turbulence Models , By JONAS BREDBERGKalitzin, G., Medic, G., Iaccarino, G., & Durbin, P. (2005). Near-wall behavior of RANS turbulence models and implications for wall functions. Journal of Computational Physics, 204(1), 265–291.
Popovac, M., & Hanjalic, K. (2007). Compound wall treatment for RANS computation of complex turbulent flows and heat transfer. Flow, Turbulence and Combustion, 78(2), 177–202.
OpenFOAM里面的代码实现通常跟文献的描述有点差异,所以也只能是尽可能去了解原理,结合代码来理解,然后实践。也不是所有的出错都能找到合理的解释