https://mooseframework.inl.gov
ADKernelGrad.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 "ADKernel.h"
13 
14 template <typename>
16 
19 
20 template <typename T>
21 class ADKernelGradTempl : public ADKernelTempl<T>
22 {
23 public:
25 
27 
28  void computeResidual() override;
29  void computeResidualAndJacobian() override;
30 
31 protected:
32  void computeResidualsForJacobian() override;
33 
37  virtual typename OutputTools<typename Moose::ADType<T>::type>::OutputGradient
39 
40  virtual ADReal computeQpResidual() override final;
41 
68 };
static InputParameters validParams()
Definition: ADKernelGrad.C:21
virtual OutputTools< typename Moose::ADType< T >::type >::OutputGradient precomputeQpResidual()=0
Called before forming the residual for an element.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void computeResidualAndJacobian() override
Compute this object&#39;s contribution to the residual and Jacobian simultaneously.
Definition: ADKernelGrad.C:92
DualNumber< Real, DNDerivativeType, true > ADReal
Definition: ADRealForward.h:47
ADKernelGradTempl(const InputParameters &parameters)
Definition: ADKernelGrad.C:27
virtual ADReal computeQpResidual() override final
Compute this Kernel&#39;s contribution to the residual at the current quadrature point.
Definition: ADKernelGrad.C:100
void computeResidualsForJacobian() override
compute the _residuals member for filling the Jacobian.
Definition: ADKernelGrad.C:66
const InputParameters & parameters() const
Get the parameters of the object.
void computeResidual() override
Compute this object&#39;s contribution to the residual.
Definition: ADKernelGrad.C:34