20 params.
addParam<FunctionName>(
"x_exact_sln", 0,
"The exact solution for the x component");
21 params.
addParam<FunctionName>(
"y_exact_sln", 0,
"The exact solution for the y component");
22 params.
addParam<FunctionName>(
"z_exact_sln", 0,
"The exact solution for the z component");
24 "vector nonlinear variables in a weak sense by "
25 "applying a penalty to the difference in the "
26 "current solution and the Dirichlet data.");
32 _penalty(getParam<Real>(
"penalty")),
33 _exact_x(getFunction(
"x_exact_sln")),
34 _exact_y(getFunction(
"y_exact_sln")),
35 _exact_z(getFunction(
"z_exact_sln"))
registerMooseObject("MooseApp", VectorPenaltyDirichletBC)
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,...
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
Base class for deriving any boundary condition of a integrated type.
static InputParameters validParams()
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
Enforces a Dirichlet boundary condition for vector nonlinear variables in a weak sense by applying a ...
VectorPenaltyDirichletBC(const InputParameters ¶meters)
Real _penalty
The penalty coefficient.
static InputParameters validParams()
const Function & _exact_z
The exact solution for the z component.
virtual Real computeQpJacobian() override
Method for computing the diagonal Jacobian at quadrature points.
const Function & _exact_x
The exact solution for the x component.
virtual Real computeQpResidual() override
Method for computing the residual at quadrature points.
const Function & _exact_y
The exact solution for the y component.