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.");
const Function & _function_x
x component function
Base class for automatic differentiation Dirichlet BCs.
Boundary condition of a Dirichlet type.
const Function & _function_y
y component function
virtual ADRealVectorValue computeQpValue() override
Compute the value of the Dirichlet BC at the current quadrature point.
const Function *const _function
Optional vectorValue function.
RealVectorValue _values
The value for this BC.
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 ...
const Function & _function_z
z component function
registerMooseObject("MooseApp", ADVectorFunctionDirichletBC)
const Node *const & _current_node
current node being processed
static InputParameters validParams()
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...
static InputParameters validParams()
const InputParameters & parameters() const
Get the parameters of the object.
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...
ADVectorFunctionDirichletBC(const InputParameters ¶meters)