dynamicsoar's log

主に研究関係のメモ

CFD

How to install & use VTKFortran (2022-03)

まえがき リンク https://github.com/szaghi/VTKFortran ←これがVTKFortran VTKFortranをWindowsでビルドする - Qiita ← 時間経過でファイル名などが微妙に変わってるけど非常に参考になる 環境 Ubuntu 20.04 LTS on WSL2 (Windows 10 Pro 21H2) Intel Fortr…

ANSYS Fluent: you should probably not use hybrid initialisation for transient, if there are 2 or more outlets

Effect of the initialisation methods on streamlines. Where there are two outlets, and you are computing transient simulation with ANSYS Fluent, you should probably not use hybrid initialisation. Or at least you should be careful and check …

Fluent for System Coupling (FSI): MPI should be Intel (for my case at least)

The title says it all. Otherwise somehow Fluent can run only up to 9 cores parallel. Not even 10 or 12 or 14 but 9. Strange but true...

ParaView 5.6 以降で Plot3D の function file を読むには .q file も読む必要がある、というバグ

discourse.paraview.org 現状、version 5.5.2 以下を使うのが手っ取り早い。あるいはダミーの .q file を用意するか。 実は自分も昔 FIELDVIEW を使っていた頃には中身のほぼ全部がダミーの .q file を作っていた*1。ダミーでないのは時刻や Mach, alpha な…

Export time series of STL files (for mesh, Q-isosurface) in ANSYS CFD-Post by script (playing session file)

Overview I'm still learning, but it seems that basically what you need to do for writing a script for CFD-Post are: Record the session Modify the session file (e.g., adding the for loop) Play the modified session file So I did the recordin…

Fluent UDF: CURRENT_TIME はコール時点の現在時刻を示すが、DEFINE_GRID_MOTION の引数として渡される time は「メッシュ移動後の時刻」を示している(ぽい)

タイトルのとおり。まだ確証はないんだけどテストした結果おそらくこれ。確かに各時刻でメッシュ移動は流れ計算より先に行われるので、「流れ場にとっての時刻」はメッシュ移動「後」になる、と思えば理屈はわかる。しかしいつものとおりマニュアルでこのへ…

Fluent UDF: NODE_POS_UPDATED で付与された MOVED フラグは NODE_POS_MOVABLE コマンドでリセットできる

問題編 DEFINE_GRID_MOTION を使って板とかを曲げたりしたいとき、メッシュ内の各 node は複数の face にまたがっている可能性があるので、UDF マニュアルのサンプルにあるように、 #include "udf.h" DEFINE_GRID_MOTION(my_dyn_mesh, domain, dt, time, dti…

Fluent で dynamic mesh の motion preview を TUI (journal) からやるには → solve/mesh-motion

タイトルで完結。コマンド名に preview って入ってないから TUI マニュアルで検索かけても出てこない…

ANSYS Meshing と Fluent (or Fluent Meshing) の表示する maximum skewness や minimum orthogonal quality が微妙に違う(原因不明)

再現手順 ANSYS Meshing でメッシュを作成し、maximum skewness を確認する。今回は 0.944 くらいだった。まぁ < 0.95 だし、いけるかな、と。 Fluent 用に .msh を export する(Workbench で Update とするのと同じことだが、自分はこちらを好む)。 Fluen…

ANSYS Fluent の autosave 間隔 n は「計算開始(再開)時点から n ステップごと」ではなく「現在ステップ/n が割り切れたら出力」の仕様っぽい

たとえば、非定常計算で、 ;; Autosave Every (time step) file/auto-save/data-frequency 10 solve/set/time-step 0.02 solve/dual-time-iterate 50 30 として 1 s まで計算したとする。こうすると、タイムステップが 10, 20, 30, 40, 50 のときに autosave…

Fluent の SRS (e.g. LES) で入口境界の Vortex Method に 1000 を超える渦を与えたい → scheme コマンドが必要

LES などの SRS (scale-resolved simulation) を行う際、入口境界に変動を与えるための Fluctuating Velocity method として Vortex Method を使う場合、公式は資料で「最低でも入口の face 数の 1/4 以上の個数の渦を生成するように指定しろ」と言っている…

Fluent の TUI (journal) で Cell Zone Conditions の設定を変える (e.g. ELES) には → define/boundary-conditions/fluid にある

Fluent で、Cell Zone Conditions の設定を変えたいことがある。Mesh motion とか、embedded LES (ELES) とか。しかし TUI からこの設定を変える方法がなかなか見つからなかった。もうサポートに聞こうかな?と思ったところで見つけた。 define/boundary-con…

Fluent で、確実に gzip 圧縮されたデータを吐き出す → root-name に .gz を付ければいい

だいぶ前から悩んでいたこれだが、同僚に教えてもらった。まさかこんな方法とは…自分だけならずっと気づかなかった。ありがたい。 GUI の場合 Workbench から起動した Fluent ではそもそも root-name の記入欄がないので、GUI からは設定不能。TUI を使うし…

Measurement of time-varying kinematics of a dolphin in burst accelerating swimming

