22 "The userobject whose values are to be reported");
23 params.
addParam<std::vector<Point>>(
"points",
24 "Computations will be lumped into values at these points.");
25 params.
addParam<FileName>(
"points_file",
26 "A filename that should be looked in for points. Each " 27 "set of 3 values in that file will represent a Point. " 28 "This and 'points' cannot be both supplied.");
30 "of the specified spatial points");
55 paramError(
"points",
"Both 'points' and 'points_file' cannot be specified simultaneously.");
59 _points = getParam<std::vector<Point>>(
"points");
63 const FileName & points_file = getParam<FileName>(
"points_file");
68 _points = file.getDataAsPoints();
virtual const std::vector< Point > spatialPoints() const
Optional interface function for providing the points at which a UserObject attains spatial values...
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
This class is here to combine the VectorPostprocessor interface and the base class VectorPostprocesso...
virtual void execute() override
Populates the postprocessor vector of values with the userobject evaluations in space.
virtual void initialize() override
Initialize, clears the postprocessor vector.
const Parallel::Communicator & _communicator
std::string shortName(const std::string &name)
Function for stripping name after the file / in parser block.
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
VectorPostprocessorValue & _uo_vec
The VectorPostprocessorValue object where the results are stored.
SpatialUserObjectVectorPostprocessor(const InputParameters ¶meters)
Class constructor.
void fillPoints()
Read the points at which to evaluate from a vector ('points'), a file ('points_file'), or neither (which will read from the user object directly if it satisfies the spatialPoints interface)
static InputParameters validParams()
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
registerMooseObject("MooseApp", SpatialUserObjectVectorPostprocessor)
static InputParameters validParams()
virtual Real spatialValue(const Point &) const
Optional interface function for "evaluating" a UserObject at a spatial position.
Utility class for reading delimited data (e.g., CSV data).
const UserObject & _uo
Userobject to evaluate spatially.
SpatialUserObjectVectorPostprocessor is a type of VectorPostprocessor that outputs the values of a sp...
Base class for user-specific data.
std::vector< Point > _points
Points at which to evaluate the user object.