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 "ADHeatConduction.h" 11 : 12 : registerMooseObject("HeatTransferApp", ADHeatConduction); 13 : 14 : InputParameters 15 2871 : ADHeatConduction::validParams() 16 : { 17 2871 : InputParameters params = ADDiffusion::validParams(); 18 5742 : params.addParam<MaterialPropertyName>("thermal_conductivity", 19 : "thermal_conductivity", 20 : "the name of the thermal conductivity material property"); 21 2871 : params.set<bool>("use_displaced_mesh") = true; 22 2871 : return params; 23 0 : } 24 : 25 1501 : ADHeatConduction::ADHeatConduction(const InputParameters & parameters) 26 : : ADDiffusion(parameters), 27 3002 : _thermal_conductivity(getADMaterialProperty<Real>("thermal_conductivity")) 28 : { 29 1501 : } 30 : 31 : ADRealVectorValue 32 56713928 : ADHeatConduction::precomputeQpResidual() 33 : { 34 56713928 : return _thermal_conductivity[_qp] * ADDiffusion::precomputeQpResidual(); 35 : }