https://mooseframework.inl.gov
HeatRateExternalAppConvectionRZ.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 #include "Function.h"
12 
14 
17 {
19  params += RZSymmetry::validParams();
20 
21  params.addRequiredCoupledVar("T", "Temperature");
22  params.addRequiredCoupledVar("T_ext", "Temperature from external application");
23  params.addRequiredCoupledVar("htc_ext", "Heat transfer coefficient from external application");
24  params.addParam<FunctionName>("scale", 1.0, "Function by which to scale the heat flux");
25 
26  params.addClassDescription("Integrates a cylindrical heat structure boundary convective heat "
27  "flux from an external application");
28 
29  return params;
30 }
31 
33  : SideIntegralPostprocessor(parameters),
34  RZSymmetry(this, parameters),
35 
36  _T(coupledValue("T")),
37  _T_ext(coupledValue("T_ext")),
38  _htc_ext(coupledValue("htc_ext")),
39  _scale_fn(getFunction("scale"))
40 {
41 }
42 
43 Real
45 {
46  const Real circumference = computeCircumference(_q_point[_qp]);
47  return _scale_fn.value(_t, _q_point[_qp]) * circumference * _htc_ext[_qp] *
48  (_T_ext[_qp] - _T[_qp]);
49 }
const VariableValue & _htc_ext
Heat transfer coefficient from external application.
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
Interface class for enabling objects to be RZ symmetric about arbitrary axis.
Definition: RZSymmetry.h:19
static InputParameters validParams()
const Function & _scale_fn
Function by which to scale the heat flux.
const MooseArray< Point > & _q_point
registerMooseObject("ThermalHydraulicsApp", HeatRateExternalAppConvectionRZ)
const VariableValue & _T
Temperature.
virtual Real computeCircumference(const RealVectorValue &pt)
Definition: RZSymmetry.C:85
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
HeatRateExternalAppConvectionRZ(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableValue & _T_ext
Temperature from external application.
void addClassDescription(const std::string &doc_string)
virtual Real value(Real t, const Point &p) const
static InputParameters validParams()
Definition: RZSymmetry.C:17
Integrates a cylindrical heat structure boundary convective heat flux from an external application...