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).
forAll ( , celli) 是什么意思,有知道的吗?
Hi,
very simple.
OpenFOAM经常需要对场进行处理,举例:对每个网格的值+1,那么就可以这样写:
forAll(U, i) {对每个网格的值+1}
forAll(U, i)
{对每个网格的值+1}
其中U表示要对U注册的网格遍历~i表示具体的网格的值。其中i可以随意更改,比如改成celli
forAll()的定义在UList.H的第421行,实际上是一个宏
它实际是在执行for语句。
@东岳 @jzheng forAll 循环是不是无法对边界 上的场量进行操作?
@mr-h http://www.cfd-china.com/topic/1199 看这个,通过forAll操作边界
forAll