21 "Name of vector-postprocessor or reporter vector containing time, "
22 "default is assumed to be all 0s.");
23 params.
addParam<Real>(
"reverse_time_end", 0.0,
"End time used for reversing the time values.");
29 _coordt(isParamValid(
"time_name") ? getReporterValue<
std::vector<Real>>(
"time_name")
31 _reverse_time_end(getParam<Real>(
"reverse_time_end"))
38 const auto nval =
_values.size();
40 paramError(
"value_name",
"Value vector must not be empty.");
57 for (
const auto & i : make_range(nval))
59 if (
_coordt.empty() || MooseUtils::absoluteFuzzyEqual(at,
_coordt[i]))
registerMooseObject("OptimizationApp", ReporterTimePointSource)
void addPoint(const Elem *elem, Point p, unsigned id=libMesh::invalid_uint, Real value=1.0)
void paramError(const std::string ¶m, Args... args) const
const std::vector< Point > & _point
const std::vector< Real > & _coordx
static InputParameters validParams()
std::vector< Real > _ones_vec
const std::vector< Real > & _coordz
const std::vector< Real > & _values
void errorCheck(const std::string &input_name, std::size_t reporterSize)
const std::vector< Real > & _coordy
const bool _read_in_points
const std::vector< Real > & _weight
std::vector< Point > _zeros_pts
std::vector< Real > _zeros_vec
Apply a time dependent point load defined by Reporters.
static InputParameters validParams()
const std::vector< Real > & _coordt
time-coordinates from reporter
ReporterTimePointSource(const InputParameters ¶meters)
const Real & _reverse_time_end
The final time when we want to reverse the time index in function evaluation.
virtual void addPoints() override