21 params.addClassDescription(
"This class solves the scalar advection equation, "
22 "$\\vec{a}\\cdot\\nabla u = f$ with SUPG stabilization.");
23 params.addParam<FunctionName>(
"forcing_func", 0,
"The forcing function, typically used for MMS.");
24 MooseEnum tau_type(
"opt mod");
25 params.addRequiredParam<MooseEnum>(
26 "tau_type", tau_type,
"The type of stabilization parameter to use.");
32 _ffn(getFunction(
"forcing_func")),
33 _tau_type(getParam<MooseEnum>(
"tau_type"))
42 return (_test[_i][_qp] + tau_val * (U * _grad_test[_i][_qp])) *
43 (U * _grad_u[_qp] -
_ffn.value(_t, _q_point[_qp]));
51 return (_test[_i][_qp] + tau_val * (U * _grad_test[_i][_qp])) * (U * _grad_phi[_j][_qp]);