www.mooseframework.org
GradientComponent.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Kernel.h"
13 
14 class GradientComponent : public Kernel
15 {
16 public:
18 
20 
21 protected:
22  virtual Real computeQpResidual();
23  virtual Real computeQpJacobian();
24  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
25 
27  const unsigned int _v_var;
28 
31 
33  const unsigned int _component;
34 };
OutputTools< Real >::VariableGradient VariableGradient
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
GradientComponent(const InputParameters &parameters)
const VariableGradient & _grad_v
Gradient of the coupled variable.
static InputParameters validParams()
virtual Real computeQpJacobian()
const unsigned int _component
Component of the gradient vector to match.
virtual Real computeQpResidual()
const unsigned int _v_var
Identity of the coupled variable.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const