v2512: New and improved pre-processing

Community contribution: Improved leak-path detection

TOP

The shortestPathSet is a line-sampling method that takes two sets of points and determines any ‘mesh’ walk that connects the two sets. It is typically used for mesh debugging and is also used in the snappyHexMesh mesh generator.

In this release a contribution from Robert Perry is included which does a better job if there are multiple paths possible on complex parallel cases.

A typical input for detecting a leak path using the ‘sets’ functionObject:

leakFind
{
    type            sets;

    writeControl    timeStep;
    interpolationScheme cell;
    setFormat       vtk;

    // Needs at least one field
    fields          ( processorID );

    sets
    {
        leakFind
        {
            type    shortestPath;
            insidePoints   ((3.0001 3.0001 0.43));
            outsidePoints  ((1 0 1.3));
            axis    xyz;
        }
    }
}

Source code

Tutorial

Gitlab issue

Merge request

Attribution

  • Contribution from Robert Perry

Community contribution: Improved createPatch

TOP

The createPatch utility can now be used to move boundary faces to existing/new patches. In this release:

  • It uses any supplied inputs to the patch fields (patch supplied by Alexey Matveichev)
  • It allows the creation of zero-sized patches.
//- Optional override of added patchFields. If not specified
//  any added patchFields are of type calculated.
patchFields
{
    p
    {
        type            fixedValue;
        value           uniform 300;
    }
}

Source code

Gitlab issue

Attribution

  • Contribution from Alexey Matveichev