gambitToFoamのエラーについて

261 views
Skip to first unread message

SARU

unread,
Aug 2, 2010, 9:06:57 PM8/2/10
to OpenFOAM
お世話になっております.SARUです.

現在,3次元計算を行っているのですが,snappyHexMeshで格子を生成すると,マシンパワーの限界で模型が正確に生成することができないの
で,比較的マシンパワーを要しないgambitのTgridで作成した格子をOpenFOAM用に変換をして計算を行おうと考えております.

しかしながら,gmabitで生成した.neuファイルを変換しようとgambitToFoamを実行すると,以下のようなエラーが発生致します.

Trying to specify a boundary face 3(44355 44354 27913) on the face on
cell 137707 which is either an internal face or already belongs to
some other patch. This is face 35845 of patch 3 named
SOCBT_a4_Mesh.#0 Foam::error::printStack(Foam::Ostream&) in "/home/
user1/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/user1/OpenFOAM/OpenFOAM-1.5/lib/
linuxGccDPOpt/libOpenFOAM.so"
#2 Foam::polyMesh::polyMesh(Foam::IOobject const&,
Foam::Field<Foam::Vector<double> > const&, Foam::List<Foam::cellShape>
const&, Foam::List<Foam::List<Foam::face> > const&,
Foam::List<Foam::word> const&, Foam::List<Foam::word> const&,
Foam::word const&, Foam::word const&, Foam::List<Foam::word> const&,
bool) in "/home/user1/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/
libOpenFOAM.so"
#3 main in "/home/user1/OpenFOAM/OpenFOAM-1.5/applications/bin/
linuxGccDPOpt/gambitToFoam"
#4 __libc_start_main in "/lib/libc.so.6"
#5 __gxx_personality_v0 in "/home/user1/OpenFOAM/OpenFOAM-1.5/
applications/bin/linuxGccDPOpt/gambitToFoam"


From function polyMesh::polyMesh
(
const IOobject& io,
const pointField& points,
const cellShapeList& cellsAsShapes,
const faceListList& boundaryFaces,
const wordList& boundaryPatchTypes,
const wordList& boundaryPatchNames,
const word& defaultBoundaryPatchType
)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 483.

FOAM aborting

アボートしました

上記.neuファイルをfluentで表示すると,特にエラーは発生しないのですが,gambitToFoamを実行すると,発生致します.

もし,ご存知の方がいらっしゃいましたらご教示を宜しくお願いします.




koba

unread,
Aug 3, 2010, 12:14:23 AM8/3/10
to OpenFOAM
kobaと申します。

私の個人的推測ですが、
FLUENTは、*.mshなどGambitで作成したメッシュファイルでも、FLUENT内部でGridのcheckを
行い、2重に定義されたFaceなど修正するようです。
*.neuファイル中に、余分なFaceやGridが定義されているかもしれませんので、
gambit上でメッシュに関係ないfaceやGridを削除するとよいかもしれません。
私は、*.mshファイルを使用していますが、内部にfaceの壁を作らなければ、
fluentMeshToFoamでほとんど変換できています。
Gambitで*.neuではなく、*.mshファイルでexportして一度試されたらどうでしょうか。
                           以上

SARU

unread,
Aug 3, 2010, 10:06:47 AM8/3/10
to OpenFOAM
koba様

 ご返信ありがとうございます.

 ご教示頂いたように,.mshファイルでexportして,fluentMeshToFoamを実行したところ,やはり下記のエラーが生じておりま
す。

 face 0 does not belong to cell 122807. Face owner: -1 neighbour:
63936#0 Foam::error::printStack(Foam::Ostream&) in   "/work/OpenFOAM/
OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"

 face0という面がgambit上で表示されていないので場所が特定できませんが,下記のようにやはり同様のエラーが起きているようです.

