27 class PointLocatorBase;
60 bool hasPoint(
const Elem * elem,
const Point & p);
67 typedef std::map<const Elem *, std::pair<std::vector<Point>, std::vector<Real>>>
MultiPointMap;
94 const std::set<SubdomainID> &
blocks,
95 const PointNotFoundBehavior point_not_found_behavior,
bool hasPoint(const Elem *elem, const 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 ...
void addPoint(const Elem *elem, const Point &p, const Real &value=1)
Adds a point source.
Base class for everything in MOOSE with a name and a type.
std::set< const Elem * > _elements
The list of elements that need distributions.
CreateMooseEnumClass(PointNotFoundBehavior, ERROR, WARNING, IGNORE)
Point-not-found behavior.
MultiPointMap _points
The list of physical xyz Points that need to be evaluated in each element.
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
std::unique_ptr< libMesh::PointLocatorBase > _point_locator
The DiracKernelInfo object manages a PointLocator object which is used by all DiracKernels to find Po...
MultiPointMap & getPoints()
Returns a writeable reference to the _points container.
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
void clearPoints()
Remove all of the current points and elements.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Elem * findPoint(const Point &p, const MooseMesh &mesh, const std::set< SubdomainID > &blocks, const PointNotFoundBehavior point_not_found_behavior, const MooseBase &consumer)
Used by client DiracKernel classes to determine the Elem in which the Point p resides.
const Real _point_equal_distance_sq
threshold distance squared below which two points are considered identical
std::set< const Elem * > & getElements()
Returns a writeable reference to the _elements container.
void updatePointLocator(const MooseMesh &mesh)
Called during FEProblemBase::meshChanged() to update the PointLocator object used by the DiracKernels...
std::map< const Elem *, std::pair< std::vector< Point >, std::vector< Real > > > MultiPointMap
virtual ~DiracKernelInfo()
bool pointsFuzzyEqual(const Point &, const Point &)
Check if two points are equal with respect to a tolerance.