21 params.
addParam<Real>(
"u_coeff", 1.0,
" A coefficient for primary variable u");
22 params.
addParam<Real>(
"v_coeff", 1.0,
" A coefficient for coupled variable v");
23 params.
addClassDescription(
"Implements a NodalBC which equates two different Variables' values "
24 "on a specified boundary.");
31 _v(this->template coupledGenericValue<is_ad>(
"v")),
33 _u_coeff(this->template getParam<Real>(
"u_coeff")),
34 _v_coeff(this->template getParam<Real>(
"v_coeff"))
42 return _u_coeff * _u - _v_coeff * _v[_qp];
49 return _u_coeff * _u[_qp] - _v_coeff * _v[_qp];
registerMooseObject("MooseApp", MatchedValueBC)
Moose::GenericType< Real, is_ad > GenericReal
static InputParameters validParams()
Implements a simple coupled boundary condition where u=v on the boundary.
static InputParameters validParams()
MatchedValueBCTempl(const InputParameters ¶meters)
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
This is the virtual that derived classes should override for computing an off-diagonal jacobian compo...
virtual GenericReal< is_ad > computeQpResidual() override