20 : _fi_params(moose_object->parameters()),
21 _fi_name(_fi_params.
get<
std::string>(
"_object_name")),
33 return params.
get<MooseFunctorName>(
name);
36 return params.
get<MaterialPropertyName>(
name);
38 return params.
get<VariableName>(
name);
41 const auto & var_names = params.
get<std::vector<VariableName>>(
name);
42 if (var_names.size() != 1)
43 mooseError(
"We only support a single variable name for retrieving a functor");
47 return params.
get<NonlinearVariableName>(
name);
49 return params.
get<FunctionName>(
name);
51 return params.
get<PostprocessorName>(
name);
53 mooseError(
"Invalid parameter type for retrieving a functor");
69 std::istringstream ss(
name);
73 if (ss >> real_value && ss.eof())
78 return default_property.get();
88 std::istringstream ss(
name);
92 if (ss >> real_value && ss.eof())
97 return default_property.get();
122 return {elem, correct_skewness};
std::string name(const ElemQuality q)
std::vector< std::unique_ptr< Moose::Functor< ADReal > > > _default_ad_real_functors
Storage vector for Moose::Functor<ADReal> default objects.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
static InputParameters validParams()
FunctorInterface(const MooseObject *moose_object)
const Moose::Functor< T > * defaultFunctor(const std::string &name)
Helper function to parse default functor values.
std::vector< std::unique_ptr< Moose::Functor< Real > > > _default_real_functors
Storage vector for Moose::Functor<Real> default objects.
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...
Every object that can be built by the factory should be derived from this class.
A structure that is used to evaluate Moose functors logically at an element/cell center.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Class template for creating constant functors.
Generic class for solving transient nonlinear problems.
SubProblem *const _fi_subproblem
Pointer to subproblem if the subproblem pointer parameter was set.
const InputParameters & _fi_params
Parameters of the object with this interface.
bool hasFunctor(const std::string &name, const THREAD_ID tid) const
checks whether we have a functor corresponding to name on the thread id tid
const THREAD_ID _fi_tid
Current threaded it.
static std::string deduceFunctorName(const std::string &name, const InputParameters ¶ms)
Helper to look up a functor name through the input parameter keys.
bool isFunctor(const std::string &name) const
Checks the subproblem for the given functor.