FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      snappyHexMeshDict;
}
castellatedMesh true;
snap            true;
addLayers       false;
geometry
{
    object
    {
        type triSurfaceMesh;
        name object;
        file "object.stl";
    }
    nearBodyBox
    {
        type searchableBox;
        min (-71.09589881 -69.89961357 -37.52377624);
        max (70.89439506 69.70309181 93.33171195);
    }
    fineBodyBox
    {
        type searchableBox;
        min (-52.50193176 -51.30564652 -18.92980919);
        max (52.30042801 51.10912476 74.7377449);
    }

};
castellatedMeshControls
{
    // targetCells 100000
    // snappyCellCap 88000
    maxLocalCells 88000;
    maxGlobalCells 88000;
    minRefinementCells 0;
    maxLoadUnbalance 0.20;
    nCellsBetweenLevels 2;

    features ();
    refinementSurfaces
    {
        object
        {
            level (2 2);
            patchInfo
            {
                type wall;
            }
        }
    }

    refinementRegions
    {
        object
        {
            mode distance;
            levels ((1.0911296 2) (3.38072 1));
        }

        nearBodyBox
        {
            mode inside;
            levels ((1E15 2));
        }

        fineBodyBox
        {
            mode inside;
            levels ((1E15 2));
        }


    }

    resolveFeatureAngle 20;
    locationInMesh (118.2244930267334 -126.5791439819336 130.6404848098755);
    allowFreeStandingZoneFaces true;
}
meshQualityControls
{
    maxNonOrtho 65;
    maxBoundarySkewness 20;
    maxInternalSkewness 4;
    maxConcave 80;
    minVol 1e-13;
    minTetQuality 1e-9;
    minArea -1;
    minTwist 0.02;
    minDeterminant 0.001;
    minFaceWeight 0.02;
    minVolRatio 0.01;
    minTriangleTwist -1;
    nSmoothScale 4;
    errorReduction 0.75;
}
snapControls
{
    nSmoothPatch 5;
    tolerance 2.5;
    nSolveIter 45;
    nRelaxIter 7;
    nFeatureSnapIter 18;
    implicitFeatureSnap true;
    explicitFeatureSnap false;
    multiRegionFeatureSnap true;
}

mergeTolerance 1e-6; 
