原有的湍流模型加上非线性项雷诺应力的问题
-
李 李东岳 被引用 于这个主题
-
@SHUKK 老铁这个工作做的怎么样了
另外我这段时间也关注这些东西。初步有个这个结论,这个是我自己想的:
目前都是openfoam+pytorch而不是openfoam+libtorch,但是我测试openfoam+libtorch完全可以混编,并且编译起来很简单。如果openfoam+pytorch,这里面等于添加了个python的API。我就没太理解大家为什么用的都是openfoam+pytorch而不是openfoam+libtorch。后来我捉摸应该是机器学习那面好多人都是python程序员,然后就专门写了个python版本的pytorch,对于他们那一圈人,pytorch比较好用... 只有这一个原因。
因为我最近要试一下PINN求解PDE。对于那面来说,用纯粹的pytorch就可以。但是pytorch写起来比较麻烦。好多人就用了个接口交deepxde。
那对于为什么用的都是openfoam+pytorch而不是openfoam+libtorch,纯粹是用户习惯的原因,不知道我理解的对不对。
-
If you would prefer to write Python, and can afford to write Python, we recommend using the Python interface to PyTorch. However, if you would prefer to write C++, or need to write C++ (because of multithreading, latency or deployment requirements), the C++ frontend to PyTorch provides an API that is approximately as convenient, flexible, friendly and intuitive as its Python counterpart. The two frontends serve different use cases, work hand in hand, and neither is meant to unconditionally replace the other.
我理解的应该是对的。pytorch,libtorch看个人爱好