blockmeshについて

378 views
Skip to first unread message

梢和樹

unread,
Aug 18, 2014, 8:26:57 AM8/18/14
to open...@googlegroups.com

はじめまして梢といいます。

最近OpenFOAMを使い始めた初心者です。

以下のようにblockmeshを設定して実行したところ

-->FOAM FATAL ERROR

Inconsistent number of faces between block pair 0 and 1

From function blockMesh::calcMergeInfo()

in file blockMesh/blockMeshMerge.C at line 221.

FOAM exiting

というエラーが出ます。

これは何が原因なのでしょうか?

分かる方教えてくださいお願いします。

 

/*--------------------------------*- C++ -*----------------------------------*\

| =========                 |                                                 |

| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |

|  \\    /   O peration     | Version:  2.1.1                                 |

|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |

|    \\/     M anipulation  |                                                 |

\*---------------------------------------------------------------------------*/

FoamFile

{

    version     2.0;

    format      ascii;

    class       dictionary;

    object      blockMeshDict;

}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

 

convertToMeters 0.001;

 

vertices

(

(0 0 0)

(0 9.96194698 0.87155742)

(0 9.96194698 -0.87155742)

(0 298.8584094 2.61467228)

(0 298.8584094 -2.61467228)

(300 0 0)

(300 9.96194698 0.87155742)

(300 9.96194698 -0.87155742)

(300 298.8584094 2.61467228)

(300 298.8584094 -2.61467228)

 

);

 

blocks

(

hex (0 1 2 0 5 6 7 5) (300 1 1) simpleGrading (1 1 1)

hex (1 3 4 2 6 8 9 7) (300 100 1) simpleGrading (1 1 1)

 

);

 

edges

(

);

 

boundary

(

    front

    {

        type wedge;

        faces 

        (

            (0 1 6 5)

                                           

        );

    }

    back

    {

        type wedge;

        faces 

        (

            (0 2 7 5)

                                            

        );

    }

    tankWall

    {

        type patch;

        faces 

        (

            (1 2 4 3)

                                          (3 4 9 8)

                                           

        );

    }

    inlet

    {

        type patch;

        faces 

        (

            (0 1 2 0)

        );

    }

    outlet

    {

        type patch;

        faces 

        (

            (5 6 7 5)

            (6 7 9 8)                                   

        );

    }

    axis

    {

        type empty;

        faces 

        (

            (0 5 5 0)

           

        );

    }

);

 

mergePatchPairs

(

);

 

 

// ************************************************************************* //

ohbuchi

unread,
Aug 18, 2014, 8:50:17 PM8/18/14
to open...@googlegroups.com
こんにちは。
UserGuideをよくご覧ください。各ブロックの節点番号ならびにはルールがあります。
また、2つのブロックで共有されるエッジのブロック数は必ず一致させる必要があります。
下記の様にブロック定義を変更することでメッシュが作成できました。

blocks
(
    hex (5 0 1 6 5 0 2 7) (300 1 1) simpleGrading (1 1 1)
    hex (6 1 3 8 7 2 4 9) (300 100 1) simpleGrading (1 1 1)
);

以上、ご参考まで。



2014年8月18日月曜日 21時26分57秒 UTC+9 Kazuki:

Kazuki

unread,
Aug 19, 2014, 12:34:25 AM8/19/14
to open...@googlegroups.com

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

早速試してみます。 

 

Reply all
Reply to author
Forward
0 new messages