LCOV - code coverage report
Current view: top level - src/bcs - HeatConductionBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose heat_transfer: #31405 (292dce) with base fef103 Lines: 0 13 0.0 %
Date: 2025-09-04 07:53:51 Functions: 0 6 0.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 "HeatConductionBC.h"
      11             : 
      12             : registerMooseObject("HeatTransferApp", HeatConductionBC);
      13             : 
      14             : InputParameters
      15           0 : HeatConductionBC::validParams()
      16             : {
      17           0 :   InputParameters params = FluxBC::validParams();
      18           0 :   params.addClassDescription("Boundary condition for a diffusive heat flux.");
      19             : 
      20           0 :   return params;
      21           0 : }
      22             : 
      23           0 : HeatConductionBC::HeatConductionBC(const InputParameters & parameters)
      24           0 :   : FluxBC(parameters), _k(getMaterialProperty<Real>("thermal_conductivity"))
      25             : {
      26           0 : }
      27             : 
      28           0 : HeatConductionBC::~HeatConductionBC() {}
      29             : 
      30             : RealGradient
      31           0 : HeatConductionBC::computeQpFluxResidual()
      32             : {
      33           0 :   return -_k[_qp] * _grad_u[_qp];
      34             : }
      35             : 
      36             : RealGradient
      37           0 : HeatConductionBC::computeQpFluxJacobian()
      38             : {
      39           0 :   return -_k[_qp] * _grad_phi[_j][_qp];
      40             : }

Generated by: LCOV version 1.14