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 "ADHeatStructureEnergyRZ.h" 11 : 12 : registerMooseObject("ThermalHydraulicsApp", ADHeatStructureEnergyRZ); 13 : 14 : InputParameters 15 970 : ADHeatStructureEnergyRZ::validParams() 16 : { 17 970 : InputParameters params = ADHeatStructureEnergyBase::validParams(); 18 970 : params += RZSymmetry::validParams(); 19 970 : params.addClassDescription("Computes the total energy for a cylindrical heat structure."); 20 970 : return params; 21 0 : } 22 : 23 338 : ADHeatStructureEnergyRZ::ADHeatStructureEnergyRZ(const InputParameters & parameters) 24 338 : : ADHeatStructureEnergyBase(parameters), RZSymmetry(this, parameters) 25 : { 26 338 : } 27 : 28 : Real 29 496984 : ADHeatStructureEnergyRZ::computeQpIntegral() 30 : { 31 496984 : const Real circumference = computeCircumference(_q_point[_qp]); 32 496984 : return circumference * ADHeatStructureEnergyBase::computeQpIntegral(); 33 : }