LCOV - code coverage report
Current view: top level - include/fvinterpolationmethods - FVAdvectedVenkatakrishnanDeferredCorrection.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 2 2 100.0 %
Date: 2026-05-29 20:35:17 Functions: 2 2 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             :  * Multi-dimensional MUSCL reconstruction using Venkatakrishnan-limited cell gradients and
      17             :  * deferred correction.
      18             :  *
      19             :  * The matrix contribution is pure upwind; the high-order reconstruction is added to the right hand
      20             :  * side as a deferred correction.
      21             :  */
      22             : class FVAdvectedVenkatakrishnanDeferredCorrection : public FVInterpolationMethod,
      23             :                                                     public FVAdvectedInterpolationMethod
      24             : {
      25             : public:
      26             :   static InputParameters validParams();
      27             : 
      28             :   FVAdvectedVenkatakrishnanDeferredCorrection(const InputParameters & params);
      29             : 
      30             :   using FVAdvectedInterpolationMethod::advectedInterpolate;
      31             :   using FVAdvectedInterpolationMethod::advectedInterpolateValue;
      32             : 
      33    14008316 :   bool needsGradients() const override { return true; }
      34             : 
      35    14008308 :   Moose::FV::GradientLimiterType gradientLimiter() const override { return _gradient_limiter; }
      36             : 
      37             :   AdvectedSystemContribution advectedInterpolate(const FaceInfo & face,
      38             :                                                  Real elem_value,
      39             :                                                  Real neighbor_value,
      40             :                                                  const VectorValue<Real> * elem_grad,
      41             :                                                  const VectorValue<Real> * neighbor_grad,
      42             :                                                  Real mass_flux) const override;
      43             : 
      44             : private:
      45             :   Moose::FV::GradientLimiterType _gradient_limiter =
      46             :       Moose::FV::GradientLimiterType::Venkatakrishnan;
      47             :   /// Scales the deferred correction strength (0 = upwind, 1 = full deferred correction).
      48             :   Real _deferred_correction_factor = 1.0;
      49             : };

Generated by: LCOV version 1.14