LCOV - code coverage report
Current view: top level - src/auxkernels - SCMMassFlowRateAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose subchannel: #31405 (292dce) with base fef103 Lines: 12 13 92.3 %
Date: 2025-09-04 07:58:06 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             : registerMooseObjectRenamed("SubChannelApp",
      14             :                            MassFlowRateAux,
      15             :                            "06/30/2025 24:00",
      16             :                            SCMMassFlowRateAux);
      17             : 
      18             : InputParameters
      19         645 : SCMMassFlowRateAux::validParams()
      20             : {
      21         645 :   InputParameters params = AuxKernel::validParams();
      22         645 :   params.addClassDescription(
      23             :       "Computes mass flow rate from specified mass flux and subchannel cross-sectional "
      24             :       "area. Can read either PostprocessorValue or Real");
      25        1290 :   params.addRequiredCoupledVar("area", "Cross sectional area [m^2]");
      26        1290 :   params.addRequiredParam<PostprocessorName>(
      27             :       "mass_flux", "The postprocessor or Real to use for the value of mass_flux");
      28         645 :   return params;
      29           0 : }
      30             : 
      31         346 : SCMMassFlowRateAux::SCMMassFlowRateAux(const InputParameters & parameters)
      32             :   : AuxKernel(parameters),
      33         346 :     _mass_flux(getPostprocessorValue("mass_flux")),
      34         692 :     _area(coupledValue("area"))
      35             : {
      36         346 : }
      37             : 
      38             : Real
      39       10034 : SCMMassFlowRateAux::computeValue()
      40             : {
      41       10034 :   return _mass_flux * _area[_qp];
      42             : }

Generated by: LCOV version 1.14