20 "Reporter names to apply function to.");
29 const std::vector<ReporterName> reporter_names(
30 getParam<std::vector<ReporterName>>(
"vector_reporter_names"));
33 "vector_reporter_names and vector_reporter_symbols must be the same size: Number " 34 "of vector_reporter_names=",
35 reporter_names.size(),
36 "; Number of vector_reporter_symbols=",
53 const std::vector<ReporterName> reporter_names(
54 getParam<std::vector<ReporterName>>(
"vector_reporter_names"));
55 mooseError(
"All vectors being operated on must be the same size.",
57 reporter_names[0].getCombinedName(),
61 reporter_names[rep_index].getCombinedName(),
GenericReal< is_ad > evaluate(SymFunctionPtr &, const std::string &object_name="")
Evaluate FParser object and check EvalError.
registerMooseObject("MooseApp", ParsedVectorReporter)
Reporter containing operation between vectors from another Reporter.
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 ...
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
std::vector< const std::vector< Real > * > _vector_reporter_data
input reporter vectors
const T & getReporterValueByName(const ReporterName &reporter_name, const std::size_t time_index=0)
Returns read-only reference to a Reporter value that is provided by name directly.
const ReporterMode REPORTER_MODE_ROOT
std::vector< const Real * > _scalar_reporter_data
input scalar reporter vectors
std::vector< double > & _output_reporter
output vector
SymFunctionPtr _func_F
function parser object
ParsedVectorReporter(const InputParameters ¶meters)
static InputParameters validParams()
static InputParameters validParams()
const std::vector< std::string > _vector_reporter_symbols
Get symbols to corresponding reporter names need symbols because reporter names have a "/" and that w...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< GenericReal< is_ad > > _func_params
Array to stage the parameters passed to the functions when calling Eval.
const bool _use_t
whether time is part of the parsed expression
IntRange< T > make_range(T beg, T end)
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
Reporter containing operation between vectors from another Reporter.
virtual void finalize() override
Finalize.
auto index_range(const T &sizable)