https://mooseframework.inl.gov
LMDiffusion.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 "Kernel.h"
13 
18 class LMDiffusion : public Kernel
19 {
20 public:
22 
24 
25 protected:
26  Real computeQpResidual() override;
27  Real computeQpJacobian() override;
28  Real computeQpOffDiagJacobian(unsigned int jvar) override;
29 
30 private:
32  const unsigned int _primal_var;
33 
36 
39 
41  const Real _lm_sign;
42 
45 };
Real computeQpResidual() override
Definition: LMDiffusion.C:50
const Real _lm_sign
The sign of the Lagrange multiplier (the 'variable' of this kernel) in the primal equation...
Definition: LMDiffusion.h:41
Adds the strong diffusive term of the primal equation to stabilization of the Lagrange multiplier equ...
Definition: LMDiffusion.h:18
OutputTools< Real >::VariablePhiSecond VariablePhiSecond
const VariableSecond & _second_primal
The matrix of second spatial derivatives of the primal variable.
Definition: LMDiffusion.h:35
Real computeQpOffDiagJacobian(unsigned int jvar) override
Definition: LMDiffusion.C:62
const VariablePhiSecond & _second_primal_phi
The matrix of second spatial derivatives of the basis functions of the primal variable.
Definition: LMDiffusion.h:38
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real computeQpJacobian() override
Definition: LMDiffusion.C:56
LMDiffusion(const InputParameters &parameters)
Definition: LMDiffusion.C:32
const InputParameters & parameters() const
OutputTools< Real >::VariableSecond VariableSecond
const unsigned int _primal_var
The primal variable number.
Definition: LMDiffusion.h:32
static InputParameters validParams()
Definition: LMDiffusion.C:15
const Real _diffusivity
The primal variable diffusivity.
Definition: LMDiffusion.h:44