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 (-126 -126 -126);
        max (126 126 126);
    }
    fineBodyBox
    {
        type searchableBox;
        min (-93 -93 -93);
        max (93 93 93);
    }

};
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 ((27 2) (52.5 1));
        }

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

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


    }

    resolveFeatureAngle 20;
    locationInMesh (210.0 -231.0 210.0);
    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; 
