35#ifdef MOOSE_KOKKOS_ENABLED
104 bool isFunctor(
const std::string & name)
const;
134 template <
typename T>
144 template <
typename T>
156 template <
typename T>
169 template <
typename T>
197 return getFunctorByName<T>(functor_name, subproblem, tid);
204 return getFunctor<T>(name, subproblem,
_fi_tid);
238 const auto *
const default_functor = defaultFunctor<T>(name);
240 return *default_functor;
264 const auto & functor = getFunctor<T>(name);
267 if (!functor.supportsElemSideQpArg())
268 mooseError(
"Quadrature point integration was requested, but the functor '",
270 "' does not support this.");
274 if (!functor.supportsFaceArg())
275 mooseError(
"Face info integration was requested, but the functor '",
277 "' does not support this.");
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
An interface for accessing Moose::Functors.
virtual bool isADObject() const =0
Whether this interface is for an AD object.
void checkFunctorSupportsSideIntegration(const std::string &name, bool qp_integration)
Throws error if the functor does not support the requested side integration.
const Moose::Functor< T > * defaultFunctor(const std::string &name)
Helper function to parse default functor values.
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.
std::vector< std::unique_ptr< Moose::Functor< ADReal > > > _default_ad_real_functors
Storage vector for Moose::Functor<ADReal> 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...
static InputParameters validParams()
const InputParameters & _fi_params
Parameters of the object with this interface.
SubProblem *const _fi_subproblem
Pointer to subproblem if the subproblem pointer parameter was set.
bool isFunctor(const std::string &name) const
Checks the subproblem for the given functor.
std::vector< std::unique_ptr< Moose::Functor< Real > > > _default_real_functors
Storage vector for Moose::Functor<Real> default objects.
const Moose::Functor< T > & getFunctorByName(const std::string &name)
Retrieves a functor from the subproblem.
const std::string _fi_name
The name of the object that this interface belongs to.
const Moose::Functor< T > & getFunctor(const std::string &name)
Retrieves a functor from the subproblem.
Every object that can be built by the factory should be derived from this class.
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
Generic class for solving transient nonlinear problems.
const Moose::Functor< T > & getFunctor(const std::string &name, const THREAD_ID tid, const std::string &requestor_name, bool requestor_is_ad)
A structure that is used to evaluate Moose functors logically at an element/cell center.