12 #include "MooseVariable.h"
20 InputParameters params = validParams<Kernel>();
22 params.addClassDescription(
23 "Calculate heat or mass transfer from a coupled variable v to the variable u. "
24 "No mass lumping is performed here.");
25 params.addRequiredCoupledVar(
26 "v",
"The variable which is tranfsered to u using a transfer coefficient");
27 params.addCoupledVar(
"transfer_coefficient",
29 "Transfer coefficient for heat or mass transferred between variables");
37 _v(coupledValue(
"v")),
38 _coef_var(coupledValue(
"transfer_coefficient"))
45 return _coef_var[_qp] * (_u[_qp] -
_v[_qp]) * _test[_i][_qp];
51 return jac(_var.number());
63 if (jvar == _var.number())
64 return _coef_var[_qp] * _phi[_j][_qp] * _test[_i][_qp];
66 return -
_coef_var[_qp] * _phi[_j][_qp] * _test[_i][_qp];