37 const Elem * elem)
const override;
47 virtual void buildKDTrees(
const unsigned int var_index) = 0;
60 unsigned int getAppIndex(
unsigned int kdtree_index,
unsigned int app_index_in_tree)
const;
87 const unsigned int valid_mesh_div,
88 const unsigned int i_from)
const;
102 unsigned int source_index,
103 std::pair<Real, Real> & outgoing_val,
void initialSetup() override
Method called at the beginning of the simulation for checking integrity or doing one-time setup...
unsigned int getNumDivisions() const
Number of divisions (nearest-positions or source mesh divisions) used when building KD-Trees...
const bool _group_subapps
Whether to group data when creating the nearest-point regions.
Base class for working with KDTrees in transfers, whether for interpolation or extrapolation.
void computeNumSources()
Pre-compute the number of sources Number of KDTrees used to hold the locations and variable value dat...
Point getPointInSourceKDTreeFrame(unsigned int i_source, const Point &pt) const
Transform a point into the frame used for KD-tree queries.
unsigned int getAppIndex(unsigned int kdtree_index, unsigned int app_index_in_tree) const
Get the index of the app when inside of a KD-Tree source loop, where multiple applications could be l...
const InputParameters & parameters() const
Get the parameters of the object.
bool inBlocks(const std::set< SubdomainID > &blocks, const MooseMesh &mesh, const Elem *elem) const override
static InputParameters validParams()
unsigned int _num_sources
Number of KD-Trees to create.
MultiAppGeneralFieldKDTreeTransferBase(const InputParameters ¶meters)
void evaluateNearestNodeFromKDTrees(const Point &pt, unsigned int source_index, std::pair< Real, Real > &outgoing_val, bool &point_found)
Search all local KD-trees for the nearest node/element and update outgoing_val.
unsigned int getNumAppsPerTree() const
Number of applications which contributed nearest-locations to each KD-tree.
virtual void prepareEvaluationOfInterpValues(const unsigned int var_index) override
bool usesMooseAppCoordTransform() const override
Whether this transfer handles non-translation-based transformations, e.g.
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
virtual void buildKDTrees(const unsigned int var_index)=0
usingCombinedWarningSolutionWarnings
bool checkRestrictionsForSource(const Point &pt, const unsigned int valid_mesh_div, const unsigned int i_from) const
Examine all spatial restrictions that could preclude this source from being a valid source for this p...
std::vector< std::vector< std::shared_ptr< KDTree > > > _local_positions_kdtrees
KD-Trees for nodes nearest to a given position on each local source app.
unsigned int _num_nearest_points
Number of points to consider.
std::vector< std::vector< Real > > _local_values
Values of the variable being transferred at all the points in _local_points.
std::vector< std::vector< Point > > _local_points
All the nodes that meet the spatial restrictions in all the local source apps.
std::vector< std::shared_ptr< KDTree > > _local_kdtrees
KD-Trees for all the local source apps.
It is a general field transfer.
bool inBlocks(const std::set< SubdomainID > &blocks, const Elem *elem) const