LCOV - code coverage report
Current view: top level - src/components - FlowBoundary.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 18 21 85.7 %
Date: 2025-07-30 13:02:48 Functions: 4 5 80.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 "FlowBoundary.h"
      11             : #include "FlowChannelBase.h"
      12             : 
      13             : InputParameters
      14        9890 : FlowBoundary::validParams()
      15             : {
      16        9890 :   InputParameters params = Component1DBoundary::validParams();
      17        9890 :   return params;
      18             : }
      19             : 
      20        4943 : FlowBoundary::FlowBoundary(const InputParameters & params)
      21        4943 :   : Component1DBoundary(params), _flow_model_id(THM::FM_INVALID)
      22             : {
      23        4943 : }
      24             : 
      25             : void
      26        4912 : FlowBoundary::init()
      27             : {
      28        4912 :   Component1DBoundary::init();
      29             : 
      30        4912 :   if (_connections.size() == 1)
      31        4908 :     if (hasComponentByName<FlowChannelBase>(_connected_component_name))
      32             :     {
      33             :       const FlowChannelBase & comp =
      34        4906 :           getTHMProblem().getComponentByName<FlowChannelBase>(_connected_component_name);
      35             : 
      36             :       _fp_name = comp.getFluidPropertiesName();
      37        4906 :       _flow_model_id = comp.getFlowModelID();
      38        9812 :       _flow_model = comp.getFlowModel();
      39             :     }
      40        4912 : }
      41             : 
      42             : void
      43        4847 : FlowBoundary::check() const
      44             : {
      45        4847 :   Component1DBoundary::check();
      46             : 
      47        4847 :   checkComponentOfTypeExistsByName<FlowChannelBase>(_connected_component_name);
      48        4847 : }
      49             : 
      50             : const UserObjectName &
      51           0 : FlowBoundary::getFluidPropertiesName() const
      52             : {
      53           0 :   checkSetupStatus(INITIALIZED_PRIMARY);
      54             : 
      55           0 :   return _fp_name;
      56             : }

Generated by: LCOV version 1.14