0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

OpenFOAMの結果をblenderで可視化してみる#03 paraviewによる可視化

Last updated at Posted at 2023-02-11

はじめに

前回からの続き。
今回は,openFOAMの結果をParaviewで表示して,可視化するまでを行う。

Paraviewによる解析結果の表示

Paraviewによる可視化の際には,OpenFOAMから呼び出す(paraFoam)ことが可能。
ただし,今回は,計算はWSL(Ubuntu),可視化はwindowsで行うので,
Paraviewを別途起動して,読み込みようにする。
具体的には,解析したケースフォルダに,{好きな名前}.foamを保存して,それをParaviewで開くだけ

#paraviewがアクセスできる場所にデータを移す
mkdir /mnt/c/data
cp -r ~/openfoam/dambreak /mnt/c/data/
cp -r ~/openfoam/iobasins /mnt/c/data/
touch /mnt/c/data/dambreak/run.foam
touch /mnt/c/data/iobasins/run.foam 

Paraviewでの可視化例

dambreak.gif

Paraviewでの可視化例 iobasins

iobasins.gif

Paraviewでは,alpha>=0.5とした水の領域のみを表示するよう,Clipを適用している。
clipのparameter

  • Scalars: alpha.water
  • Value:0.5
  • Invert:off

余談,動画の作成方法

Paraviewでは,動画の作成は,Save_Animationで行うことができる。
保存形式は下記の通りで,画像形式だと連番ファイルが作成される。

  • 画像形式
    • bmp
    • jpeg
    • png
    • tif
  • 動画形式
    • avi
    • mp4
    • ogv

68747470733a2f2f71696974612d696d6167652d73746f72652e73332e61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f302f323630313937362f33643866343530342d376566322d666536322d633465612d356262303838663135363531.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?