https://mooseframework.inl.gov
Loading...
Searching...
No Matches
DGLowerDKernel.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 "DGKernel.h"
18{
19public:
28
30
34 const MooseVariableFEBase & variable() const override final { return _var; }
35
40
44 virtual void computeResidual() override;
45
49 virtual void computeJacobian() override;
50
54 virtual void computeOffDiagJacobian(unsigned int jvar) override;
55
56protected:
60 virtual void computeLowerDResidual();
61
66 virtual Real computeLowerDQpResidual() = 0;
67
71 virtual void computeLowerDJacobian(Moose::ConstraintJacobianType jacobian_type);
72
77
82 const MooseVariableFEBase & jvar);
83
88 const MooseVariableFEBase & /*jvar*/)
89 {
90 return 0;
91 }
92
96 virtual void initLowerDQpResidual() {}
97
102
111
120};
OutputTools< Real >::VariablePhiValue VariablePhiValue
Definition MooseTypes.h:353
OutputTools< Real >::VariableTestValue VariableTestValue
Definition MooseTypes.h:358
OutputTools< Real >::VariableValue VariableValue
Definition MooseTypes.h:348
The DGKernel class is responsible for calculating the residuals for various physics on internal sides...
Definition DGKernel.h:19
MooseVariable & _var
Variable this kernel operates on.
Definition DGKernel.h:92
The DGKernel class is responsible for calculating the residuals for various physics on internal sides...
const MooseVariable & _lowerd_var
Variable this kernel operates on.
const VariableValue & _lambda
Holds the current solution at the current quadrature point on the face.
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes d-residual / d-jvar...
const MooseVariableFEBase & variable() const override final
The variable that this kernel operates on.
virtual Real computeLowerDQpJacobian(Moose::ConstraintJacobianType jacobian_type)=0
Computes one of the five pieces of Jacobian involving lower-d at quadrature points.
virtual void computeLowerDResidual()
Computes the Lower part of residual for the variable on the lower-d element.
virtual void computeOffDiagLowerDJacobian(Moose::ConstraintJacobianType type, const MooseVariableFEBase &jvar)
Computes one of the five pieces of off-diagonal Jacobian involving lower-d.
virtual void initLowerDQpResidual()
Put necessary evaluations depending on qp but independent on test functions here.
virtual void computeJacobian() override
Computes the nine pieces of element/neighbor/lower-d - element/neighbor/lower-d Jacobian.
virtual Real computeLowerDQpOffDiagJacobian(Moose::ConstraintJacobianType, const MooseVariableFEBase &)
Computes one of the five pieces of off-diagonal Jacobian involving lower-d at quadrature points.
virtual void initLowerDQpJacobian(Moose::ConstraintJacobianType)
Put necessary evaluations depending on qp but independent on test and shape functions here.
virtual Real computeLowerDQpResidual()=0
Method for computing the Lower part of residual at quadrature points, to be filled in residual.
static InputParameters validParams()
Factory constructor initializes all internal references needed for residual computation.
virtual void computeLowerDJacobian(Moose::ConstraintJacobianType jacobian_type)
Computes one of the five pieces of Jacobian involving lower-d.
virtual void computeResidual() override
Computes the residual for this element, the neighbor and the lower-d element.
virtual void initLowerDQpOffDiagJacobian(Moose::ConstraintJacobianType, const MooseVariableFEBase &)
Put necessary evaluations depending on qp but independent on test and shape functions here for off-di...
const VariablePhiValue & _phi_lambda
Shape functions.
const MooseVariableFEBase & lowerDVariable() const
The variable that this kernel operates on.
const VariableTestValue & _test_lambda
test functions
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
const std::string & type() const
Get the type of this class.
Definition MooseBase.h:93
This class provides an interface for common operations on field variables of both FE and FV types wit...
ConstraintJacobianType
Definition MooseTypes.h:851