LCOV - code coverage report
Current view: top level - include/dgkernels - HFEMTrialJump.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 HFEMTrialJump class computes an L2 product (lambda*, [u])_Gamma,
      16             :  * where Gamma is the set of internal sides, lambda* is a test
      17             :  * function corresponding to variation in a variable lambda (in
      18             :  * typical use cases, a SIDE_DISCONTINUOUS FEType like SIDE_HIERARCIC)
      19             :  * which is uniquely defined on those sides (although not necessarily
      20             :  * their boundaries), and [u] is the jump across a side of a
      21             :  * DISCONTINUOUS variable u (e.g. 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 HFEMTrialJump : public DGKernel
      28             : {
      29             : public:
      30             :   static InputParameters validParams();
      31             : 
      32             :   HFEMTrialJump(const InputParameters & parameters);
      33             : 
      34             : protected:
      35             :   virtual Real computeQpResidual(Moose::DGResidualType type) override;
      36      134016 :   virtual Real computeQpJacobian(Moose::DGJacobianType) override { return 0; }
      37             :   virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar) override;
      38             : 
      39             :   /// Variable whose jump to test against variations in lambda
      40             :   const MooseVariable & _interior_var;
      41             : 
      42             :   /// Current interior solution at the current side quadrature point
      43             :   const VariableValue & _interior;
      44             : 
      45             :   /// neighbor's interior solution at the current side quadrature point
      46             :   const VariableValue & _interior_neighbor;
      47             : 
      48             :   /// interior shape function at the current side quadrature point
      49             :   const VariablePhiValue & _phi_interior;
      50             : 
      51             :   /// neighbor's shape function at the current side quadrature point
      52             :   const VariablePhiValue & _phi_interior_neighbor;
      53             : 
      54             :   /// interior test function at the current side quadrature point
      55             :   const VariablePhiValue & _test_interior;
      56             : 
      57             :   /// Variable id for interior variable
      58             :   const unsigned int _interior_id;
      59             : };

Generated by: LCOV version 1.14