www.mooseframework.org
ADVectorDiffusion.C
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 #include "ADVectorDiffusion.h"
11 
13 
15 
16 template <ComputeStage compute_stage>
19 {
21  params.addClassDescription(
22  "The Laplacian operator ($-\\nabla \\cdot \\nabla \\vec{u}$), with the weak "
23  "form of $(\\nabla \\vec{\\phi_i}, \\nabla \\vec{u_h})$. The Jacobian is computed using "
24  "automatic differentiation");
25  return params;
26 }
27 
28 template <ComputeStage compute_stage>
30  : ADVectorKernel<compute_stage>(parameters)
31 {
32 }
33 
34 template <ComputeStage compute_stage>
35 ADReal
37 {
38  return _grad_u[_qp].contract(_grad_test[_i][_qp]);
39 }
40 
41 template class ADVectorDiffusion<RESIDUAL>;
42 template class ADVectorDiffusion<JACOBIAN>;
ADKernelTempl::validParams
static InputParameters validParams()
Definition: ADKernel.C:25
ADVectorDiffusion
Definition: ADVectorDiffusion.h:15
defineADLegacyParams
defineADLegacyParams(ADVectorDiffusion)
ADVectorDiffusion::computeQpResidual
virtual ADReal computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
Definition: ADVectorDiffusion.C:36
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Definition: InputParameters.h:53
registerADMooseObject
registerADMooseObject("MooseApp", ADVectorDiffusion)
ADVectorDiffusion::validParams
static InputParameters validParams()
Definition: ADVectorDiffusion.C:18
InputParameters::addClassDescription
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump.
Definition: InputParameters.C:70
ADKernelTempl
Definition: ADKernel.h:66
ADVectorDiffusion.h
ADVectorDiffusion::ADVectorDiffusion
ADVectorDiffusion(const InputParameters &parameters)
Definition: ADVectorDiffusion.C:29