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 "ThermalVariableHorizonMaterialBPD.h" 11 : 12 : registerMooseObject("PeridynamicsApp", ThermalVariableHorizonMaterialBPD); 13 : 14 : InputParameters 15 0 : ThermalVariableHorizonMaterialBPD::validParams() 16 : { 17 0 : InputParameters params = ThermalMaterialBaseBPD::validParams(); 18 0 : params.addClassDescription("Class for computing peridynamic micro conductivity for bond-based " 19 : "model using irregular mesh"); 20 : 21 0 : return params; 22 0 : } 23 : 24 0 : ThermalVariableHorizonMaterialBPD::ThermalVariableHorizonMaterialBPD( 25 0 : const InputParameters & parameters) 26 0 : : ThermalMaterialBaseBPD(parameters) 27 : { 28 0 : } 29 : 30 : void 31 0 : ThermalVariableHorizonMaterialBPD::computePeridynamicsParams(const Real ave_thermal_conductivity) 32 : { 33 0 : _Kij = _dim * ave_thermal_conductivity * (1.0 / _horizon_vol[0] + 1.0 / _horizon_vol[1]) / 34 0 : _origin_vec.norm(); 35 0 : }