LCOV - code coverage report
Current view: top level - src/components - FlowJunction1Phase.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 16 16 100.0 %
Date: 2025-07-30 13:02:48 Functions: 4 4 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 "FlowJunction1Phase.h"
      11             : #include "FlowChannel1Phase.h"
      12             : 
      13             : InputParameters
      14        3088 : FlowJunction1Phase::validParams()
      15             : {
      16        3088 :   InputParameters params = FlowJunction::validParams();
      17        3088 :   return params;
      18             : }
      19             : 
      20        1544 : FlowJunction1Phase::FlowJunction1Phase(const InputParameters & params) : FlowJunction(params) {}
      21             : 
      22             : void
      23        1535 : FlowJunction1Phase::init()
      24             : {
      25        1535 :   FlowJunction::init();
      26             : 
      27        4842 :   for (const auto & connection : _connections)
      28             :   {
      29        3307 :     const std::string comp_name = connection._component_name;
      30             :     if (hasComponentByName<FlowChannel1Phase>(comp_name))
      31             :     {
      32             :       const FlowChannel1Phase & comp =
      33        3307 :           getTHMProblem().getComponentByName<FlowChannel1Phase>(comp_name);
      34             : 
      35        3307 :       _numerical_flux_names.push_back(comp.getNumericalFluxUserObjectName());
      36             :     }
      37             :   }
      38        1535 : }
      39             : 
      40             : void
      41        1505 : FlowJunction1Phase::check() const
      42             : {
      43        1505 :   FlowJunction::check();
      44             : 
      45        4752 :   for (const auto & comp_name : _connected_component_names)
      46        3247 :     checkComponentOfTypeExistsByName<FlowChannel1Phase>(comp_name);
      47        1505 : }

Generated by: LCOV version 1.14