-
@尚善若水 只能说你的case有可能是nut或nuTilda边界条件设置的原因,不全是,因为实际上一方程湍流模型的坑远不止这些。你用的是SADDES,那我就用SA举个例子。
这是OpenFOAM里自带的SA模型,李老师整理出来的公式。(摘自李老师的无痛苦NS方程):
笔记里这个模型公式没有任何问题,和OpenFOAM里的代码是一模一样的。
但是,实际上它只是Spalart Allmaras文献里的方程4,只适用于高雷诺数。对于低雷诺数或者更宽的适用范围,应该用方程(12)的。完整的低雷诺数SA模型的所有公式都写在附录里了。很遗憾,OpenFOAM原生代码把这个更详细的模型忽略了,只植入了简化的高雷诺数模型。
于是,你最不想看到的事情可能就发生了。OpenFOAM里SADES、SADDES和SAIDDES都是基于适用于高雷诺数的SA,那么,你的近壁计算大概率就是不准的了。
还有,OpenFOAM里植入与原始文献不符的湍流模型还有kOmega2006和kOmegaSST(包括kOmegaSSTSAS、kOmegaSSTDES、kOmegaSSTDDES和kOmegaSSTIDDES)。所以,用这些模型的时候都要留心。
-
@wangfei9088 确实如此👍
-
@wangfei9088 厉害啊,方程12要不要植入搞一下。算是一个低雷诺数SpalartAllmaras湍流模型。
但是,实际上它只是Spalart Allmaras文献里的方程4,只适用于高雷诺数。对于低雷诺数或者更宽的适用范围,应该用方程(12)的。
另外我把你的这句话加到了笔记里面,说的太好了。
-
-
A "trip" in the context of computational fluid dynamics (CFD) and the Spalart-Allmaras turbulence model refers to a turbulent trip. Specifically:
A turbulent trip is a device used to trigger a transition from laminar to turbulent flow in a fluid dynamics experiment or simulation. Fluids can flow in either a smooth, laminar state or a chaotic, turbulent state depending on conditions like velocity, viscosity, and surface roughness.
In CFD using the Spalart-Allmaras model, adding a "trip term" attempts to model the effects of an actual physical trip device that would be used in an experimental flow setup. This trip modeling triggers the transition to turbulence in the simulation.
So in the sentence you referenced, the "trip term" refers to an addition made to the Spalart-Allmaras equations that mimics the effect of a physical turbulent trip, forcing a transition from laminar to turbulent modeling. This trip modeling can be important to accurately replicating real experimental conditions in the CFD simulation.
-
没人试试SA么,那我还是把坑填上吧。
@xpqiu 在 Wray-Agarwal湍流模型 中说:
A "trip" in the context of
@李东岳 在 Wray-Agarwal湍流模型 中说:
只需要搞ft2就可以。要简单不少。那个ft1太长了。
对,我也这么理解的。
含 两项,不含 的SA模型,of10版本。mySpalartAllmaras里wmake,pitzDaily里simpleFoam。感兴趣的可以试试,已测试,没问题,供参考。mySpalartAllmarasTurbulenceModel.tar.xz
注:11楼和14楼的源项少了一个系数
,应该是:
-
-
https://journals.sagepub.com/doi/abs/10.1177/09576509241236533
这个文章里面把WA模型演变成了DES模型
-
@李东岳 没有下载权限,看不了
-
-
@wangfei9088 大佬,按照这种方式自定义湍流模型,会提示
Duplicate entry
的警告,直接忽略就可以吗?这个帖子提到不要有这种警告,就要复制很多文件,感觉挺麻烦Duplicate entry laminar in runtime selection table incompressibleMomentumTransportModel #0 /home/install/OpenFOAM/OpenFOAM-10/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam5error14safePrintStackERSo+0x32) [0x7f0a93735072]
-
@coolhhh 在 Wray-Agarwal湍流模型 中说:
按照这种方式自定义湍流模型,会提示 Duplicate entry 的警告
是的,这种加 libs 的方法就经常出现这种情况。直接忽略即可。
@coolhhh 在 Wray-Agarwal湍流模型 中说:
不要有这种警告,就要复制很多文件
是的,如果不想要这种警告,依赖这个模型的文件就都要修改。不难,但比较麻烦。
-
@wangfei9088 感谢大佬
16/21