22 RealVectorValue(0, 0, 0),
23 "The acceleration components for an applied distributed force in an element.");
27 params.
addCoupledVar(
"rho_v",
"y-component of the momentum vector");
28 params.
addCoupledVar(
"rho_w",
"z-component of the momentum vector");
31 "Implements the power term of a specified force in the Navier Stokes energy equation.");
39 _acceleration(getParam<RealVectorValue>(
"acceleration")),
42 _rhou_var_number(coupled(
"rho_u")),
43 _rhov_var_number(isCoupled(
"rho_v") ? coupled(
"rho_v") :
libMesh::invalid_uint),
44 _rhow_var_number(isCoupled(
"rho_w") ? coupled(
"rho_w") :
libMesh::invalid_uint),
45 _rho_u(coupledValue(
"rho_u")),
46 _rho_v(isCoupled(
"rho_v") ? coupledValue(
"rho_v") : _zero),
47 _rho_w(isCoupled(
"rho_w") ? coupledValue(
"rho_w") : _zero)
registerMooseObject("NavierStokesApp", DistributedPower)
The DistributedPower kernel computes the kinetic energy contribution of the body force due to total e...
static InputParameters validParams()
RealVectorValue _acceleration
const VariableValue & _rho_u
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
const VariableValue & _rho_v
unsigned int _rhou_var_number
unsigned int _rhow_var_number
const VariableValue & _rho_w
unsigned int _rhov_var_number
DistributedPower(const InputParameters ¶meters)
const VariablePhiValue & _phi
const VariableTestValue & _test
static InputParameters validParams()
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...