Go to the documentation of this file.
24 class PointLocatorBase;
46 void addPoint(
const Elem * elem, Point p);
56 bool hasPoint(
const Elem * elem, Point p);
63 typedef std::map<const Elem *, std::pair<std::vector<Point>, std::vector<unsigned int>>>
const Elem * findPoint(Point p, const MooseMesh &mesh)
Used by client DiracKernel classes to determine the Elem in which the Point p resides.
virtual ~DiracKernelInfo()
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
bool pointsFuzzyEqual(const Point &, const Point &)
Check if two points are equal with respect to a tolerance.
void updatePointLocator(const MooseMesh &mesh)
Called during FEProblemBase::meshChanged() to update the PointLocator object used by the DiracKernels...
std::unique_ptr< PointLocatorBase > _point_locator
The DiracKernelInfo object manages a PointLocator object which is used by all DiracKernels to find Po...
std::set< const Elem * > _elements
The list of elements that need distributions.
const Real _point_equal_distance_sq
threshold distance squared below which two points are considered identical
void addPoint(const Elem *elem, Point p)
Adds a point source.
void clearPoints()
Remove all of the current points and elements.
MultiPointMap _points
The list of physical xyz Points that need to be evaluated in each element.
std::set< const Elem * > & getElements()
Returns a writeable reference to the _elements container.
std::map< const Elem *, std::pair< std::vector< Point >, std::vector< unsigned int > > > MultiPointMap
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
MultiPointMap & getPoints()
Returns a writeable reference to the _points container.
bool hasPoint(const Elem *elem, Point p)
Return true if we have Point 'p' in Element 'elem'.
The DiracKernelInfo object is a place where all the Dirac points added by different DiracKernels are ...