21 MooseEnum momentum_component(
"x=0 y=1 z=2");
25 "The component of the momentum equation that this kernel applies to.");
26 params.
addRequiredParam<FunctionName>(
"epsilon_function",
"A function describing the porosity");
33 _eps_function(getFunction(
"epsilon_function")),
34 _index(getParam<
MooseEnum>(
"momentum_component"))
39 PNSFVPGradEpsilon::computeQpResidual()
41 return -_pressure[_qp] * _eps_function.
gradient(_t, _q_point[_qp])(_index);
registerMooseObject("NavierStokesApp", PNSFVPGradEpsilon)
DualNumber< Real, DNDerivativeType, true > ADReal
InputParameters validParams()
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual const OutputTools< Real >::VariableGradient & gradient()
static const std::string pressure