20 params.
addParam<FunctionName>(
"function",
21 "The boundary condition vector function, "
22 "use as an alternative to a component-wise specification");
23 params.
addParam<FunctionName>(
"function_x", 0,
"The function for the x component");
24 params.
addParam<FunctionName>(
"function_y", 0,
"The function for the y component");
25 params.
addParam<FunctionName>(
"function_z", 0,
"The function for the z component");
26 params.
addClassDescription(
"Enforces a Dirichlet boundary condition for the curl of vector "
27 "nonlinear variables in a weak sense by applying a penalty to the "
28 "difference in the current solution and the Dirichlet data.");
34 _penalty(getParam<Real>(
"penalty")),
35 _function(isParamValid(
"function") ? &getFunction(
"function") : nullptr),
36 _function_x(getFunction(
"function_x")),
37 _function_y(getFunction(
"function_y")),
38 _function_z(getFunction(
"function_z"))
45 RealVectorValue u_exact;
registerMooseObject("MooseApp", VectorCurlPenaltyDirichletBC)
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...
unsigned int _qp
quadrature point index
unsigned int _i
i-th, j-th index for enumerating test and shape functions
const MooseArray< Point > & _q_point
active quadrature points
Enforces a Dirichlet boundary condition for the curl of vector nonlinear variables in a weak sense by...
static InputParameters validParams()
const Function *const _function
The vector function for the exact solution.
VectorCurlPenaltyDirichletBC(const InputParameters ¶meters)
const Function & _function_z
The function for the z component.
const Function & _function_x
The function for the x component.
const Function & _function_y
The function for the y component.
virtual Real computeQpJacobian() override
Method for computing the diagonal Jacobian at quadrature points.
Real _penalty
The penalty coefficient.
virtual Real computeQpResidual() override
Method for computing the residual at quadrature points.
Base class for deriving any boundary condition of a integrated type.
static InputParameters validParams()
const MooseArray< Point > & _normals
normals at quadrature points
const VectorVariablePhiValue & _phi
shape function values (in QPs)
const VectorVariableTestValue & _test
test function values (in QPs)
const VectorVariableValue & _u
the values of the unknown variable this BC is acting on
TypeVector< typename CompareTypes< T, T2 >::supertype > cross(const TypeVector< T2 > &v) const