0
0

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 3 years have passed since last update.

OpenFoamインストール

Posted at

#OpenFOAMのインストール手順
公式HPの手順で行う。
https://openfoam.org/download/8-ubuntu/

sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get -y install openfoam8

これでOpenFOAM8paraviewopenfoam56としてParaView 5.6.0がインストールされる。

#ユーザー設定
.bashrcファイルを編集
gedit ~/.bashrcsource /opt/openfoam8/etc/bashrcを最下部に追記

#チュートリアル(pitzDaily)を実行

cd $FOAM_RUN
cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily .
cd pitzDaily
blockMesh
simpleFoam
paraFoam

#Paraviewの再インストール
GPUのセッティングをする前にインストールをしたので、ParaviewがGPUを認識していなかった。(OpenGL vendorがVMwareになっていた。非常に動きが遅い)
なのでparaviewopenfoam56をアンインストールしてparaviewをインストールし直した

sudo apt-get remove paraviewopenfoam56 
sudo apt install paraview

Paraviewを再インストールすることで、GPUが認識された。
Paraview.png
前のバージョンでは非常にカクカクするような結果ファイルもヌルヌルと動くようになった。

##プチ問題
結果ファイルを開くとき毎回下記のダイアログが出てくる。
Paraview start.png
OpenFOAMReaderを選んで進めば問題ないが、いつかどうにかしたほうがいい気がする。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?