20 "Times created by evaluating a functor at the (0,0,0) point and the current time");
22 params.
addRequiredParam<MooseFunctorName>(
"functor",
"Functor to evaluate to provide the time");
23 params.
addParam<MooseFunctorName>(
"factor", 1,
"Factor to multiply the evaluated time with");
26 params.
set<
bool>(
"auto_broadcast") =
false;
36 _functor(getFunctor<Real>(
"functor")),
37 _factor(getFunctor<Real>(
"factor"))
48 auto * elem = (*pl)(p);
50 mooseError(
"Origin point not in local mesh, cannot evaluate the functor there");
registerMooseObject("MooseApp", FunctorTimes)
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
const ExecFlagType EXEC_TIMESTEP_BEGIN
A MultiMooseEnum object to hold "execute_on" flags.
virtual MooseMesh & mesh() override
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
Helper method to create an elemental argument for a functor that includes whether to perform skewness...
Times created by evaluating a functor.
const Moose::Functor< Real > & _functor
Functor to evaluate the time to append to the Times vector.
virtual void initialize() override
In charge of computing / loading the times, unless all that could be done there is done in the constr...
static InputParameters validParams()
FunctorTimes(const InputParameters ¶meters)
const Moose::Functor< Real > & _factor
Factor to multiply the functor with.
const std::string & type() const
Get the type of this class.
MeshBase & getMesh()
Accessor for the underlying libMesh Mesh object.
void errorIfDistributedMesh(std::string name) const
Generate a unified error message if the underlying libMesh mesh is a DistributedMesh.
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
static InputParameters validParams()
Times objects are under the hood Reporters, but limited to a vector of Real.
static InputParameters validParams()
std::vector< Real > & _times
The vector holding the times.
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.
A structure that is used to evaluate Moose functors logically at an element/cell center.