https://mooseframework.inl.gov
FunctionElementIntegralRZ.C
Go to the documentation of this file.
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 
11 
12 registerMooseObject("ThermalHydraulicsApp", FunctionElementIntegralRZ);
13 
16 {
18  params += RZSymmetry::validParams();
19 
20  params.addClassDescription(
21  "Integrates a function over elements for RZ geometry modeled by XY domain");
22 
23  return params;
24 }
25 
27  : FunctionElementIntegral(parameters), RZSymmetry(this, parameters)
28 {
29 }
30 
31 Real
33 {
34  const Real circumference = computeCircumference(_q_point[_qp]);
35  return circumference * FunctionElementIntegral::computeQpIntegral();
36 }
virtual Real computeQpIntegral() override
static InputParameters validParams()
const MooseArray< Point > & _q_point
virtual Real computeQpIntegral() override
Interface class for enabling objects to be RZ symmetric about arbitrary axis.
Definition: RZSymmetry.h:19
Integrates a function over elements for RZ geometry modeled by XY domain.
FunctionElementIntegralRZ(const InputParameters &parameters)
virtual Real computeCircumference(const RealVectorValue &pt)
Definition: RZSymmetry.C:85
registerMooseObject("ThermalHydraulicsApp", FunctionElementIntegralRZ)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
static InputParameters validParams()
Definition: RZSymmetry.C:17