このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
openfoam:tutorial [2020/12/02 11:08] michiya |
openfoam:tutorial [2021/01/09 14:37] (現在) |
||
---|---|---|---|
行 19: | 行 19: | ||
</ | </ | ||
+ | Thirdpatryに付属するParaViewをビルドには時間がかかるため,あらかじめ用意したバイナリのParaViewで可視化できる. | ||
+ | ParaViewでは*.foamの形式でOpenFOAMの結果を読み込むことができる. | ||
+ | < | ||
+ | $ touch result.foam | ||
+ | $ paraview result.foam | ||
+ | </ | ||
+ | |||
+ | {{: | ||
===== Dam Break (Parallel) ===== | ===== Dam Break (Parallel) ===== | ||
行 31: | 行 39: | ||
blocks | blocks | ||
( | ( | ||
- | hex (0 1 5 4 12 13 17 16) (46 10 1) simpleGrading (1 1 1) | + | |
- | hex (2 3 7 6 14 15 19 18) (40 10 1) simpleGrading (1 1 1) | + | hex (2 3 7 6 14 15 19 18) (40 10 1) simpleGrading (1 1 1) |
- | hex (4 5 9 8 16 17 21 20) (46 76 1) simpleGrading (1 2 1) | + | hex (4 5 9 8 16 17 21 20) (46 76 1) simpleGrading (1 2 1) |
- | hex (5 6 10 9 17 18 22 21) (4 76 1) simpleGrading (1 2 1) | + | hex (5 6 10 9 17 18 22 21) (4 76 1) simpleGrading (1 2 1) |
- | hex (6 7 11 10 18 19 23 22) (40 76 1) simpleGrading (1 2 1) | + | hex (6 7 11 10 18 19 23 22) (40 76 1) simpleGrading (1 2 1) |
); | ); | ||
</ | </ | ||
行 60: | 行 68: | ||
< | < | ||
$ rm 0/ | $ rm 0/ | ||
+ | $ blockMesh | ||
$ setFields | $ setFields | ||
$ decomposePar | $ decomposePar | ||
行 69: | 行 78: | ||
$ paraFoam | $ paraFoam | ||
</ | </ | ||
+ | |||
+ | {{: | ||
+ | {{: | ||
+ | |||
+ | ===== Dam Break (Parallel and Scotch) ===== | ||
+ | |||
+ | < | ||
+ | $ foamCloneCase damBreakFine/ | ||
+ | </ | ||
+ | |||
+ | system/ | ||
+ | < | ||
+ | - method | ||
+ | + method | ||
+ | </ | ||
+ | |||
+ | 残りの手順は[[tutorial# | ||
+ | |||
+ | {{: | ||
+ | {{: | ||
+ |