21 params.
addCoupledVar(
"scale_factor", 1.,
"Scale factor to multiply the heat flux with");
23 "coef", 1.0,
"Coefficent ($\\sigma$) multiplier for the coupled force term.");
25 "$\\frac{\\partial u}{\\partial n}=v$, " 26 "where $v$ is a variable.");
32 _coupled_var(this->template coupledGenericValue<is_ad>(
"v")),
33 _coupled_num(this->coupled(
"v")),
34 _coef(this->template getParam<
Real>(
"coef")),
35 _scale_factor(this->template coupledGenericValue<is_ad>(
"scale_factor"))
43 return -_scale_factor[_qp] * _coef * _test[_i][_qp] * _coupled_var[_qp];
Moose::GenericType< Real, is_ad > GenericReal
registerMooseObject("MooseApp", CoupledVarNeumannBC)
Implements a Neumann BC where grad(u)=_coupled_var on the boundary.
InputParameters validParams()
static InputParameters validParams()
virtual GenericReal< is_ad > computeQpResidual() override
virtual Real computeQpOffDiagJacobian(const unsigned int jvar_num) override
const Real _coef
A coefficient that is multiplied with the residual contribution.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const GenericVariableValue< is_ad > & _scale_factor
Scale factor.
const unsigned int _coupled_num
The identifying number of the coupled variable.
CoupledVarNeumannBCTempl(const InputParameters ¶meters)
typename std::conditional< is_ad, ADIntegratedBC, IntegratedBC >::type IntegratedBCParent