Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
在使用OpenFOAM编译公式的时候,发现了个问题:pow(N, 1/2)与pow(N,0.5)输出的结果不一样,OpenFOAM编译公式时幂函数是使用pow()函数吗?我翻看了自带的一些湍流模型中发现了pow4()或者pow3()这种写法,难道是OpenFOAM的幂函数编写规则和C++不一样?下面上图,图中分别是pow(N, 1/2)与pow(N,0.5)的结果,明显量纲不一样了。
解决了,把1换成1.0就好了,感谢 @麦迪文 师兄的帮助。