Line data Source code
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 "FVInterfaceKernel.h" 13 : 14 : class FVScalarLagrangeMultiplierInterface : public FVInterfaceKernel 15 : { 16 : public: 17 : static InputParameters validParams(); 18 : FVScalarLagrangeMultiplierInterface(const InputParameters & params); 19 : 20 : void computeResidual(const FaceInfo & fi) override final; 21 : void computeJacobian(const FaceInfo & fi) override final; 22 : 23 : /** 24 : * @return the Lagrange Multiplier scalar variable that enforces the interface constraint 25 : */ 26 13 : const MooseVariableScalar & lambdaVariable() const { return _lambda_var; } 27 : 28 : protected: 29 : ADReal computeQpResidual() override = 0; 30 : 31 : /// The Lagrange Multiplier variable 32 : const MooseVariableScalar & _lambda_var; 33 : 34 : /// The Lagrange Multiplier value 35 : const ADVariableValue & _lambda; 36 : };