LCOV - code coverage report
Current view: top level - include/fvinterpolationmethods - FVAdvectedMinmodWeightBased.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 1 1 100.0 %
Date: 2026-05-29 20:35:17 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 "FVAdvectedInterpolationMethod.h"
      13             : #include "FVInterpolationMethod.h"
      14             : 
      15             : /**
      16             :  * Minmod interpolation for advected quantities that blends between upwind and the
      17             :  * higher-order limited value using only (elem, neighbor) weights.
      18             :  */
      19             : class FVAdvectedMinmodWeightBased : public FVInterpolationMethod,
      20             :                                     public FVAdvectedInterpolationMethod
      21             : {
      22             : public:
      23             :   static InputParameters validParams();
      24             : 
      25             :   FVAdvectedMinmodWeightBased(const InputParameters & params);
      26             : 
      27             :   using FVAdvectedInterpolationMethod::advectedInterpolate;
      28             :   using FVAdvectedInterpolationMethod::advectedInterpolateValue;
      29             : 
      30    10724283 :   bool needsGradients() const override { return true; }
      31             : 
      32             :   AdvectedSystemContribution advectedInterpolate(const FaceInfo & face,
      33             :                                                  Real elem_value,
      34             :                                                  Real neighbor_value,
      35             :                                                  const VectorValue<Real> * elem_grad,
      36             :                                                  const VectorValue<Real> * neighbor_grad,
      37             :                                                  Real mass_flux) const override;
      38             : 
      39             :   Real advectedInterpolateValue(const FaceInfo & face,
      40             :                                 Real elem_value,
      41             :                                 Real neighbor_value,
      42             :                                 const VectorValue<Real> * elem_grad,
      43             :                                 const VectorValue<Real> * neighbor_grad,
      44             :                                 Real mass_flux) const override;
      45             : 
      46             : private:
      47             :   /// Whether to clamp the blending to be no more downwind-biased than linear.
      48             :   const bool _limit_to_linear;
      49             :   /// Scales the high-order blending strength (0 = upwind, 1 = full limited blending).
      50             :   const Real _blending_factor;
      51             : };

Generated by: LCOV version 1.14