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];
Moose::GenericType< Real, is_ad > GenericReal
static InputParameters validParams()
registerMooseObject("MooseApp", MatchedValueBC)
static InputParameters validParams()
virtual GenericReal< is_ad > computeQpResidual() override
MatchedValueBCTempl(const InputParameters ¶meters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Implements a simple coupled boundary condition where u=v on the boundary.
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
This is the virtual that derived classes should override for computing an off-diagonal jacobian compo...