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).
如上图,这样一个积分公式,k是湍动能,z是计算域高度。目前我仅能想到通过步进来计算:
sum = 0; for(scalar z=0; z<=maxHeight; z=z+0.01) { sum += z*sqrt(k)*0.01; }
想问下各位大佬怎么写成OpenFOAM风格的代码
你这样写可以没问题