CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] refinementRegions in 3D (https://www.cfd-online.com/Forums/openfoam-meshing/157442-refinementregions-3d.html)

Harak July 29, 2015 12:29

refinementRegions in 3D
 
Hey guys,

how can I create a refinement rectangle and/or box in three dimensions? :)

I know that you first have to define a shape, in this case a box, using searchableBox with:
Code:

    refinementBox
    {
        type searchableBox;
        min (-1 -1 -1);
        max ( 5  1  1);
}

...and then set the refinement level in the refinementRegions with the region option mode inside.

Code:

    refinementRegions
    {
        refinementBox
        {
            mode inside;
            levels ((1e15 3));
        }
    }

But this is an example for a two dimensional case...how to do this in 3D?

Thanks in advance ;)

Greetings
Harak

iy-a July 30, 2015 07:33

is your mesh 3D ?
 
Hello

Did you check via paraFoam if your mesh (without refinements) is well 3D ?
In order to see this you can display "points" instead of "surface" and check if the values are inside your solid and not only on its surface.

if not, I guess that maybe get swiftSnap add-on for blender
and go to refinement regions and thick "refine inside" with
a sufficient value (for example 10m).

Harak July 30, 2015 11:54

Quote:

Originally Posted by iy-a (Post 557649)
Hello

Did you check via paraFoam if your mesh (without refinements) is well 3D ?
In order to see this you can display "points" instead of "surface" and check if the values are inside your solid and not only on its surface.

if not, I guess that maybe get swiftSnap add-on for blender
and go to refinement regions and thick "refine inside" with
a sufficient value (for example 10m).

Thanks for your replay.
Yes, of course my base mesh is 3D.

But in the meanwhile I figured it out on my own. The min and max values are actually the coordinates in the x, y and z plane. And because of this, it can be handled in 3 dimensions as well :)


All times are GMT -4. The time now is 11:44.