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");
38 _uo_vec(declareVector(
MooseUtils::shortName(parameters.getObjectName()))),
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");
registerMooseObject("MooseApp", SpatialUserObjectVectorPostprocessor)
This class is here to combine the VectorPostprocessor interface and the base class VectorPostprocesso...
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 ...
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
Utility class for reading delimited data (e.g., CSV data).
const std::vector< Point > getDataAsPoints() const
Get the data in Point format.
void setFormatFlag(FormatFlag value)
void read()
Perform the actual data reading.
SpatialUserObjectVectorPostprocessor is a type of VectorPostprocessor that outputs the values of a sp...
static InputParameters validParams()
const UserObject & _uo
Userobject to evaluate spatially.
std::vector< Point > _points
Points at which to evaluate the user object.
VectorPostprocessorValue & _uo_vec
The VectorPostprocessorValue object where the results are stored.
void fillPoints()
Read the points at which to evaluate from a vector ('points'), a file ('points_file'),...
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.
SpatialUserObjectVectorPostprocessor(const InputParameters ¶meters)
Class constructor.
Base class for user-specific data.
virtual const std::vector< Point > spatialPoints() const
Optional interface function for providing the points at which a UserObject attains spatial values.
virtual Real spatialValue(const Point &) const
Optional interface function for "evaluating" a UserObject at a spatial position.
const Parallel::Communicator & _communicator