M.TANAKA様
夜分遅くに返信ありがとうございます。
確かに他のソルバーに切り替えて計算をしてみるのはいい手だと感じました。
しかし、私はあくまで非定常流で計算をしたいと考えていたので、定常流解析ソルバーのsimpleFoamではそれが実現できません。同じ非圧縮性流体のソルバーならpisoFoamとpimpleFoamがあるので、そのどちらかをsimulationType laminarとして計算してみようと思います。
質問をしてから返信をいただくまでの間に調べていたのですが、postProcess(ポスト処理)が使えるのではないかと感じたため、
postProcess -list のコマンドを打ち込んだところ、
Available configured functionObjects;
74
(
CourantNo
Lambda2
.
.
.
shearStress
.
)
が確認できたので、せん断応力を求める希望が見えてきました。
ユーザーガイドも見ながら使い方を学んでいますが、以下の2つのサイトを参考にして今勉強しています。
OpenFOAMのpostProcessについて
【OpenFOAM】ポスト処理チートシート(随時更新)
2つ目のサイトに取得したい物理量と点の座標をしていしている例があったので、実際に試してみました。
systems内にprobesという新しいディクショナリファイルを用意し
「probes内容」
fields (shearStress); // 取得したい物理用
probeLocations
(
(x y z) // 取得したい点の座標(x y z)
);
を記入したあと、
caseDir$ で postProcess -func probes コマンドを実行しました。
その結果、以下のようなエラーが出てしまいました。
-------------------------------------------------------
Create time
Create mesh for time = 0
--> FOAM FATAL IO ERROR:
keyword type is undefined in dictionary "controlDict/functions/probes"
file: controlDict/functions/probes from line 4 to line 5.
From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
in file db/dictionary/dictionary.C at line 797.
--------------------------------------------------------
触っていないはずのcontrolDictについて言及されたので、これから詳しい内容を探っていきます。
とりあえず打ち込んでみた icoFoam -postProcess -func shearStressコマンドを実行したところ、次のようなオプションが提示されました。おそらくはオプションが不足していることを示されているのではないかと思っています。
--------------------------------------------------------
Usage: icoFoam [OPTIONS]
options:
-case <dir> specify alternate case directory, default is the cwd
-fileHandler <handler>
override the fileHandler
-hostRoots <(((host1 dir1) .. (hostN dirN))>
slave root directories (per host) for distributed running
-libs <(lib1 .. libN)>
pre-load libraries
-listFunctionObjects
List functionObjects
-listRegisteredSwitches
List switches registered for run-time modification
-listScalarBCs List scalar field boundary conditions (fvPatchField<scalar>)
-listSwitches List switches declared in libraries but not set in
etc/controlDict
-listUnsetSwitches
List switches declared in libraries but not set in
etc/controlDict
-listVectorBCs List vector field boundary conditions (fvPatchField<vector>)
-noFunctionObjects
do not execute functionObjects
-parallel run in parallel
-roots <(dir1 .. dirN)>
slave root directories for distributed running
-srcDoc display source code in browser
-doc display application documentation in browser
-help print the usage
Using: OpenFOAM-8 (see
https://openfoam.org)
Build: 8-1c9b5879390b
--> FOAM FATAL ERROR:
Wrong number of arguments, expected 0 found 1
Invalid option: -postProcess
Invalid option: -func
FOAM exiting
--------------------------------------------------------------
引き続き問題解決にむけて作業していきます。