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