18 params.
addRequiredParam<std::vector<ReporterName>>(
"reporter_names",
"The input reporter names");
19 params.
addClassDescription(
"Applies parsed functions to scalar entries held in reporters.");
28 const std::vector<ReporterName> reporter_names(
29 getParam<std::vector<ReporterName>>(
"reporter_names"));
33 "reporter_names and reporter_symbols must be the same size: Number of reporter_names=",
34 reporter_names.size(),
35 "; Number of reporter_symbols=",
GenericReal< is_ad > evaluate(SymFunctionPtr &, const std::string &object_name="")
const ReporterMode REPORTER_MODE_ROOT
Reporter containing operation between vectors from another Reporter.
SymFunctionPtr _func_F
function parser object
std::vector< const Real * > _reporter_data
Input reporter values.
const T & getParam(const std::string &name) const
static InputParameters validParams()
const std::vector< std::string > _reporter_symbols
Get symbols to corresponding reporter names need symbols because reporter names have a "/" and that w...
void paramError(const std::string ¶m, Args... args) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< GenericReal< is_ad > > _func_params
const bool _use_t
whether time is part of the parsed expression
ParsedScalarReporter(const InputParameters ¶meters)
static InputParameters validParams()
Reporter containing operation between vectors from another Reporter.
registerMooseObject("OptimizationApp", ParsedScalarReporter)
virtual void finalize() override
auto index_range(const T &sizable)
Real & _output_reporter
output scalar