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