https://mooseframework.inl.gov
Loading...
Searching...
No Matches
EqualGradientLagrangeMultiplier.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 "InterfaceKernel.h"
13
19{
20public:
22
24
25protected:
26 virtual Real computeQpResidual(Moose::DGResidualType type) override;
27 virtual Real computeQpJacobian(Moose::DGJacobianType type) override;
28 virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar) override;
29
31 const unsigned int _component;
32
35 unsigned int _element_jvar;
37
39 unsigned int _neighbor_jvar;
40
42 const Real _jacobian_fill;
43};
Lagrange multiplier "FaceKernel" that is used in conjunction with EqualGradientLagrangeInterface.
virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar) override
const Real _jacobian_fill
compensate Jacobian fill term from NullKernel
unsigned int _neighbor_jvar
variable to control gradient on the secondary side of the interface
const VariableGradient & _grad_element_value
variable to control gradient on the primary side of the interface
const unsigned int _component
x,y,z component of the gradient to constrain
virtual Real computeQpResidual(Moose::DGResidualType type) override
virtual Real computeQpJacobian(Moose::DGJacobianType type) override
const InputParameters & parameters() const
const std::string & type() const
VariableGradientTempl< false > VariableGradient
DGResidualType
DGJacobianType