LCOV - code coverage report
Current view: top level - src/postprocessors - NekHeatFluxIntegral.C (source / functions) Hit Total Coverage
Test: neams-th-coe/cardinal: be601f Lines: 10 12 83.3 %
Date: 2025-07-15 20:50:38 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /********************************************************************/
       2             : /*                  SOFTWARE COPYRIGHT NOTIFICATION                 */
       3             : /*                             Cardinal                             */
       4             : /*                                                                  */
       5             : /*                  (c) 2021 UChicago Argonne, LLC                  */
       6             : /*                        ALL RIGHTS RESERVED                       */
       7             : /*                                                                  */
       8             : /*                 Prepared by UChicago Argonne, LLC                */
       9             : /*               Under Contract No. DE-AC02-06CH11357               */
      10             : /*                With the U. S. Department of Energy               */
      11             : /*                                                                  */
      12             : /*             Prepared by Battelle Energy Alliance, LLC            */
      13             : /*               Under Contract No. DE-AC07-05ID14517               */
      14             : /*                With the U. S. Department of Energy               */
      15             : /*                                                                  */
      16             : /*                 See LICENSE for full restrictions                */
      17             : /********************************************************************/
      18             : 
      19             : #ifdef ENABLE_NEK_COUPLING
      20             : 
      21             : #include "NekHeatFluxIntegral.h"
      22             : 
      23             : registerMooseObject("CardinalApp", NekHeatFluxIntegral);
      24             : 
      25             : InputParameters
      26         446 : NekHeatFluxIntegral::validParams()
      27             : {
      28         446 :   InputParameters params = NekSidePostprocessor::validParams();
      29         446 :   params.addClassDescription("Heat flux over a boundary in the NekRS mesh");
      30         446 :   return params;
      31           0 : }
      32             : 
      33         148 : NekHeatFluxIntegral::NekHeatFluxIntegral(const InputParameters & parameters)
      34         148 :   : NekSidePostprocessor(parameters)
      35             : {
      36             :   // this postprocessor computes the gradient of temperature, so it requires
      37             :   // the temperature field to exist
      38         148 :   if (!nekrs::hasTemperatureVariable())
      39           0 :     mooseError("This postprocessor can only be used with NekRS problems that have a temperature "
      40             :                "variable!");
      41         148 : }
      42             : 
      43             : Real
      44       11396 : NekHeatFluxIntegral::getValue() const
      45             : {
      46       11396 :   return nekrs::heatFluxIntegral(_boundary, _pp_mesh);
      47             : }
      48             : 
      49             : #endif

Generated by: LCOV version 1.14