18 params.
addParam<RealEigenVector>(
"alpha",
"Ratio between directional gradient and solution");
20 "\\vec{u}=-\\frac{\\vec{\\alpha}}{2}\\vec{u}$.");
26 _alpha(isParamValid(
"alpha") ? getParam<RealEigenVector>(
"alpha")
27 : RealEigenVector::Ones(_count))
31 "alpha",
"Number of values must equal number of variable components (",
_count,
").");
registerMooseObject("MooseApp", ArrayVacuumBC)
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.
virtual RealEigenVector computeQpJacobian() override
Method for computing the diagonal Jacobian at quadrature points.
static InputParameters validParams()
RealEigenVector _alpha
Ratio of u to du/dn.
ArrayVacuumBC(const InputParameters ¶meters)
virtual void computeQpResidual(RealEigenVector &residual) override
Method for computing the residual at quadrature points, to be filled in residual.
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 ...