21 "Constructs boundary elements and a centroid KDTree from a pre-existing surface mesh. "
22 "The surface mesh is specified in the Mesh block via `save_with_name`.");
28 "Maximum number of points allowed in a leaf node of the KDTree. "
29 "Smaller values yield deeper trees with faster queries but slower build times; "
30 "larger values result in shallower trees with faster builds but slower queries. "
31 "Benchmarking is recommended to find an optimal tradeoff for your use case.");
37 "Whether to build a kd-tree or not. If false, the kd-tree will not be built, "
38 "and the mesh will be used directly for queries.");
45 _leaf_max_size(getParam<
int>(
"leaf_max_size")),
46 _build_kd_tree(getParam<bool>(
"build_kd_tree"))
64 mooseAssert(
_kd_tree,
"KDTree not built; callers must guard with hasKDTree() first.");
registerMooseObject("ShiftedBoundaryMethodApp", SBMSurfaceMeshBuilder)
void ErrorVector unsigned int
static InputParameters validParams()
virtual void initialSetup() override
const SurfaceElementSet & surfaceElementSet() const
BoundaryMeshBuilder specialization that additionally builds a centroid KD-tree over the whole-mesh Su...
virtual void initialSetup() override
KDTree & getKDTree() const
Returns a mutable reference because KDTree::neighborSearch is non-const (nanoflann's knnSearch thread...
const bool _build_kd_tree
Whether to build the centroid KD-tree.
static InputParameters validParams()
SBMSurfaceMeshBuilder(const InputParameters ¶meters)
std::unique_ptr< KDTree > _kd_tree
The KDTree is constructed using the centroids of the elements in the boundary mesh.
const int _leaf_max_size
Configures KDTree leaf node size for performance tuning.