22 "Compute element variable integrals for nearest-point based subdomains");
33 _np_post_processor_values(declareVector(
"np_post_processor_values"))
44 mooseError(
"The vector length of vector post processor is ",
46 " but nearestPointIndex() return ",
56 mooseError(
"The vector length of vector post processor is ",
68 mooseError(
"The vector length of the vector postprocessor ",
70 " is different from the number of user objects ",
76 user_object->finalize();
77 const auto & const_user_object = *user_object;
85 unsigned int closest = 0;
90 const auto & current_point = it.value();
92 Real current_distance = (p - current_point).
norm();
94 if (current_distance < closest_distance)
96 closest_distance = current_distance;
This UserObject computes averages of a variable storing partial sums for the specified number of inte...
NearestPointIntegralVariablePostprocessor(const InputParameters ¶meters)
Given a list of points this object computes the variable integral closest to each one of those points...
This postprocessor computes a volume integral of the specified variable.
static InputParameters validParams()
Real userObjectValue(unsigned int i) const
_enumerate_range< Iterator > enumerate(Iterator first, Iterator last, typename std::iterator_traits< Iterator >::difference_type initial)
Enumerate function for iterating over a range and obtaining both a reference to the underlying type a...
std::vector< std::unique_ptr< ElementIntegralVariablePostprocessor > > _user_objects
auto max(const L &left, const R &right)
Base class VectorPostprocessors operating on elemental variables.
unsigned int nearestPointIndex(const Point &point) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
VectorPostprocessorValue & _np_post_processor_values
registerMooseObject("MooseApp", NearestPointIntegralVariablePostprocessor)
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
std::vector< Point > _points
virtual void finalize() override
Finalize.
virtual Real spatialValue(const Point &point) const override
Given a Point return the integral value associated with the layer that point falls in for the layered...