Go to the documentation of this file.
18 InputParameters params = validParams<Kernel>();
19 params.addClassDescription(
20 "Set the kernel variable to a specified component of the gradient of a coupled variable.");
21 params.addRequiredCoupledVar(
"v",
"Coupled variable to match gradient component of");
22 params.addRequiredParam<
unsigned int>(
"component",
23 "Component of the gradient of the coupled variable v");
30 _grad_v(coupledGradient(
"v")),
31 _component(getParam<unsigned int>(
"component"))
34 paramError(
"component",
"Component too large for LIBMESH_DIM");
46 return _phi[_j][_qp] * _test[_i][_qp];
53 return -_grad_phi[_j][_qp](
_component) * _test[_i][_qp];
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
const VariableGradient & _grad_v
Gradient of the coupled variable.
const unsigned int _component
Component of the gradient vector to match.
virtual Real computeQpResidual()
GradientComponent(const InputParameters ¶meters)
InputParameters validParams< GradientComponent >()
virtual Real computeQpJacobian()
const unsigned int _v_var
Identity of the coupled variable.
registerMooseObject("PhaseFieldApp", GradientComponent)