openFoamの計算実行について

668 views
Skip to first unread message

netu

unread,
Aug 11, 2021, 9:55:44 AM8/11/21
to OpenFOAM
はじめまして。
openFoam を初めたばかりのものなのですが、
今までは計算できていたのに下記の表記がでてきてしまい計算が実行されなくなってしまいました。
もしわかる方がいらっしゃいましたらお教えいただけないでしょうか。

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // /opt/openfoam8/bin/foamExec buoyantBoussinesqSimpleFoam -parallel | tee  log
----------------------------------------------------------------------------
Open MPI has detected that a parameter given to a command line
option does not match the expected format:

  Option: np
  Param:  /*--------------------------------*-

This is frequently caused by omitting to provide the parameter
to an option that requires one. Please check the command line and try again.
----------------------------------------------------------------------------

haruka tsubota @xsim.info

unread,
Aug 12, 2021, 6:33:29 PM8/12/21
to OpenFOAM
どういう方法でOpenFOAMを実行しているのか書かれていないので原因はわかりませんが、
エラーメッセージ自体は mpirun の np オプションの設定がおかしいというもののように見えます。
例えば mpirun を使って buoyantBoussinesqSimpleFoam を 6 並列で実行する場合は次のようにします。

「mpirun -np 6 buoyantBoussinesqSimpleFoam -parallel」

また、decomposeParDict が正しく書かれているかも確認した方が良いかもしれません。

2021年8月11日水曜日 22:55:44 UTC+9 netu:

netu

unread,
Aug 22, 2021, 9:38:17 PM8/22/21
to OpenFOAM
ありがとうございます
1度試してみます


2021年8月13日金曜日 7:33:29 UTC+9 haruka tsubota @xsim.info:

netu

unread,
Aug 23, 2021, 1:51:12 AM8/23/21
to OpenFOAM

mpirun -np 4 buoyantBoussinesqSimpleFoam -parallel
上記のようにnpオプションを設定したところ、下記のようなエラーが出てきてしまうのですが、
分かる方がいらっしゃいましたらお教えいただけないでしょうか。

[1] 
[1] 
[1] --> FOAM FATAL ERROR: 
[1] UPstream::init(int& argc, char**& argv) : environment variable MPI_BUFFER_SIZE not defined
[1] [2] 
[2] 
[2] --> FOAM FATAL ERROR: 
[2] UPstream::init(int& argc, char**& argv) : environment variable MPI_BUFFER_SIZE not defined
[2] 
[2]     From function static bool Foam::UPstream::init(int&, char**&)
[2]     in file [3] 
[3] 
[3] --> FOAM FATAL ERROR: 
[3] UPstream::init(int& argc, char**& argv) : environment variable MPI_BUFFER_SIZE not defined
[3] 
[3]     From function static bool Foam::UPstream::init(int&, char**&)
[3]     in file UPstream.C at line 103.
[3] 
FOAM parallel run aborting
[3] [0] 

[1]     From function static bool Foam::UPstream::init(int&, char**&)
[1]     in file UPstream.C at line 103.
[1] 
FOAM parallel run aborting
[1] 
UPstream.C at line 103.
[2] 
FOAM parallel run aborting
[2] 

[0] 
[0] --> FOAM FATAL ERROR: 
[0] UPstream::init(int& argc, char**& argv) : environment variable MPI_BUFFER_SIZE not defined
[0] 
[0]     From function static bool Foam::UPstream::init(int&, char**&)
[0]     in file UPstream.C at line 103.
[0] 
FOAM parallel run aborting
[0] 
[2] #0  [3] #0  [1] #0  [0] #0  Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&)Foam::error::printStack(Foam::Ostream&) at ??:?
 at ??:?
 at ??:?
 at ??:?
[0] #1  Foam::error::abort()[1] #1  Foam::error::abort()[3] #1  Foam::error::abort()[2] #1  Foam::error::abort() at ??:?
[3] #2  Foam::UPstream::init(int&, char**&) at ??:?
[0] #2  Foam::UPstream::init(int&, char**&) at ??:?
[1] #2  Foam::UPstream::init(int&, char**&) at ??:?
[2] #2  Foam::UPstream::init(int&, char**&) at ??:?
 at ??:?
[0] #3  Foam::argList::argList(int&, char**&, bool, bool, bool)[2] #3  Foam::argList::argList(int&, char**&, bool, bool, bool) at ??:?
 at ??:?
[1] #3  Foam::argList::argList(int&, char**&, bool, bool, bool)[3] #3  Foam::argList::argList(int&, char**&, bool, bool, bool) at ??:?
[1] #4   at ??:?
[0] #4   at ??:?
[2] #4   at ??:?
[3] #4  ???? in "/usr/bin/buoyantBoussinesqSimpleFoam"
[1] #5  __libc_start_main in "/usr/bin/buoyantBoussinesqSimpleFoam"
[2] #5  __libc_start_main in "/usr/bin/buoyantBoussinesqSimpleFoam"
[0] #5  __libc_start_main in "/usr/bin/buoyantBoussinesqSimpleFoam"
[3] #5  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
[1] #6   in "/lib/x86_64-linux-gnu/libc.so.6"
[2] #6   in "/lib/x86_64-linux-gnu/libc.so.6"
[0] #6   in "/lib/x86_64-linux-gnu/libc.so.6"
[3] #6  ???? in "/usr/bin/buoyantBoussinesqSimpleFoam"
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 1 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
 in "/usr/bin/buoyantBoussinesqSimpleFoam"
 in "/usr/bin/buoyantBoussinesqSimpleFoam"
 in "/usr/bin/buoyantBoussinesqSimpleFoam"
[kam-Endeavor-MR4800E:07196] 3 more processes have sent help message help-mpi-api.txt / mpi-abort
[kam-Endeavor-MR4800E:07196] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages

2021年8月13日金曜日 7:33:29 UTC+9 haruka tsubota @xsim.info:
どういう方法でOpenFOAMを実行しているのか書かれていないので原因はわかりませんが、
Reply all
Reply to author
Forward
0 new messages