LCOV - code coverage report
Current view: top level - src/ics - SCMMassFlowRateIC.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 "SCMMassFlowRateIC.h"
      11             : 
      12             : registerMooseObject("SubChannelApp", SCMMassFlowRateIC);
      13             : registerMooseObjectRenamed("SubChannelApp", MassFlowRateIC, "06/30/2025 24:00", SCMMassFlowRateIC);
      14             : 
      15             : InputParameters
      16          21 : SCMMassFlowRateIC::validParams()
      17             : {
      18          21 :   InputParameters params = InitialCondition::validParams();
      19          21 :   params.addClassDescription(
      20             :       "Computes mass float rate from specified mass flux and cross-sectional area");
      21          42 :   params.addRequiredCoupledVar("area", "Subchannel surface area [m^2]");
      22          42 :   params.addRequiredParam<Real>("mass_flux", "Specified mass flux [kg/s-m^2]");
      23          21 :   return params;
      24           0 : }
      25             : 
      26          12 : SCMMassFlowRateIC::SCMMassFlowRateIC(const InputParameters & parameters)
      27             :   : InitialCondition(parameters),
      28          12 :     _mass_flux(getParam<Real>("mass_flux")),
      29          24 :     _area(coupledValue("area"))
      30             : {
      31          12 : }
      32             : 
      33             : Real
      34        1080 : SCMMassFlowRateIC::value(const Point & /*p*/)
      35             : {
      36        1080 :   return _mass_flux * _area[_qp];
      37             : }

Generated by: LCOV version 1.14