LCOV - code coverage report
Current view: top level - src/auxkernels - SCMMassFlowRateAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose subchannel: #33187 (5aa0b2) with base d7c4bd Lines: 12 13 92.3 %
Date: 2026-06-30 12:24:57 Functions: 3 3 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             : #include "SCMMassFlowRateAux.h"
      11             : 
      12             : registerMooseObject("SubChannelApp", SCMMassFlowRateAux);
      13             : 
      14             : InputParameters
      15         594 : SCMMassFlowRateAux::validParams()
      16             : {
      17         594 :   InputParameters params = AuxKernel::validParams();
      18         594 :   params.addClassDescription(
      19             :       "Computes mass flow rate from specified mass flux and subchannel cross-sectional "
      20             :       "area. Can read either PostprocessorValue or Real");
      21        1188 :   params.addRequiredCoupledVar("area", "Cross sectional area [m^2]");
      22        1188 :   params.addRequiredParam<PostprocessorName>(
      23             :       "mass_flux", "The postprocessor or Real to use for the value of mass_flux");
      24         594 :   return params;
      25           0 : }
      26             : 
      27         312 : SCMMassFlowRateAux::SCMMassFlowRateAux(const InputParameters & parameters)
      28             :   : AuxKernel(parameters),
      29         312 :     _mass_flux(getPostprocessorValue("mass_flux")),
      30         624 :     _area(coupledValue("area"))
      31             : {
      32         312 : }
      33             : 
      34             : Real
      35       10472 : SCMMassFlowRateAux::computeValue()
      36             : {
      37       10472 :   return _mass_flux * _area[_qp];
      38             : }

Generated by: LCOV version 1.14