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 "FunctionElementIntegralRZ.h" 11 : 12 : registerMooseObject("ThermalHydraulicsApp", FunctionElementIntegralRZ); 13 : 14 : InputParameters 15 389 : FunctionElementIntegralRZ::validParams() 16 : { 17 389 : InputParameters params = FunctionElementIntegral::validParams(); 18 389 : params += RZSymmetry::validParams(); 19 : 20 389 : params.addClassDescription( 21 : "Integrates a function over elements for RZ geometry modeled by XY domain"); 22 : 23 389 : return params; 24 0 : } 25 : 26 213 : FunctionElementIntegralRZ::FunctionElementIntegralRZ(const InputParameters & parameters) 27 213 : : FunctionElementIntegral(parameters), RZSymmetry(this, parameters) 28 : { 29 211 : } 30 : 31 : Real 32 36205 : FunctionElementIntegralRZ::computeQpIntegral() 33 : { 34 36205 : const Real circumference = computeCircumference(_q_point[_qp]); 35 36205 : return circumference * FunctionElementIntegral::computeQpIntegral(); 36 : }