FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      snappyHexMeshDict;
}
castellatedMesh true;
snap            true;
addLayers       false;
geometry
{
    object
    {
        type triSurfaceMesh;
        name object;
        file "/home/arowania0508/fluidpeek/app/user_data/24bfe954-c0b8-4b96-8183-bc36aad0be52/object.stl";
    }
    nearBodyBox
    {
        type searchableBox;
        min (-127.5 -127.5 -127.5);
        max (127.5 127.5 127.5);
    }
    fineBodyBox
    {
        type searchableBox;
        min (-102 -102 -102);
        max (102 102 102);
    }
    wakeRefineBox
    {
        type searchableBox;
        min (75 -187.5 -187.5);
        max (675 187.5 187.5);
    }
};
castellatedMeshControls
{
    maxLocalCells 300000;
    maxGlobalCells 300000;
    minRefinementCells 20;
    maxLoadUnbalance 0.10;
    nCellsBetweenLevels 4;

    features ();
    refinementSurfaces
    {
        object
        {
            level (2 2);
            regionType outside; 
        }
    }

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

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

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

    resolveFeatureAngle 30;
    locationInMesh (76 76 76);
    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 10;
}

mergeTolerance 1e-6; 
