LCOV - code coverage report
Current view: top level - src/postprocessors - NodalEnergyFluxPostprocessor.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 0 24 0.0 %
Date: 2025-07-30 13:02:48 Functions: 0 7 0.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             : #include "NodalEnergyFluxPostprocessor.h"
      11             : 
      12             : registerMooseObject("ThermalHydraulicsApp", NodalEnergyFluxPostprocessor);
      13             : 
      14             : InputParameters
      15           0 : NodalEnergyFluxPostprocessor::validParams()
      16             : {
      17           0 :   InputParameters params = NodalPostprocessor::validParams();
      18           0 :   params.addRequiredCoupledVar("arhouA", "alpha*rho*u*A");
      19           0 :   params.addRequiredCoupledVar("H", "Specific total enthalpy");
      20           0 :   params.addClassDescription("Compute the energy flux from the sum of the nodal energy fluxes");
      21           0 :   return params;
      22           0 : }
      23             : 
      24           0 : NodalEnergyFluxPostprocessor::NodalEnergyFluxPostprocessor(const InputParameters & parameters)
      25           0 :   : NodalPostprocessor(parameters), _arhouA(coupledValue("arhouA")), _H(coupledValue("H"))
      26             : {
      27           0 : }
      28             : 
      29             : void
      30           0 : NodalEnergyFluxPostprocessor::initialize()
      31             : {
      32           0 :   _value = 0;
      33           0 : }
      34             : 
      35             : void
      36           0 : NodalEnergyFluxPostprocessor::execute()
      37             : {
      38           0 :   _value = _arhouA[_qp] * _H[_qp];
      39           0 : }
      40             : 
      41             : PostprocessorValue
      42           0 : NodalEnergyFluxPostprocessor::getValue() const
      43             : {
      44           0 :   return _value;
      45             : }
      46             : 
      47             : void
      48           0 : NodalEnergyFluxPostprocessor::finalize()
      49             : {
      50           0 :   gatherSum(_value);
      51           0 : }
      52             : 
      53             : void
      54           0 : NodalEnergyFluxPostprocessor::threadJoin(const UserObject & uo)
      55             : {
      56             :   const auto & niep = static_cast<const NodalEnergyFluxPostprocessor &>(uo);
      57           0 :   _value += niep._value;
      58           0 : }

Generated by: LCOV version 1.14