https://mooseframework.inl.gov
ADDGKernel.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 "DGKernelBase.h"
13 
15 {
16 public:
18 
20 
21 private:
25  const MooseVariableFEBase & jvar) override final;
26  void computeJacobian() override final;
27  void computeOffDiagJacobian(unsigned int jvar) override final;
28 
29 protected:
30  const MooseVariableFEBase & variable() const override { return _var; }
31 
34 
53 
56 
59 
62 
65 };
ADDGKernel(const InputParameters &parameters)
Definition: ADDGKernel.C:30
const VariablePhiValue & _phi_neighbor
Side shape function.
Definition: ADDGKernel.h:46
Class for stuff related to variables.
Definition: Adaptivity.h:31
const VariablePhiValue & _phi
Shape functions.
Definition: ADDGKernel.h:38
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
This class provides an interface for common operations on field variables of both FE and FV types wit...
static InputParameters validParams()
Definition: ADDGKernel.C:22
DGResidualType
Definition: MooseTypes.h:743
DualNumber< Real, DNDerivativeType, true > ADReal
Definition: ADRealForward.h:47
Serves as a base class for DGKernel and ADDGKernel.
Definition: DGKernelBase.h:32
const VariablePhiGradient & _grad_phi_neighbor
Gradient of side shape function.
Definition: ADDGKernel.h:48
Enhances MooseVariableInterface interface provide values from neighbor elements.
const ADVariableValue & _u
Holds the solution at current quadrature points.
Definition: ADDGKernel.h:55
void computeElemNeighResidual(Moose::DGResidualType type) override final
Computes the residual for this element or the neighbor.
Definition: ADDGKernel.C:109
const VariableTestValue & _test_neighbor
Side test function.
Definition: ADDGKernel.h:50
OutputTools< Real >::VariableTestValue VariableTestValue
Definition: MooseTypes.h:324
void computeOffDiagJacobian(unsigned int jvar) override final
Computes d-residual / d-jvar...
Definition: ADDGKernel.C:194
const std::string & type() const
Get the type of this class.
Definition: MooseBase.h:51
MooseVariable & _var
Variable this kernel operates on.
Definition: ADDGKernel.h:36
const ADVariableGradient & _grad_u_neighbor
Holds the current solution gradient at the current quadrature point.
Definition: ADDGKernel.h:64
DGJacobianType
Definition: MooseTypes.h:749
const VariablePhiGradient & _grad_phi
Gradient of shape function.
Definition: ADDGKernel.h:40
OutputTools< Real >::VariablePhiGradient VariablePhiGradient
Definition: MooseTypes.h:320
const MooseVariableFEBase & variable() const override
Returns the variable that this object operates on.
Definition: ADDGKernel.h:30
forward declarations
const ADVariableGradient & _grad_u
Holds the solution gradient at the current quadrature points.
Definition: ADDGKernel.h:58
const InputParameters & parameters() const
Get the parameters of the object.
void computeElemNeighJacobian(Moose::DGJacobianType type) override final
Computes the element/neighbor-element/neighbor Jacobian.
Definition: ADDGKernel.C:155
OutputTools< Real >::VariableTestGradient VariableTestGradient
Definition: MooseTypes.h:325
virtual ADReal computeQpResidual(Moose::DGResidualType type)=0
Compute this Kernel&#39;s contribution to the residual at the current quadrature point.
void computeOffDiagElemNeighJacobian(Moose::DGJacobianType type, const MooseVariableFEBase &jvar) override final
Computes the element-element off-diagonal Jacobian.
Definition: ADDGKernel.C:207
const VariableTestGradient & _grad_test_neighbor
Gradient of side shape function.
Definition: ADDGKernel.h:52
const ADVariableValue & _u_neighbor
Holds the current solution at the current quadrature point.
Definition: ADDGKernel.h:61
const VariableTestValue & _test
test functions
Definition: ADDGKernel.h:42
const VariableTestGradient & _grad_test
Gradient of side shape function.
Definition: ADDGKernel.h:44
void computeJacobian() override final
Computes the jacobian for the current side.
Definition: ADDGKernel.C:143