LCOV - code coverage report
Current view: top level - src/materials - ThermalConstantHorizonMaterialBPD.C (source / functions) Hit Total Coverage
Test: idaholab/moose peridynamics: #31405 (292dce) with base fef103 Lines: 13 14 92.9 %
Date: 2025-09-04 07:55:08 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 "ThermalConstantHorizonMaterialBPD.h"
      11             : #include "MathUtils.h"
      12             : 
      13             : registerMooseObject("PeridynamicsApp", ThermalConstantHorizonMaterialBPD);
      14             : 
      15             : InputParameters
      16         369 : ThermalConstantHorizonMaterialBPD::validParams()
      17             : {
      18         369 :   InputParameters params = ThermalMaterialBaseBPD::validParams();
      19         369 :   params.addClassDescription(
      20             :       "Class for computing peridynamic micro conductivity for bond-based model "
      21             :       "using regular uniform mesh");
      22             : 
      23         369 :   return params;
      24           0 : }
      25             : 
      26         291 : ThermalConstantHorizonMaterialBPD::ThermalConstantHorizonMaterialBPD(
      27         291 :     const InputParameters & parameters)
      28         291 :   : ThermalMaterialBaseBPD(parameters)
      29             : {
      30         291 : }
      31             : 
      32             : void
      33      581316 : ThermalConstantHorizonMaterialBPD::computePeridynamicsParams(const Real ave_thermal_conductivity)
      34             : {
      35      581316 :   _Kij = 3.0 * ave_thermal_conductivity / M_PI *
      36      581316 :          (1.0 / (MathUtils::pow(_horizon_radius[0], _dim + 1)) +
      37      581316 :           1.0 / (MathUtils::pow(_horizon_radius[1], _dim + 1)));
      38      581316 : }

Generated by: LCOV version 1.14