LCOV - code coverage report
Current view: top level - src/components - FreeBoundary1Phase.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 18 19 94.7 %
Date: 2025-07-30 13:02:48 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 "FreeBoundary1Phase.h"
      11             : #include "FlowModelSinglePhase.h"
      12             : 
      13             : registerMooseObject("ThermalHydraulicsApp", FreeBoundary1Phase);
      14             : 
      15             : InputParameters
      16         902 : FreeBoundary1Phase::validParams()
      17             : {
      18         902 :   InputParameters params = FlowBoundary1Phase::validParams();
      19         902 :   params.addClassDescription("Component to create a free flow boundary for single-phase flow.");
      20         902 :   return params;
      21           0 : }
      22             : 
      23         451 : FreeBoundary1Phase::FreeBoundary1Phase(const InputParameters & parameters)
      24         451 :   : FlowBoundary1Phase(parameters)
      25             : {
      26         451 : }
      27             : 
      28             : void
      29         451 : FreeBoundary1Phase::addMooseObjects()
      30             : {
      31         451 :   ExecFlagEnum userobject_execute_on(MooseUtils::getDefaultExecFlagEnum());
      32        2255 :   userobject_execute_on = {EXEC_INITIAL, EXEC_LINEAR, EXEC_NONLINEAR};
      33             : 
      34             :   // boundary flux user object
      35             :   {
      36         451 :     const std::string class_name = "ADBoundaryFlux3EqnFreeOutflow";
      37         451 :     InputParameters params = _factory.getValidParams(class_name);
      38         451 :     params.set<UserObjectName>("fluid_properties") = _fp_name;
      39         451 :     params.set<ExecFlagEnum>("execute_on") = userobject_execute_on;
      40         451 :     getTHMProblem().addUserObject(class_name, _boundary_uo_name, params);
      41         451 :   }
      42             : 
      43             :   // BCs
      44         451 :   addWeakBCs();
      45         902 : }

Generated by: LCOV version 1.14