https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
11
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
42Real
44{
45 const Real circumference = computeCircumference(_q_point[_qp]);
47 circumference;
48}
registerMooseObject("ThermalHydraulicsApp", HeatRateConductionRZ)
Integrates a conduction heat flux over an RZ boundary.
static InputParameters validParams()
HeatRateConductionRZ(const InputParameters &parameters)
const VariableGradient & _grad_T
Temperature gradient.
const Real _direction_factor
Inward/outward factor.
virtual Real computeQpIntegral() override
const ADMaterialProperty< Real > & _k
Thermal conductivity.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Interface class for enabling objects to be RZ symmetric about arbitrary axis.
Definition RZSymmetry.h:20
virtual Real computeCircumference(const RealVectorValue &pt)
Definition RZSymmetry.C:85
static InputParameters validParams()
Definition RZSymmetry.C:17
static InputParameters validParams()
const MooseArray< Point > & _q_point
const MooseArray< Point > & _normals
auto raw_value(const Eigen::Map< T > &in)