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