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 "TrussHeatConduction.h" 11 : #include "MooseMesh.h" 12 : 13 : registerMooseObject("HeatTransferApp", TrussHeatConduction); 14 : 15 : InputParameters 16 123 : TrussHeatConduction::validParams() 17 : { 18 123 : InputParameters params = HeatConductionKernel::validParams(); 19 123 : params.addClassDescription("Computes conduction term in heat equation for truss elements, taking " 20 : "cross-sectional area into account"); 21 246 : params.addCoupledVar("area", "Cross-sectional area of truss element"); 22 123 : return params; 23 0 : } 24 : 25 66 : TrussHeatConduction::TrussHeatConduction(const InputParameters & parameters) 26 66 : : HeatConductionKernel(parameters), _area(coupledValue("area")) 27 : { 28 66 : } 29 : 30 : Real 31 12080 : TrussHeatConduction::computeQpResidual() 32 : { 33 12080 : return _area[_qp] * HeatConductionKernel::computeQpResidual(); 34 : } 35 : 36 : Real 37 4800 : TrussHeatConduction::computeQpJacobian() 38 : { 39 4800 : return _area[_qp] * HeatConductionKernel::computeQpJacobian(); 40 : }