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文件使用codestream创建如下的边界条件,要如何调用U的数据。
这是k的边界条件。
const volVectorField& U = mesh.lookupObject<volVectorField>("U");
@李东岳 好的,谢谢东岳老师。
@李东岳 东岳老师,还是会出现这个错误,出现在这两行。
@zz给我趴下 首先U是vector,并且是volField,所以赋值肯定是不对的。你试试U[i]
U[i]
@李东岳 好的,谢谢东岳老师