20 "$u(t,\\vec{x})=h(t,\\vec{x})$, " 21 "where $h$ is a functor and can have complex dependencies.");
23 params.
addRequiredParam<MooseFunctorName>(
"functor",
"The functor to impose");
25 "coefficient", 1.0,
"An optional functor coefficient to multiply the imposed functor");
32 _functor(getFunctor<
ADReal>(
"functor")),
33 _coef(getFunctor<
ADReal>(
"coefficient"))
42 return _coef(space_arg, time_arg) *
_functor(space_arg, time_arg);
registerMooseObject("MooseApp", FunctorDirichletBC)
static const std::set< SubdomainID > undefined_subdomain_connection
A static member that can be used when the connection of a node to subdomains is unknown.
FunctorDirichletBC(const InputParameters ¶meters)
Base class for automatic differentiation Dirichlet BCs.
const Moose::Functor< ADReal > & _functor
The functor value to impose.
DualNumber< Real, DNDerivativeType, true > ADReal
Dirichlet boundary condition with functor inputs.
static InputParameters validParams()
static InputParameters validParams()
const Moose::Functor< ADReal > & _coef
Coefficient.
virtual ADReal computeQpValue() override
Compute the value of the Dirichlet BC at the current quadrature point.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Node *const & _current_node
current node being processed
State argument for evaluating functors.