21 #include "ThreadedGeneralUserObject.h" 37 virtual Real
spatialValue(
const Point & p)
const override;
44 virtual unsigned int bin(
const Point & p)
const = 0;
50 virtual unsigned int num_bins()
const = 0;
58 unsigned int binFromBounds(
const Real & pt,
const std::vector<Real> & bounds)
const;
unsigned int binFromBounds(const Real &pt, const std::vector< Real > &bounds) const
Definition: SpatialBinUserObject.C:41
Definition: SpatialBinUserObject.h:26
static InputParameters validParams()
Definition: SpatialBinUserObject.C:23
virtual const std::vector< Point > & getBinCenters() const
Definition: SpatialBinUserObject.h:64
virtual Real spatialValue(const Point &p) const override
Definition: SpatialBinUserObject.C:35
std::vector< Point > _bin_centers
Center coordinates of the bins.
Definition: SpatialBinUserObject.h:75
SpatialBinUserObject(const InputParameters ¶meters)
Definition: SpatialBinUserObject.C:29
std::vector< unsigned int > _directions
Directions along which the bin defines points.
Definition: SpatialBinUserObject.h:78
virtual const std::vector< unsigned int > directions() const
Definition: SpatialBinUserObject.h:71
virtual void finalize() final
Definition: SpatialBinUserObject.h:35
virtual unsigned int bin(const Point &p) const =0
virtual void execute() final
Definition: SpatialBinUserObject.h:33
virtual void initialize() final
Definition: SpatialBinUserObject.h:34
virtual unsigned int num_bins() const =0