https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GradientComponent.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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
15{
16public:
18
20
21protected:
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};
virtual Real computeQpResidual()
static InputParameters validParams()
const unsigned int _v_var
Identity of the coupled variable.
const unsigned int _component
Component of the gradient vector to match.
virtual Real computeQpJacobian()
const VariableGradient & _grad_v
Gradient of the coupled variable.
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
const InputParameters & parameters() const
VariableGradientTempl< false > VariableGradient