18 params.
addParam<RealEigenVector>(
"value",
"The prescribed flux $h$ of each component");
19 params.
addParam<RealEigenVector>(
"alpha",
"The Robin coefficient $\\alpha$ of each component");
21 "$\\nabla u \\cdot \\vec{n} = h - \\alpha u$ on every component of an "
22 "array variable, using automatic differentiation.");
28 _value(isParamValid(
"value") ? getParam<RealEigenVector>(
"value")
29 : RealEigenVector::Zero(_count)),
30 _alpha(isParamValid(
"alpha") ? getParam<RealEigenVector>(
"alpha")
31 : RealEigenVector::Zero(_count))
34 paramError(
"value",
"Must have as many entries as the variable has components");
36 paramError(
"alpha",
"Must have as many entries as the variable has components");
registerMooseObject("MooseApp", ADArrayRobinBC)
Base class for integrated boundary conditions on array variables whose Jacobians are computed with au...
const ArrayVariableTestValue & _test
test function values (in QPs)
const unsigned int _count
Number of components of the array variable.
static InputParameters validParams()
const ADArrayVariableValue & _u
the values of the unknown variable this BC is acting on
Robin boundary condition for all components of an array variable, grad(u) .
static InputParameters validParams()
const RealEigenVector _alpha
Robin coefficient alpha.
virtual void computeQpResidual(ADRealEigenVector &residual) override
Compute this boundary condition's contribution to the residual at the current quadrature point,...
ADArrayRobinBC(const InputParameters ¶meters)
const RealEigenVector _value
prescribed flux h
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 ...