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 (-33.43948204 -39.33578235 0.3366999924);
        max (33.43948204 55.59648067 76.01808101);
    }
    fineBodyBox
    {
        type searchableBox;
        min (-21.00787617 -26.90417648 0.3366999924);
        max (21.00787617 43.1648748 63.58647514);
    }

};
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 ((0.6780876 2) (2.260292 1));
        }

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

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


    }

    resolveFeatureAngle 20;
    locationInMesh (39.83560066223144 -78.89089195251465 132.47392416775227);
    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; 
