https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LMKernel.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 "ADKernelValue.h"
13
19class LMKernel : public ADKernelValue
20{
21public:
23
25
26protected:
27 void computeResidual() override;
28 void computeResidualsForJacobian() override;
29
32
35
38
42 const Real _lm_sign;
43
44private:
45 const std::vector<dof_id_type> & dofIndices() const override { return _all_dof_indices; }
46
48 std::vector<dof_id_type> _all_dof_indices;
49};
Base class for use when adding Pressure-Stabilized Petrov-Galerkin type stabilization (e....
Definition LMKernel.h:20
std::vector< dof_id_type > _all_dof_indices
The union of the primary var dof indices as well as the LM dof indices.
Definition LMKernel.h:48
void computeResidual() override
Definition LMKernel.C:43
const std::vector< dof_id_type > & dofIndices() const override
Definition LMKernel.h:45
MooseVariable & _lm_var
The Lagrange multiplier variable.
Definition LMKernel.h:31
void computeResidualsForJacobian() override
Definition LMKernel.C:73
const ADVariableValue & _lm
The values of the Lagrange multiplier variable at quadrature points.
Definition LMKernel.h:34
const Real _lm_sign
The sign (either +1 or -1) applied to this object's residual when adding to the Lagrange multiplier c...
Definition LMKernel.h:42
static InputParameters validParams()
Definition LMKernel.C:20
const VariableTestValue & _lm_test
The values of the Lagrange multiplier test functions at quadrature points.
Definition LMKernel.h:37
const InputParameters & parameters() const
VariableShapeValue< true > VariableTestValue
VariableValueTempl< true > ADVariableValue