SnappyHexMesh セルの除去が実行されない

306 views
Skip to first unread message

kabocha

unread,
Jun 18, 2014, 7:14:35 AM6/18/14
to open...@googlegroups.com
いつもお世話になっております。

SnappyHexMeshの使用に際し,セル除去が上手くいきません。
locationInMeshの設定を内部に対しても外部も対しても
試してみましたが,除去されることはありませんでした。

設定に間違いはありませんでしょうか。
何らかのアドバイスを頂ければ幸いです。
よろしくお願い致します。


/*------------------------------------------*- C++ -*----------------------------------*\
| =========  
| \\      /  F ield               | OpenFOAM: The Open Source CFD Toolbox
|  \\    /   O peration       | Version:  2.2.0
|   \\  /    A nd                | Web:      www.OpenFOAM.org 
|    \\/     M anipulation  | 
\*---------------------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

castellatedMesh true;
snap            false;//true;//
addLayers       false;//true;

geometry
{
    sampleCar.stl
    {
        type triSurfaceMesh;
        name sampleCar;
    }

    Box1
    {
        type searchableBox;
        min (-0.03 -0.012 -0.0025);
        max ( 0.06  0.02   0.0125);
    }
};


castellatedMeshControls
{

    // Refinement parameters
    maxLocalCells 100000;

    maxGlobalCells 2000000;

    minRefinementCells 10;

    maxLoadUnbalance 0.10;

    nCellsBetweenLevels 3;


    // Explicit feature edge refinement
    features
    (
        {
            file "sampleCar.eMesh";
            level 1;
        }
    );

    // Surface based refinement
    refinementSurfaces
    {
        sampleCar
        {
            level (5 5);
            patchInfo
            {
                type wall;
                inGroups (sampleCarGroup);
            }
        }
    }

    resolveFeatureAngle 30;


    // Region-wise refinement
     refinementRegions
    {
        Box1
        {
            mode inside;
            levels ((1.0 2));
        }
    /*
    sampleCar.stl
    {
        mode inside;
            levels ((1.0 5));
        }
    */
   }


    // Mesh selection
    locationInMesh (0.08 0.05 0.005);//(0. 0 0.005);//(3 3 0.43);

    allowFreeStandingZoneFaces true;
}

Screenshot_from_2014-06-18 20:06:03.png

Y_Tazawa

unread,
Jun 19, 2014, 6:47:54 PM6/19/14
to open...@googlegroups.com
セルの除去というのが、内側(または外側)のメッシュの除去のことをいっているのなら、
sampleCar.stlが閉じた図形になっていないのではないでしょうか。
そのために、内側、外側の区別がつけられずに、全領域にメッシュを切られるのだと思います。


2014年6月18日水曜日 20時14分35秒 UTC+9 kabocha:

kabocha

unread,
Jun 23, 2014, 10:46:56 PM6/23/14
to open...@googlegroups.com
おっしゃる通り図形が閉じていませんでした。
ありがとうございました。

Reply all
Reply to author
Forward
0 new messages