LCOV - code coverage report
Current view: top level - src/ics - SCMMassFlowRateIC.C (source / functions) Hit Total Coverage
Test: idaholab/moose subchannel: #32971 (54bef8) with base c6cf66 Lines: 12 13 92.3 %
Date: 2026-05-29 20:40:47 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             : 
      14             : InputParameters
      15          15 : SCMMassFlowRateIC::validParams()
      16             : {
      17          15 :   InputParameters params = InitialCondition::validParams();
      18          15 :   params.addClassDescription(
      19             :       "Computes mass float rate from specified mass flux and cross-sectional area");
      20          30 :   params.addRequiredCoupledVar("area", "Subchannel surface area [m^2]");
      21          30 :   params.addRequiredParam<Real>("mass_flux", "Specified mass flux [kg/s-m^2]");
      22          15 :   return params;
      23           0 : }
      24             : 
      25           8 : SCMMassFlowRateIC::SCMMassFlowRateIC(const InputParameters & parameters)
      26             :   : InitialCondition(parameters),
      27           8 :     _mass_flux(getParam<Real>("mass_flux")),
      28          16 :     _area(coupledValue("area"))
      29             : {
      30           8 : }
      31             : 
      32             : Real
      33         900 : SCMMassFlowRateIC::value(const Point & /*p*/)
      34             : {
      35         900 :   return _mass_flux * _area[_qp];
      36             : }

Generated by: LCOV version 1.14