LCOV - code coverage report
Current view: top level - include/bcs - NavierStokesLHDGVelocityDirichletBC.h (source / functions) Hit Total Coverage
Test: idaholab/moose navier_stokes: 9fc4b0 Lines: 0 2 0.0 %
Date: 2025-08-14 10:14:56 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 "NavierStokesLHDGAssemblyHelper.h"
      14             : 
      15             : #include <array>
      16             : 
      17             : /**
      18             :  * Weakly imposes Dirichlet boundary conditions for the velocity for a hybridized discretization of
      19             :  * the Navier-Stokes equations
      20             :  */
      21             : class NavierStokesLHDGVelocityDirichletBC : public IntegratedBC,
      22             :                                             public NavierStokesLHDGAssemblyHelper
      23             : {
      24             : public:
      25             :   static InputParameters validParams();
      26             : 
      27             :   NavierStokesLHDGVelocityDirichletBC(const InputParameters & parameters);
      28             : 
      29             :   virtual void computeResidual() override;
      30             :   virtual void computeJacobian() override;
      31             :   virtual void computeOffDiagJacobian(unsigned int jvar) override;
      32             :   virtual void jacobianSetup() override;
      33             :   virtual void initialSetup() override;
      34             : 
      35             : protected:
      36           0 :   virtual Real computeQpResidual() override
      37             :   {
      38             :     mooseAssert(false, "this will never be called");
      39           0 :     return 0;
      40             :   }
      41             : 
      42             : private:
      43             :   /// Dirichlet velocity
      44             :   std::array<const Moose::Functor<Real> *, 3> _dirichlet_vel;
      45             : 
      46             :   /// A cache variable to prevent multiple computations of Jacobians
      47             :   unsigned int _cached_side;
      48             : };

Generated by: LCOV version 1.14