LCOV - code coverage report
Current view: top level - include/bcs - DiffusionLHDGDirichletBC.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 0 1 0.0 %
Date: 2025-07-17 01:28:37 Functions: 0 1 0.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             : #include "DiffusionLHDGAssemblyHelper.h"
      14             : 
      15             : /**
      16             :  * Weakly imposes Dirichlet boundary conditions for a hybridized discretization of diffusion
      17             :  */
      18             : class DiffusionLHDGDirichletBC : public IntegratedBC, public DiffusionLHDGAssemblyHelper
      19             : {
      20             : public:
      21             :   static InputParameters validParams();
      22             : 
      23             :   DiffusionLHDGDirichletBC(const InputParameters & parameters);
      24             : 
      25             :   virtual void computeResidual() override;
      26             :   virtual void computeJacobian() override;
      27             :   virtual void computeOffDiagJacobian(unsigned int jvar) override;
      28             :   virtual void jacobianSetup() override;
      29             :   virtual void initialSetup() override;
      30             : 
      31             : protected:
      32           0 :   virtual Real computeQpResidual() override { mooseError("this will never be called"); }
      33             : 
      34             : private:
      35             :   /// Functor computing the Dirichlet boundary value
      36             :   const Moose::Functor<Real> & _dirichlet_val;
      37             : 
      38             :   /// A cache variable to prevent multiple computations of Jacobians
      39             :   unsigned int _cached_side;
      40             : };

Generated by: LCOV version 1.14