snappyHexMesh::shellSurfaces: Added support for span refinement based on internal or external "closeness"

The closeness option in surfaceFeatures set in surfaceFeaturesDict, e.g.

    closeness
    {
        // Output the closeness of surface points to other surface elements.
        pointCloseness          yes;
    }

calculates and writes both the internal and external surface "closeness"
measures either of which could be used to set the span refinement in
snappyHexMesh depending on which side of the surface is being meshed which is
specified with either refinement mode "insideSpan" or "externalSpan", e.g. in
the tutorials/mesh/snappyHexMesh/pipe case the inside of the pipe is meshed and
refined based on the internal span using the following specification:

    refinementRegions
    {
        pipeWall
        {
            mode insideSpan;
            levels ((1000 2));
            cellsAcrossSpan 40;
        }
    }
This commit is contained in:
Henry Weller
2020-03-18 18:06:55 +00:00
parent 42e0dc05c0
commit 4c08b463fd
3 changed files with 107 additions and 87 deletions

View File

@ -61,7 +61,7 @@ castellatedMeshControls
{
pipeWall
{
mode span;
mode insideSpan;
levels ((1000 2));
cellsAcrossSpan 40;
}