LCOV - code coverage report
Current view: top level - src/kernels - AnisoHeatConduction.C (source / functions) Hit Total Coverage
Test: idaholab/moose heat_transfer: #32971 (54bef8) with base c6cf66 Lines: 14 15 93.3 %
Date: 2026-05-29 20:37:03 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 "AnisoHeatConduction.h"
      11             : 
      12             : registerMooseObject("HeatTransferApp", AnisoHeatConduction);
      13             : 
      14             : InputParameters
      15         102 : AnisoHeatConduction::validParams()
      16             : {
      17         102 :   InputParameters params = DerivativeMaterialInterface<Kernel>::validParams();
      18         102 :   params.addClassDescription("Anisotropic diffusive heat conduction term $\\nabla \\cdot "
      19             :                              "-\\mathbf{k} \\nabla T$ of the thermal energy conservation equation");
      20         204 :   params.addParam<MaterialPropertyName>(
      21             :       "thermal_conductivity",
      22             :       "thermal_conductivity",
      23             :       "Material property providing thermal conductivity of the material.");
      24             : 
      25         102 :   return params;
      26           0 : }
      27             : 
      28          54 : AnisoHeatConduction::AnisoHeatConduction(const InputParameters & parameters)
      29             :   : DerivativeMaterialInterface<Kernel>(parameters),
      30          54 :     _k(getMaterialProperty<RankTwoTensor>("thermal_conductivity")),
      31         108 :     _dk_dT(getMaterialPropertyDerivative<RankTwoTensor>("thermal_conductivity", _var.name()))
      32             : {
      33          54 : }
      34             : 
      35             : Real
      36      338080 : AnisoHeatConduction::computeQpResidual()
      37             : {
      38      338080 :   return _k[_qp] * _grad_u[_qp] * _grad_test[_i][_qp];
      39             : }
      40             : 
      41             : Real
      42      773888 : AnisoHeatConduction::computeQpJacobian()
      43             : {
      44      773888 :   return _k[_qp] * _grad_phi[_j][_qp] * _grad_test[_i][_qp] +
      45      773888 :          _dk_dT[_qp] * _phi[_j][_qp] * _grad_u[_qp] * _grad_test[_i][_qp];
      46             : }

Generated by: LCOV version 1.14