22 "FunctorMaterial object for declaring properties that are populated by evaluation of " 23 "time derivatives of Functors objects. (such as variables, constants, postprocessors). " 24 "The time derivative is only returned if the 'dot' functor routine is implemented.");
25 params.
addParam<std::vector<std::string>>(
"prop_names",
26 "The names of the properties this material will have");
28 params.
addParam<std::vector<MooseFunctorName>>(
"prop_values",
29 "The corresponding names of the " 30 "functors which gradient are going to provide " 31 "the values for the variables");
39 _prop_names(getParam<
std::vector<
std::string>>(
"prop_names")),
40 _prop_values(getParam<
std::vector<MooseFunctorName>>(
"prop_values")),
41 _num_props(_prop_names.size())
46 mooseError(
"Number of prop_names must match the number of prop_values for a " 47 "GenericFunctorTimeDerivativeMaterial!");
54 "prop_names should not be the same as any of the prop_values. They" 55 " can both be functors, and functors may not have the same name.");
62 paramError(
"prop_names",
"Postprocessors should not be used in this functor material");
const unsigned int _num_props
Number of properties to define.
Moose::GenericType< Real, is_ad > GenericReal
FEProblemBase & _fe_problem
A MultiMooseEnum object to hold "execute_on" flags.
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 ...
static InputParameters validParams()
MooseEnumIterator begin() const
Returns a begin/end iterator to all of the set values in the enum.
std::vector< MooseFunctorName > _prop_values
Names of the functors to evaluate for those properties.
MooseEnumIterator end() const
const ExecFlagType EXEC_ALWAYS
FunctorMaterials compute functor material properties.
std::vector< std::string > _prop_names
Names of the functor material properties to define.
This material automatically declares as functor material properties whatever is passed to it through ...
const ExecFlagEnum & _execute_enum
Execute settings for this object.
const Moose::FunctorBase< T > & addFunctorProperty(const std::string &name, PolymorphicLambda my_lammy, const std::set< ExecFlagType > &clearance_schedule={EXEC_ALWAYS})
Declare a functor material property.
IntRange< T > make_range(T beg, T end)
registerMooseObject("MooseApp", GenericFunctorTimeDerivativeMaterial)
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...
bool hasPostprocessor(const std::string &name) const
Deprecated.
GenericFunctorTimeDerivativeMaterialTempl(const InputParameters ¶meters)
std::vector< const Moose::Functor< GenericReal< is_ad > > * > _functors
Vector of the functors.
static InputParameters validParams()