UnsignedDistanceToSurfaceMesh

UnsignedDistanceToSurfaceMesh is a Function that queries the KDTree and boundary element database produced by SBMSurfaceMeshBuilder to provide distance information relative to an arbitrary surface mesh. The function locates the nearest boundary element via a nearest-neighbor search in the KDTree, computes the distance vector using the element-specific distanceFrom method, and returns the vector norm as the function value. The gradient evaluates to the normalized direction from the boundary element toward the query point.

Usage

Set the builder parameter to the name of an SBMSurfaceMeshBuilder user object that was configured to store the relevant surface mesh. Because the function caches pointers to the KDTree, element ID map, and boundary element wrappers during initialSetup, the builder object must be declared in the same execution block (for example inside [UserObjects]) and be executed before any kernels request the function values.

Returns unsigned distance to a surface mesh using KDTree nearest neighbor search. The gradient returns the unit vector pointing from boundary to query point.

Input Parameters

  • builderSBMSurfaceMeshBuilder that provides KDTree, elem_id_map, and boundary elements.

    C++ Type:UserObjectName

    Controllable:No

    Description:SBMSurfaceMeshBuilder that provides KDTree, elem_id_map, and boundary elements.

Required Parameters

  • control_tagsAdds user-defined labels for accessing object parameters via control logic.

    C++ Type:std::vector<std::string>

    Controllable:No

    Description:Adds user-defined labels for accessing object parameters via control logic.

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Controllable:No

    Description:Set the enabled status of the MooseObject.

Advanced Parameters

Input Files