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");
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
A MultiMooseEnum object to hold "execute_on" flags.
const Moose::Functor< Real > & _factor
Factor to multiply the functor with.
FunctorTimes(const InputParameters ¶meters)
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
Times objects are under the hood Reporters, but limited to a vector of Real.
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...
void errorIfDistributedMesh(std::string name) const
Generate a unified error message if the underlying libMesh mesh is a DistributedMesh.
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()
static InputParameters validParams()
MeshBase & getMesh()
Accessor for the underlying libMesh Mesh object.
const ExecFlagType EXEC_TIMESTEP_BEGIN
const std::string & type() const
Get the type of this class.
A structure that is used to evaluate Moose functors logically at an element/cell center.
registerMooseObject("MooseApp", FunctorTimes)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.
virtual MooseMesh & mesh() override
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
Times created by evaluating a functor.
static InputParameters validParams()
const Moose::Functor< Real > & _functor
Functor to evaluate the time to append to the Times vector.
std::vector< Real > & _times
The vector holding the times.