https://mooseframework.inl.gov
HeatRateConductionRZ.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 
10 #include "HeatRateConductionRZ.h"
11 
12 registerMooseObject("ThermalHydraulicsApp", HeatRateConductionRZ);
13 
16 {
18  params += RZSymmetry::validParams();
19 
20  params.addRequiredCoupledVar("temperature", "Temperature");
21  params.addRequiredParam<MaterialPropertyName>("thermal_conductivity",
22  "Thermal conductivity material property");
23  params.addRequiredParam<bool>("inward",
24  "Set to true to get the conduction rate into the domain and to "
25  "false to the get the conduction rate out of the domain");
26 
27  params.addClassDescription("Integrates a conduction heat flux over an RZ boundary.");
28 
29  return params;
30 }
31 
33  : SideIntegralPostprocessor(parameters),
34  RZSymmetry(this, parameters),
35 
36  _grad_T(coupledGradient("temperature")),
37  _k(getADMaterialProperty<Real>("thermal_conductivity")),
38  _direction_factor(getParam<bool>("inward") ? -1.0 : 1.0)
39 {
40 }
41 
42 Real
44 {
45  const Real circumference = computeCircumference(_q_point[_qp]);
47  circumference;
48 }
Interface class for enabling objects to be RZ symmetric about arbitrary axis.
Definition: RZSymmetry.h:19
static InputParameters validParams()
static InputParameters validParams()
auto raw_value(const Eigen::Map< T > &in)
const MooseArray< Point > & _q_point
registerMooseObject("ThermalHydraulicsApp", HeatRateConductionRZ)
void addRequiredParam(const std::string &name, const std::string &doc_string)
HeatRateConductionRZ(const InputParameters &parameters)
virtual Real computeQpIntegral() override
const Real _direction_factor
Inward/outward factor.
const ADMaterialProperty< Real > & _k
Thermal conductivity.
virtual Real computeCircumference(const RealVectorValue &pt)
Definition: RZSymmetry.C:85
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Integrates a conduction heat flux over an RZ boundary.
const MooseArray< Point > & _normals
void addClassDescription(const std::string &doc_string)
const VariableGradient & _grad_T
Temperature gradient.
static InputParameters validParams()
Definition: RZSymmetry.C:17