15 LagrangeVecFunctionDirichletBC,
24 "Imposes the essential boundary condition $\\vec{u}=\\vec{g}$, where $\\vec{g}$ " 25 "components are calculated with functions.");
27 params.
addParam<FunctionName>(
"function",
28 "The boundary condition vector function. This cannot be supplied " 29 "with the component parameters.");
31 params.
addParam<FunctionName>(
"function_x", 0,
"The function for the x component");
32 params.
addParam<FunctionName>(
"function_y", 0,
"The function for the y component");
33 params.
addParam<FunctionName>(
"function_z", 0,
"The function for the z component");
36 "x_exact_soln",
"The exact solution for the x component",
"Use 'function_x' instead.");
38 "y_exact_soln",
"The exact solution for the y component",
"Use 'function_y' instead.");
40 "z_exact_soln",
"The exact solution for the z component",
"Use 'function_z' instead.");
46 _function(isParamValid(
"function") ? &getFunction(
"function") : nullptr),
47 _function_x(isParamValid(
"x_exact_soln") ? getFunction(
"x_exact_soln")
48 : getFunction(
"function_x")),
49 _function_y(isParamValid(
"y_exact_soln") ? getFunction(
"y_exact_soln")
50 : getFunction(
"function_y")),
51 _function_z(isParamValid(
"z_exact_soln") ? getFunction(
"z_exact_soln")
52 : getFunction(
"function_z"))
56 paramError(
"function_x",
"The 'function' and 'function_x' parameters cannot both be set.");
59 paramError(
"function_y",
"The 'function' and 'function_y' parameters cannot both be set.");
62 paramError(
"function_z",
"The 'function' and 'function_z' parameters cannot both be set.");
const RealVectorValue & _u
Value of the unknown variable this BC is acting on.
Boundary condition of a Dirichlet type.
registerMooseObject("MooseApp", VectorFunctionDirichletBC)
registerMooseObjectRenamed("MooseApp", LagrangeVecFunctionDirichletBC, "05/01/2019 00:01", VectorFunctionDirichletBC)
static InputParameters validParams()
static InputParameters validParams()
VectorFunctionDirichletBC(const InputParameters ¶meters)
const Function & _function_y
y component function
virtual RealVectorValue computeQpResidual() override
Base class for deriving any boundary condition that works at nodes on vector variables.
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_x
x component function
const Function *const _function
Optional vectorValue function.
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...
const InputParameters & parameters() const
Get the parameters of the object.
const Function & _function_z
z component function
RealVectorValue _values
The value for this BC.
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...
const Node *const & _current_node
current node being processed