https://mooseframework.inl.gov
ScalarLagrangeMultiplier.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 
33 {
34 public:
36 
38  virtual ~ScalarLagrangeMultiplier();
39 
40  virtual void computeOffDiagJacobianScalar(unsigned int jvar) override;
41 
42 protected:
43  virtual Real computeQpResidual() override;
44  virtual Real computeQpOffDiagJacobianScalar(unsigned int jvar) override;
45 
47  unsigned int _lambda_var;
48 
51 };
virtual Real computeQpOffDiagJacobianScalar(unsigned int jvar) override
For coupling scalar variables.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual Real computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
const VariableValue & _lambda
Lagrange multiplier variable value.
forward declarations
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Definition: Kernel.h:15
const InputParameters & parameters() const
Get the parameters of the object.
ScalarLagrangeMultiplier(const InputParameters &parameters)
unsigned int _lambda_var
Lagrange multiplier variable ID.
virtual void computeOffDiagJacobianScalar(unsigned int jvar) override
Computes jacobian block with respect to a scalar variable.
This Kernel implements part of the equation that enforces the constraint of.