基本情報 Title: Measurement of time-varying kinematics of a dolphin in burst accelerating swimming URL/DOI: https:// doi.org/10.1371/journal.pone.0210860 内容のまとめ Introduciton イルカの遊泳は、巡航の速度計測はけっこうあったが、瞬間的な…

Standalone ANSYS Fluent launched directly from Windows is (slightly?) different from Fluent launched from WorkBench

English I've been thinking they are identical and have never launched the standalone Fluent, but no, they are not. At least in a few ways. I was doing a tutorial on VOF + dynamics + dynamic mesh (fl00392). And I stumbled upon that in Autos…

ANSYS Fluent の UDF についての自分用メモ

NB! Dynamic meshing については別の記事に分けている: Dynamic meshing in Fluent - dynamicsoar's log UDFマニュアル*1は基本的に version 19.2 を参照しているが、たまに18.1も見ている(あまり変わらないと思うが…)。 定義の確認 macro 個別の関数のこ…

Dynamic meshing in Fluent

NB! UDF全般に関する事項は別記事に分けている: ANSYS Fluent の UDF についての自分用メモ - dynamicsoar's log Dynamic Mesh Setup > General > Transient Setup > Dynamic Mesh > tick "Dynamic Mesh" Setup > Dynamic Mesh > "Create/Edit..." Smoothin…

Fluent: write-settings & read-settings are extremely useful

I'm pretty sure you're tired of repeating the same (or similar) settings for loads of computation cases. At some point you noticed that you can use "Duplicate" the Fluent module in workbench. Yes it's useful. But there's an even better way…

run Fluent, export .cas and .dat, and compress them after computation (on Linux)

I could not find the way to specify the auto-save .cas & .dat files in the format of .cas.gz & .dat.gz, and I gave up to compress them using the journal file. Instead, I decided to compress them in the script file after the computation, if…

To use "Body of Influence" in ANSYS Meshing (at least in version 19), Physics Preference must be changed to CFD from Mechanical

The title says it all... we wasted more than an hour for this...

Tsubame 3.0 での ANSYS 並列計算ライセンスの消費のされかた

ANSYS には、1つアプリを起動するたびに消費するライセンスと、並列計算したときに特定の条件で消費するライセンスとの2つがある。前者はライセンスが余って無いとそもそも起動すらできないので省略。後者について。特定の条件とは、「ジョブごとに16を超え…

Fluent 18.1 で、定常RANS で予備計算 → LES で本番計算

だいぶ古いなーこれ…(2019-02-27) 定常 RANS の計算を普通にやる。ここでは(Workbench ではなく)スパコンでやったとする。ある程度収束した時点での .cas[.gz] と .dat[.gz] を保存しておく。 Workbench に、新しい Fluent モジュールをドロップして起動…

ANSYSメモ:CFD-Postで連番 data files を読み込ませるには

たぶんマニュアルに書いてあるだろうけど、ヒューリスティックに発見してしまったのでメモ。 連番の data files をまとめて認識してほしいとき、ファイル名を下記のようにリネームして、Load Results から .cas.gz を読めば良い: case file foo.cas.gz のよ…

Fluentメモ:periodic boundary condition の offset には符号がある

Periodic だからどっちからどっちでもいいじゃん、と思っていたんだけど、そうではなかったという話。周期境界は、Mesh interface で設定する。このとき、デフォルトだと offset 量は自動計算される。たとえば、2つの境界が y=0 と y=1 にあった場合、offset…

メモ:Fluent case & data files --> EnSight format --> read in ParaView

前置き ハマったところを中心にメモ。 状況としては、既に結果ファイルの cas & dat (時系列データ)があるが ParaView で開きたい、そしてどうやら EnSight 形式じゃないとまともに読めないっぽい、なんとかしたい、という感じ。 環境 Windows 10, 64 bit …

How to compile and load Fluent UDF on Linux

Corrections to the UDF manual (version 18.1) Due to the following typographical errors, you cannot make the UDF. So you need to fix these: Page 341-341: the path “path/ansys_inc/v181/fluent/fluent18.1.0/src/” is inccorect. In reality, it s…

journal file を使った CUI での Fluent の実行について

前置き マニュアルとしては、ANSYS Fluent Text Command List というものがある。あるが、辞書のようにコマンドが羅列されているだけで、実際の書き方がわからない。ひどいことに、Fluent の他のマニュアルを見てもごくごく簡単な例(単なる solve/iterate 1…

Changing the font sizes in ANSYS Fluent (for high DPI display)

Solution Assuming the version is 17.2, navigate to: C:\Program Files\ANSYS Inc\v172\fluent\fluent17.2.0\cortex\resources and open cxdisplay.qss with a text editor (e.g. Atom, Notepad++, or whatever). You may need the Admin right (I did). I…

【本読み】『凹凸形の殻に隠された謎』

内容が忘却の彼方に行きそうなので、ここで一旦公開する。 対象の本 椎野勇太『凹凸形の殻に隠された謎 腕足動物の化石探訪(シリーズ:フィールドの生物学)』、東海大学出版部(発行当時は「東海大学出版会」かも)、2013. ISBN 978-4-486-01849-0 公式: …