www.mooseframework.org
EqualGradientLagrangeInterface.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef EQUALGRADIENTLAGRANGEINTERFACE_H
8 #define EQUALGRADIENTLAGRANGEINTERFACE_H
9 
10 #include "InterfaceKernel.h"
11 
13 
14 template <>
16 
21 class EqualGradientLagrangeInterface : public InterfaceKernel
22 {
23 public:
24  EqualGradientLagrangeInterface(const InputParameters & parameters);
25 
26 protected:
27  virtual Real computeQpResidual(Moose::DGResidualType type) override;
28  virtual Real computeQpJacobian(Moose::DGJacobianType type) override;
29  virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar) override;
30 
31  const unsigned int _component;
32 
34  const VariableValue & _lambda;
35 
36  const unsigned int _lambda_jvar;
37 };
38 
39 #endif // EQUALGRADIENTLAGRANGEINTERFACE_H
virtual Real computeQpJacobian(Moose::DGJacobianType type) override
virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar) override
InterfaceKernel to enforce a Lagrange-Multiplier based componentwise continuity of a variable gradien...
virtual Real computeQpResidual(Moose::DGResidualType type) override
const VariableValue & _lambda
Lagrange multiplier.
InputParameters validParams< EqualGradientLagrangeInterface >()
EqualGradientLagrangeInterface(const InputParameters &parameters)