今野です.
The resulting distance can be tested with the test application Test-wallDist in applications/test/wallDist. For example, the following image shows the distance field for a modified cavity tutorial case where only the top patch is of type wall.
上記のように,applications/test/wallDist に Test-wallDist という,
まさしく壁面からの距離を書き出すアプリケーションがあるので,
これをビルドして動かすのが楽かと思います.
```bash
pushd $FOAM_APP/test/wallDist # アプリケーションのソースのディレクトリに移動
wmake # アプリケーションをビルド
popd # 元のディレクトリに戻る
Test-wallDist # アプリケーションを実行
```
なお,上記のWEBページはv1906のものですが,OpenFOAM-7にも applications/test/wallDist はありました.
ただし,Test-wallDist.C は,ソース
を見るとわかる通り,格子を移動後,
格子や壁面からの距離などを次の時刻に書き込むという余計な事を59-83行目でしているので,
$FOAM_APP/test/wallDist を別名でコピーし,Make/files での EXEの実行名を変えた上で,
ソースをビルドしたほうが尚良いと思います.
以上です.
2021年10月13日水曜日 17:39:51 UTC+9 LongGe: