https://mooseframework.inl.gov
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 
19 class LMKernel : public ADKernelValue
20 {
21 public:
23 
25 
26 protected:
27  void computeResidual() override;
28  void computeResidualsForJacobian() override;
29 
32 
35 
38 
42  const Real _lm_sign;
43 
44 private:
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 };
void computeResidual() override
Definition: LMKernel.C:43
MooseVariable & _lm_var
The Lagrange multiplier variable.
Definition: LMKernel.h:31
const VariableTestValue & _lm_test
The values of the Lagrange multiplier test functions at quadrature points.
Definition: LMKernel.h:37
Base class for use when adding Pressure-Stabilized Petrov-Galerkin type stabilization (e...
Definition: LMKernel.h:19
const ADVariableValue & _lm
The values of the Lagrange multiplier variable at quadrature points.
Definition: LMKernel.h:34
OutputTools< Real >::VariableTestValue VariableTestValue
const Real _lm_sign
The sign (either +1 or -1) applied to this object&#39;s residual when adding to the Lagrange multiplier c...
Definition: LMKernel.h:42
LMKernel(const InputParameters &parameters)
Definition: LMKernel.C:33
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
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
const InputParameters & parameters() const
const std::vector< dof_id_type > & dofIndices() const override
Definition: LMKernel.h:45
static InputParameters validParams()
Definition: LMKernel.C:20
void computeResidualsForJacobian() override
Definition: LMKernel.C:73