LCOV - code coverage report
Current view: top level - include/limiters - UpwindLimiter.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 3 5 60.0 %
Date: 2025-07-17 01:28:37 Functions: 6 12 50.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 "Limiter.h"
      13             : #include "MathFVUtils.h"
      14             : 
      15             : namespace Moose
      16             : {
      17             : namespace FV
      18             : {
      19             : /**
      20             :  * Implements a limiter which reproduces the upwind scheme, defined by
      21             :  * $\beta(r_f) = 0$
      22             :  */
      23             : template <typename T>
      24             : class UpwindLimiter : public Limiter<T>
      25             : {
      26             : public:
      27     2668319 :   T limit(const T &,
      28             :           const T &,
      29             :           const VectorValue<T> *,
      30             :           const VectorValue<T> *,
      31             :           const RealVectorValue &,
      32             :           const Real &,
      33             :           const Real &,
      34             :           const FaceInfo *,
      35             :           const bool &) const override final
      36             :   {
      37     2668319 :     return 0;
      38             :   }
      39           0 :   bool constant() const override final { return true; }
      40           0 :   InterpMethod interpMethod() const override final { return InterpMethod::Upwind; }
      41             : 
      42      379867 :   UpwindLimiter() = default;
      43             : };
      44             : }
      45             : }

Generated by: LCOV version 1.14