http://www.cfd-online.com/Forums/openfoam-meshing-gambit/61704-fluentmeshtofoam-errorplease-help-me.html

 ヒールを試してもはじかれる箇所が1つ存在しているので,この箇所をもう少し模索してみようと思います.

koba

unread,
Aug 3, 2010, 11:20:36 PM8/3/10
to OpenFOAM
kobaです。

FLUENT(gambit)は、Faceの壁を定義できますが、これを使われていますか?
ver1.5マニュアル5.5.1 fluentMeshToFoamにある以下の特徴・・・の4番目に相当していないでしょうか?
相当していれば、下記を参照してください。
http://www.geocities.co.jp/penguinitis2002/study/OpenFOAM/internal_wall.html

On 8月3日, 午後11:06, SARU <g48...@nda.ac.jp> wrote:
> koba様
>
>  ご返信ありがとうございます.
>
>  ご教示頂いたように,.mshファイルでexportして,fluentMeshToFoamを実行したところ,やはり下記のエラーが生じておりま
> す。
>
>  face 0 does not belong to cell 122807. Face owner: -1 neighbour:
> 63936#0 Foam::error::printStack(Foam::Ostream&) in   "/work/OpenFOAM/
> OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
>
>  face0という面がgambit上で表示されていないので場所が特定できませんが,下記のようにやはり同様のエラーが起きているようです.
>
> http://www.cfd-online.com/Forums/openfoam-meshing-gambit/61704-fluent...
>
>  ヒールを試してもはじかれる箇所が1つ存在しているので,この箇所をもう少し模索してみようと思います.

SARU

unread,
Aug 4, 2010, 9:01:08 AM8/4/10
to OpenFOAM
koba様

 度々ご返信ありがとうございます.SARUです.

 gambitでは,フェイスの壁を定義しております.
 ご教示頂いた方法を試させて頂きました結果,
 fluent3DMeshToFoam では,

Dimension of grid: 3
Number of points: 559823
PointGroup: 1 start: 0 end: 559822. Reading points...done.
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
Number of cells: 3155839
CellGroup: 2 start: 0 end: 3155838 type: 1
Zone: 2 name: fluid type: fluid. Reading zone data...done.
Zone: 3 name: SOCBT_a4_Mesh type: wall. Reading zone data...done.
Zone: 4 name: wall type: wall. Reading zone data...done.
Zone: 5 name: outlet type: wall. Reading zone data...done.
Zone: 6 name: inlet type: wall. Reading zone data...done.
Zone: 8 name: default-interior type: interior. Reading zone
data...done.

FINISHED LEXING

--> FOAM Warning :
From function boundBox::boundBox(const pointField& points)
in file meshes/boundBox/boundBox.C at line 52
Cannot find bounding box for zero sized pointField, returning zero

といった.セグメントエラーが生じ,


 fluentMesgToFoamからsplitMeshを使用する方法では,

face 0 does not belong to cell 308639. Face owner: -1 neighbour:
829600#0 Foam::error::printStack(Foam::Ostream&)

 という前回と同事象のエラーが表示され,

  fluentMeshToFoam SOCBT.msh -writeSets -scale 0.001

 とコマンドを実行したのですが,constant/polyMesh/boundary内に上記エラーのため作成されていないように考えられます.
 別な模型で試したのですが,そちらでは.neuファイルで出力し,gambitToFoamで変換をして計算が流れたので,方向性としては正しい
と考えるのですが。

 再度,gambit内の格子を詳細に確認してみたいと思います.

On 8月4日, 午後12:20, koba <koba100...@gmail.com> wrote:
> kobaです。
>
> FLUENT(gambit)は、Faceの壁を定義できますが、これを使われていますか?
> ver1.5マニュアル5.5.1 fluentMeshToFoamにある以下の特徴・・・の4番目に相当していないでしょうか?
> 相当していれば、下記を参照してください。http://www.geocities.co.jp/penguinitis2002/study/OpenFOAM/internal_wa...
Reply all
Reply to author
Forward
0 new messages