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"))
const Function & _exact_z
The exact solution for the z component.
unsigned int _i
i-th, j-th index for enumerating test and shape functions
unsigned int _qp
quadrature point index
Real _penalty
The penalty coefficient.
virtual Real computeQpJacobian() override
Method for computing the diagonal Jacobian at quadrature points.
virtual Real computeQpResidual() override
Method for computing the residual at quadrature points.
const MooseArray< Point > & _q_point
active quadrature points
Base class for deriving any boundary condition of a integrated type.
const Function & _exact_y
The exact solution for the y component.
VectorPenaltyDirichletBC(const InputParameters ¶meters)
registerMooseObject("MooseApp", VectorPenaltyDirichletBC)
const VectorVariableTestValue & _test
test function values (in QPs)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Function & _exact_x
The exact solution for the x component.
static InputParameters validParams()
const VectorVariableValue & _u
the values of the unknown variable this BC is acting on
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...
Enforces a Dirichlet boundary condition for vector nonlinear variables in a weak sense by applying a ...
static InputParameters validParams()
const VectorVariablePhiValue & _phi
shape function values (in QPs)