This UserObject computes averages of a variable storing partial sums for the specified number of intervals in a direction (x,y,z). More...
#include <NearestPointBase.h>
Public Member Functions | |
NearestPointBase (const InputParameters ¶meters) | |
~NearestPointBase () | |
virtual void | initialize () override |
virtual void | execute () override |
virtual void | finalize () override |
virtual void | threadJoin (const UserObject &y) override |
virtual Real | spatialValue (const Point &p) const override |
Given a Point return the integral value associated with the layer that point falls in for the layered average closest to that point. More... | |
virtual const std::vector< Point > & | getPoints () const |
Get the points at which the nearest operation is performed. More... | |
virtual const std::vector< Point > | spatialPoints () const override |
Static Public Member Functions | |
static InputParameters | validParams () |
Protected Member Functions | |
void | fillPoints () |
Fills in the _points variable from either 'points' or 'points_file' parameter. More... | |
UserObjectType & | nearestUserObject (const Point &p) const |
Get the UserObject that is closest to the point. More... | |
virtual const std::string & | name () const |
Get the name of the class. More... | |
Protected Attributes | |
std::vector< Point > | _points |
std::vector< std::unique_ptr< UserObjectType > > | _user_objects |
const unsigned int | _dist_norm |
const unsigned int | _axis |
This UserObject computes averages of a variable storing partial sums for the specified number of intervals in a direction (x,y,z).
Given a list of points this object computes the layered average closest to each one of those points.
Definition at line 29 of file NearestPointBase.h.
NearestPointBase< UserObjectType, BaseType >::NearestPointBase | ( | const InputParameters & | parameters | ) |
Definition at line 117 of file NearestPointBase.h.
NearestPointBase< UserObjectType, BaseType >::~NearestPointBase | ( | ) |
Definition at line 148 of file NearestPointBase.h.
|
overridevirtual |
Definition at line 186 of file NearestPointBase.h.
|
protected |
Fills in the _points
variable from either 'points' or 'points_file' parameter.
Also performs error checking.
Definition at line 154 of file NearestPointBase.h.
Referenced by NearestPointBase< LayeredSideDiffusiveFluxAverage, SideIntegralVariableUserObject >::NearestPointBase().
|
overridevirtual |
Reimplemented in NearestPointAverage, and NearestPointIntegralVariablePostprocessor.
Definition at line 193 of file NearestPointBase.h.
|
inlinevirtual |
Get the points at which the nearest operation is performed.
Definition at line 55 of file NearestPointBase.h.
|
overridevirtual |
Definition at line 178 of file NearestPointBase.h.
|
inlineprotected |
|
protected |
Get the UserObject that is closest to the point.
p | The point. |
Definition at line 218 of file NearestPointBase.h.
|
overridevirtual |
Reimplemented in NearestPointIntegralVariablePostprocessor.
Definition at line 261 of file NearestPointBase.h.
|
overridevirtual |
Given a Point return the integral value associated with the layer that point falls in for the layered average closest to that point.
p | The point to look for in the layers. |
Reimplemented in NearestPointAverage, and NearestPointIntegralVariablePostprocessor.
Definition at line 211 of file NearestPointBase.h.
|
overridevirtual |
Definition at line 201 of file NearestPointBase.h.
|
static |
Definition at line 91 of file NearestPointBase.h.
Referenced by NearestPointLayeredSideAverageFunctor::validParams(), NearestPointLayeredSideIntegralFunctor::validParams(), NearestPointAverage::validParams(), NearestPointLayeredSideIntegral::validParams(), NearestPointLayeredAverage::validParams(), NearestPointLayeredSideAverage::validParams(), NearestPointLayeredIntegral::validParams(), and NearestRadiusLayeredAverage::validParams().
|
protected |
Definition at line 80 of file NearestPointBase.h.
|
protected |
Definition at line 78 of file NearestPointBase.h.
|
protected |
|
protected |
Definition at line 75 of file NearestPointBase.h.
Referenced by NearestPointBase< LayeredSideDiffusiveFluxAverage, SideIntegralVariableUserObject >::NearestPointBase().