20 "Creates a field consisting of one component of the gradient of a coupled variable.");
22 "The variable from which to compute the gradient component");
23 params.
addParam<
MooseEnum>(
"component", component,
"The gradient component to compute");
29 _gradient(coupledGradient(
"gradient_variable")),
30 _component(getParam<
MooseEnum>(
"component"))
registerMooseObject("MooseApp", VariableGradientComponent)
unsigned int _qp
Quadrature point index.
static InputParameters validParams()
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Extract a component from the gradient of a variable.
static InputParameters validParams()
VariableGradientComponent(const InputParameters ¶meters)
Class constructor.
int _component
Desired component.
const VariableGradient & _gradient
Reference to the gradient of the coupled variable.
virtual Real computeValue() override
Compute and return the value of the aux variable.