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).
新建数组vector Um【10】想初始化为(0, 0, 0)改怎么办呢?
@zp气固两相流 它和 scalar 0 作点乘?
要把vector初始化为(0 0 0)? vector::zero 可以。
vector
vector::zero
@李东岳 谢谢李老师点拨,用{vector::zero}可以初始化矢量数组
@浪迹天大 谢谢您的回复 用{vector::zero}可以初始化矢量数组
再更贴一下,openfoam中矢量数组可以新建为矢量列表形式,初始化方法为List<vector> A(n,vector::zero),希望对和我用同样疑问的人有帮助
List<vector> A(n,vector::zero)