LCOV - code coverage report
Current view: top level - src/bcs - HSCoupler2D3DBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 10 11 90.9 %
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 "HSCoupler2D3DBC.h"
      11             : #include "HSCoupler2D3DUserObject.h"
      12             : 
      13             : registerMooseObject("ThermalHydraulicsApp", HSCoupler2D3DBC);
      14             : 
      15             : InputParameters
      16         238 : HSCoupler2D3DBC::validParams()
      17             : {
      18         238 :   InputParameters params = ADIntegratedBC::validParams();
      19             : 
      20         476 :   params.addRequiredParam<UserObjectName>("hs_coupler_2d3d_uo", "The HSCoupler2D3D user object");
      21         238 :   params.addClassDescription("Adds boundary heat flux terms for HSCoupler2D3D");
      22             : 
      23         238 :   return params;
      24           0 : }
      25             : 
      26         128 : HSCoupler2D3DBC::HSCoupler2D3DBC(const InputParameters & parameters)
      27             :   : ADIntegratedBC(parameters),
      28             : 
      29         128 :     _hs_coupler_2d3d_uo(getUserObject<HSCoupler2D3DUserObject>("hs_coupler_2d3d_uo"))
      30             : {
      31         128 : }
      32             : 
      33             : ADReal
      34     2886400 : HSCoupler2D3DBC::computeQpResidual()
      35             : {
      36     2886400 :   return -_hs_coupler_2d3d_uo.getHeatFlux(_current_elem->id())[_qp] * _test[_i][_qp];
      37             : }

Generated by: LCOV version 1.14