LCOV - code coverage report
Current view: top level - src/bcs - ADHeatFluxBaseBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 16 17 94.1 %
Date: 2025-07-30 13:02:48 Functions: 2 2 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 "ADHeatFluxBaseBC.h"
      11             : #include "ADHeatFluxFromHeatStructureBaseUserObject.h"
      12             : #include "THMIndicesVACE.h"
      13             : #include "Assembly.h"
      14             : #include "NonlinearSystemBase.h"
      15             : 
      16             : InputParameters
      17         662 : ADHeatFluxBaseBC::validParams()
      18             : {
      19         662 :   InputParameters params = ADIntegratedBC::validParams();
      20        1324 :   params.addRequiredParam<UserObjectName>(
      21             :       "q_uo", "The name of the user object that computes the heat flux");
      22        1324 :   params.addRequiredParam<Real>("P_hs_unit", "Perimeter of a single unit of heat structure");
      23        1324 :   params.addRequiredParam<unsigned int>("n_unit", "Number of units of heat structure");
      24        1324 :   params.addRequiredParam<bool>("hs_coord_system_is_cylindrical",
      25             :                                 "Is the heat structure coordinate system cylindrical?");
      26         662 :   params.addClassDescription("Base class for heat flux boundary conditions");
      27         662 :   return params;
      28           0 : }
      29             : 
      30         374 : ADHeatFluxBaseBC::ADHeatFluxBaseBC(const InputParameters & parameters)
      31             :   : ADIntegratedBC(parameters),
      32         374 :     _q_uo(getUserObject<ADHeatFluxFromHeatStructureBaseUserObject>("q_uo")),
      33         748 :     _P_hs_unit(getParam<Real>("P_hs_unit")),
      34         748 :     _n_unit(getParam<unsigned int>("n_unit")),
      35         748 :     _hs_coord_system_is_cylindrical(getParam<bool>("hs_coord_system_is_cylindrical")),
      36         374 :     _hs_coord(_hs_coord_system_is_cylindrical ? _P_hs_unit : 1.0),
      37         374 :     _hs_scale(-_hs_coord / (_n_unit * _P_hs_unit))
      38             : {
      39         374 : }

Generated by: LCOV version 1.14