LCOV - code coverage report
Current view: top level - include/userobjects - LMWeightedGapUserObject.h (source / functions) Hit Total Coverage
Test: idaholab/moose contact: 8601ad Lines: 2 2 100.0 %
Date: 2025-07-18 13:27:36 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          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 "WeightedGapUserObject.h"
      13             : 
      14             : template <typename>
      15             : class MooseVariableFE;
      16             : 
      17             : /**
      18             :  * User object for computing weighted gaps and contact pressure for Lagrange multipler based
      19             :  * mortar constraints
      20             :  */
      21             : class LMWeightedGapUserObject : public WeightedGapUserObject
      22             : {
      23             : public:
      24             :   static InputParameters validParams();
      25             : 
      26             :   LMWeightedGapUserObject(const InputParameters & parameters);
      27             : 
      28             :   virtual const ADVariableValue & contactPressure() const override;
      29      998559 :   virtual void reinit() override {}
      30             : 
      31             : protected:
      32             :   virtual const VariableTestValue & test() const override;
      33       49819 :   virtual bool constrainedByOwner() const override { return true; }
      34             : 
      35             :   /// The Lagrange multiplier variable representing the contact pressure
      36             :   const MooseVariableFE<Real> * const _lm_var;
      37             : 
      38             :   /// Whether to use Petrov-Galerkin approach
      39             :   const bool _use_petrov_galerkin;
      40             : 
      41             :   /// The auxiliary Lagrange multiplier variable (used together whith the Petrov-Galerkin approach)
      42             :   const MooseVariable * const _aux_lm_var;
      43             : };

Generated by: LCOV version 1.14