18 InputParameters params = validParams<Kernel>();
21 params.addParam<RealVectorValue>(
23 RealVectorValue(0, 0, 0),
24 "The acceleration components for an applied distributed force in an element.");
27 params.addRequiredCoupledVar(
"rho_u",
"x-component of the momentum vector");
28 params.addCoupledVar(
"rho_v",
"y-component of the momentum vector");
29 params.addCoupledVar(
"rho_w",
"z-component of the momentum vector");
37 _acceleration(getParam<RealVectorValue>(
"acceleration")),
40 _rhou_var_number(coupled(
"rho_u")),
41 _rhov_var_number(isCoupled(
"rho_v") ? coupled(
"rho_v") :
libMesh::invalid_uint),
42 _rhow_var_number(isCoupled(
"rho_w") ? coupled(
"rho_w") :
libMesh::invalid_uint),
43 _rho_u(coupledValue(
"rho_u")),
44 _rho_v(isCoupled(
"rho_v") ? coupledValue(
"rho_v") : _zero),
45 _rho_w(isCoupled(
"rho_w") ? coupledValue(
"rho_w") : _zero)