20 "Imposes the essential boundary condition $\\vec{u}=\\vec{g}$, where $\\vec{g}$ "
21 "components are calculated with functions.");
22 params.
addParam<FunctionName>(
"function",
23 "The boundary condition vector function. This cannot be supplied "
24 "with the component parameters.");
25 params.
addParam<FunctionName>(
"function_x", 0,
"The function for the x component");
26 params.
addParam<FunctionName>(
"function_y", 0,
"The function for the y component");
27 params.
addParam<FunctionName>(
"function_z", 0,
"The function for the z component");
33 _function(isParamValid(
"function") ? &getFunction(
"function") : nullptr),
34 _function_x(getFunction(
"function_x")),
35 _function_y(getFunction(
"function_y")),
36 _function_z(getFunction(
"function_z"))
39 paramError(
"function_x",
"The 'function' and 'function_x' parameters cannot both be set.");
41 paramError(
"function_y",
"The 'function' and 'function_y' parameters cannot both be set.");
43 paramError(
"function_z",
"The 'function' and 'function_z' parameters cannot both be set.");
registerMooseObject("MooseApp", ADVectorFunctionDirichletBC)
Base class for automatic differentiation Dirichlet BCs.
static InputParameters validParams()
const Node *const & _current_node
current node being processed
Boundary condition of a Dirichlet type.
virtual ADRealVectorValue computeQpValue() override
Compute the value of the Dirichlet BC at the current quadrature point.
RealVectorValue _values
The value for this BC.
const Function & _function_x
x component function
const Function & _function_z
z component function
ADVectorFunctionDirichletBC(const InputParameters ¶meters)
static InputParameters validParams()
const Function & _function_y
y component function
const Function *const _function
Optional vectorValue function.
virtual Real value(Real t, const Point &p) const
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero,...
virtual RealVectorValue vectorValue(Real t, const Point &p) const
Override this to evaluate the vector function at a point (t,x,y,z), by default this returns a zero ve...