LCOV - code coverage report
Current view: top level - include/bcs - LowerDIntegratedBC.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 5 7 71.4 %
Date: 2025-07-17 01:28:37 Functions: 4 5 80.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 "IntegratedBC.h"
      13             : 
      14             : class LowerDIntegratedBC : public IntegratedBC
      15             : {
      16             : public:
      17             :   static InputParameters validParams();
      18             : 
      19             :   LowerDIntegratedBC(const InputParameters & parameters);
      20             : 
      21        5341 :   virtual const MooseVariable & variable() const override { return _var; }
      22             :   const MooseVariable & lowerDVariable() const { return _lowerd_var; }
      23             : 
      24             :   virtual void computeResidual() override;
      25             :   virtual void computeJacobian() override;
      26             :   virtual void computeOffDiagJacobian(unsigned int jvar) override;
      27             : 
      28             : protected:
      29             :   /**
      30             :    * Method for computing the Lower part of residual at quadrature points.
      31             :    */
      32             :   virtual Real computeLowerDQpResidual() = 0;
      33             : 
      34             :   /**
      35             :    * Method for computing the LowerLower, PrimaryLower and LowerPrimary parts of Jacobian
      36             :    */
      37             :   virtual void computeLowerDJacobian(Moose::ConstraintJacobianType type);
      38             : 
      39             :   /**
      40             :    * Method for computing the LowerLower, PrimaryLower and LowerPrimary parts of Jacobian at
      41             :    * quadrature points
      42             :    */
      43             :   virtual Real computeLowerDQpJacobian(Moose::ConstraintJacobianType) = 0;
      44             : 
      45             :   /**
      46             :    * Method for computing an off-diagonal jacobian component
      47             :    */
      48             :   void computeLowerDOffDiagJacobian(Moose::ConstraintJacobianType type,
      49             :                                     const unsigned int jvar_num);
      50             : 
      51             :   /**
      52             :    * Method for computing an off-diagonal jacobian component at quadrature points.
      53             :    */
      54           0 :   virtual Real computeLowerDQpOffDiagJacobian(Moose::ConstraintJacobianType,
      55             :                                               const MooseVariableFEBase &)
      56             :   {
      57           0 :     return 0;
      58             :   }
      59             : 
      60             :   /**
      61             :    * Put necessary evaluations depending on qp but independent on test functions here
      62             :    */
      63       22528 :   virtual void initLowerDQpResidual() {}
      64             : 
      65             :   /**
      66             :    * Put necessary evaluations depending on qp but independent on test and shape functions here
      67             :    */
      68       33792 :   virtual void initLowerDQpJacobian(Moose::ConstraintJacobianType) {}
      69             : 
      70             :   /**
      71             :    * Put necessary evaluations depending on qp but independent on test and shape functions here for
      72             :    * off-diagonal Jacobian assembly
      73             :    */
      74       22528 :   virtual void initLowerDQpOffDiagJacobian(Moose::ConstraintJacobianType,
      75             :                                            const MooseVariableFEBase &)
      76             :   {
      77       22528 :   }
      78             : 
      79             :   /// Variable this kernel operates on
      80             :   const MooseVariable & _lowerd_var;
      81             :   /// Holds the current solution at the current quadrature point on the face.
      82             :   const VariableValue & _lambda;
      83             :   /// Shape functions
      84             :   const VariablePhiValue & _phi_lambda;
      85             :   /// test functions
      86             :   const VariableTestValue & _test_lambda;
      87             : };

Generated by: LCOV version 1.14