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 (-31.61659255 -100.7713052 -30.78047576);
        max (71.67026152 33.63295664 50.59305014);
    }
    fineBodyBox
    {
        type searchableBox;
        min (-14.08560187 -83.24031454 -13.24948508);
        max (54.13927084 16.10196596 33.06205946);
    }
    wakeRefineBox
    {
        type searchableBox;
        min (-14.08560187 16.10196596 -13.24948508);
        max (54.13927084 115.4442465 33.06205946);
    }
};
castellatedMeshControls
{
    // targetCells 100000
    // snappyCellCap 88000
    maxLocalCells 88000;
    maxGlobalCells 88000;
    minRefinementCells 8;
    maxLoadUnbalance 0.15;
    nCellsBetweenLevels 3;

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

    refinementRegions
    {
        object
        {
            mode distance;
            levels ((4.769525 2) (12.400765 1));
        }

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

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

        wakeRefineBox
        {
            mode inside;
            levels ((1E15 1));
        }
    }

    resolveFeatureAngle 25;
    locationInMesh (78.72657585144043 -146.05969779968262 37.927369117736816);
    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 3;
    tolerance 2.0;
    nSolveIter 30;
    nRelaxIter 5;
    nFeatureSnapIter 14;
    implicitFeatureSnap true;
    explicitFeatureSnap false;
    multiRegionFeatureSnap true;
}

mergeTolerance 1e-6; 
