https://mooseframework.inl.gov
Loading...
Searching...
No Matches
FVScalarLagrangeMultiplierConstraint.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 "FVQpElementalKernel.h"
13
19{
20public:
22
24
26
27protected:
30
31private:
32 void computeResidual() override final;
33 void computeJacobian() override final;
35 void computeOffDiagJacobian() override final;
36 void computeResidualAndJacobian() override final;
37 ADReal computeQpResidual() override = 0;
38
41
44};
DualNumber< Real, DNDerivativeType, true > ADReal
Real PostprocessorValue
various MOOSE typedefs
Definition MooseTypes.h:230
Base class for FV elemental kernels that need qp-indexed solution values.
Base class for implementing constraints on finite volume variable elemental values using scalar Lagra...
ADReal computeQpResidual() override=0
This is the primary function that must be implemented for flux kernel terms.
void computeResidual() override final
Usually you should not override these functions - they have some tricky stuff in them that you don't ...
void computeJacobian() override final
Compute this object's contribution to the diagonal Jacobian entries.
void computeResidualAndJacobian() override final
Compute this object's contribution to the residual and Jacobian simultaneously.
const PostprocessorValue & _phi0
The value that we want the average of the primal variable to be equal to.
const MooseVariableScalar & _lambda_var
The Lagrange Multiplier variable.
const ADVariableValue & _lambda
The Lagrange Multiplier value.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Class for scalar variables (they are different).