LCOV - code coverage report
Current view: top level - include/dgkernels - HFEMTestJump.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 1 1 100.0 %
Date: 2025-07-17 01:28:37 Functions: 1 1 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 "DGKernel.h"
      13             : 
      14             : /**
      15             :  * The HFEMTestJump class computes an L2 product (lambda, [u*])_Gamma,
      16             :  * where Gamma is the set of internal sides, lambda is a variable
      17             :  * (generally a SIDE_DISCONTINUOUS FEType like SIDE_HIERARCIC) which
      18             :  * is uniquely defined on those sides (although not necessarily their
      19             :  * boundaries), and [u*] is the jump across a side of a test function
      20             :  * u* corresponding to variation in a DISCONTINUOUS variable u (e.g.
      21             :  * a MONOMIAL type)
      22             :  *
      23             :  * In an HFEM formulation (and probably in most mixed formulations
      24             :  * that would use this kernel) this should be paired with an
      25             :  * HFEMTestJump kernel.
      26             :  */
      27             : class HFEMTestJump : public DGKernel
      28             : {
      29             : public:
      30             :   static InputParameters validParams();
      31             : 
      32             :   HFEMTestJump(const InputParameters & parameters);
      33             : 
      34             : protected:
      35             :   virtual Real computeQpResidual(Moose::DGResidualType type) override;
      36      539280 :   virtual Real computeQpJacobian(Moose::DGJacobianType) override { return 0; }
      37             :   virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar) override;
      38             : 
      39             :   /// Variable for the lagrange multiplier lambda
      40             :   const MooseVariable & _lambda_var;
      41             : 
      42             :   /// Current lambda solution at the current side quadrature point
      43             :   const VariableValue & _lambda;
      44             : 
      45             :   /// lambda shape function at the current side quadrature point
      46             :   const VariablePhiValue & _phi_lambda;
      47             : 
      48             :   /// lambda test function at the current side quadrature point
      49             :   const VariablePhiValue & _test_lambda;
      50             : 
      51             :   /// Variable id for lambda
      52             :   const unsigned int _lambda_id;
      53             : };

Generated by: LCOV version 1.14