LCOV - code coverage report
Current view: top level - include/postprocessors - RayIntegralValue.h (source / functions) Hit Total Coverage
Test: idaholab/moose ray_tracing: #31405 (292dce) with base fef103 Lines: 1 1 100.0 %
Date: 2025-09-04 07:56:07 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 "GeneralPostprocessor.h"
      13             : 
      14             : // Local includes
      15             : #include "Ray.h"
      16             : 
      17             : // Forward declarations
      18             : class RayTracingStudy;
      19             : 
      20             : /**
      21             :  * Obtains the integrated value accumulated into a Ray from an IntegralRayKernel-derived class
      22             :  */
      23             : class RayIntegralValue : public GeneralPostprocessor
      24             : {
      25             : public:
      26             :   static InputParameters validParams();
      27             : 
      28             :   RayIntegralValue(const InputParameters & parameters);
      29             : 
      30             :   virtual void initialize() override;
      31         602 :   virtual void execute() override {}
      32             : 
      33             :   virtual Real getValue() const override;
      34             : 
      35             : private:
      36             :   /// The Ray data index where the integral value resides
      37             :   unsigned int _ray_data_index;
      38             :   /// The ID of the Ray that we seek the value from
      39             :   RayID _ray_id;
      40             :   /// The RayTracingStudy to get the value from
      41             :   const RayTracingStudy * _study;
      42             : };

Generated by: LCOV version 1.14