UnsignedDistanceToSurfaceMesh

UnsignedDistanceToSurfaceMesh is a Function that provides distance information relative to a surface mesh. It locates the nearest surface element, returns the distance magnitude as the function value, and returns the normalized direction from the surface toward the query point as the gradient.

Geometry Sources

A single geometry source, which can be either of the two types listed below, must be selected:

  • Set builder to an SBMSurfaceMeshBuilder for a saved mesh containing one interface.

  • Set manager to an SBMInterfaceManager, together with subdomain_id_1 and subdomain_id_2, for an interface detected in a saved mesh containing the complete outward-oriented surface of each subdomain.

Both user objects construct their search data during initialSetup and must be declared in [UserObjects]. In manager mode, reversing the two subdomain IDs reverses the surface normal returned by surfaceNormal; the unsigned distance and its gradient are unchanged.

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

Input Parameters

  • builderSBMSurfaceMeshBuilder that provides the interface surface geometry.

    C++ Type:UserObjectName

    Controllable:No

    Description:SBMSurfaceMeshBuilder that provides the interface surface geometry.

  • managerSBMInterfaceManager that provides geometry for multiple interfaces.

    C++ Type:UserObjectName

    Controllable:No

    Description:SBMInterfaceManager that provides geometry for multiple interfaces.

  • subdomain_id_1First subdomain defining the interface.

    C++ Type:unsigned short

    Controllable:No

    Description:First subdomain defining the interface.

  • subdomain_id_2Second subdomain defining the interface.

    C++ Type:unsigned short

    Controllable:No

    Description:Second subdomain defining the interface.

Optional 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

Child Objects