18 params.
addParam<Real>(
"penalty", 4,
"Penalty scalar");
19 params.
addRequiredParam<RealEigenVector>(
"value",
"Boundary value of the array variable");
21 "Enforces a Dirichlet boundary condition "
22 "in a weak sense with $p(\\vec{u}^\\ast, \\vec{u} - \\vec{u}_0)$, where $p$ is the constant "
23 "scalar penalty; $\\vec{u}^\\ast$ is the test functions and $\\vec{u} - \\vec{u}_0$ is the "
24 "differences between the current solution and the Dirichlet data.");
30 _p(getParam<Real>(
"penalty")),
31 _v(getParam<RealEigenVector>(
"value"))
35 "value",
"Number of 'values' must equal number of variable components (",
_count,
").");
registerMooseObject("MooseApp", ArrayPenaltyDirichletBC)
Base class for deriving any boundary condition of a integrated type.
static InputParameters validParams()
const ArrayVariableTestValue & _test
test function values (in QPs)
const ArrayVariablePhiValue & _phi
shape function values (in QPs)
const ArrayVariableValue & _u
the values of the unknown variable this BC is acting on
const unsigned int _count
Number of components of the array variable.
const RealEigenVector & _v
virtual void computeQpResidual(RealEigenVector &residual) override
Method for computing the residual at quadrature points, to be filled in residual.
virtual RealEigenVector computeQpJacobian() override
Method for computing the diagonal Jacobian at quadrature points.
static InputParameters validParams()
ArrayPenaltyDirichletBC(const InputParameters ¶meters)
unsigned int _qp
quadrature point index
unsigned int _i
i-th, j-th index for enumerating test and shape functions
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 ...