https://mooseframework.inl.gov
InfiniteCylinderRadiativeBC.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 "MathUtils.h"
12 
15 
16 template <bool is_ad>
19 {
21  params.addRequiredParam<Real>("boundary_emissivity", "Emissivity of the boundary.");
22  params.addParam<Real>("cylinder_emissivity",
23  1,
24  "Emissivity of the cylinder in radiative heat transfer with the boundary.");
25  params.addRequiredParam<Real>("boundary_radius",
26  "Radius of the boundary approximated as cylinder.");
27  params.addRequiredParam<Real>("cylinder_radius",
28  "Radius of the cylinder on the outside of the boundary.");
29  params.addClassDescription("Boundary condition for radiative heat exchange with a cylinder"
30  "where the boundary is approximated as a cylinder as well.");
31  return params;
32 }
33 
34 template <bool is_ad>
36  const InputParameters & parameters)
37  : RadiativeHeatFluxBCBaseTempl<is_ad>(parameters),
38  _eps_boundary(this->template getParam<Real>("boundary_emissivity")),
39  _eps_cylinder(this->template getParam<Real>("cylinder_emissivity")),
40  _boundary_radius(this->template getParam<Real>("boundary_radius")),
41  _cylinder_radius(this->template getParam<Real>("cylinder_radius"))
42 {
46 }
47 
48 template <bool is_ad>
51 {
52  return _coefficient;
53 }
54 
Moose::GenericType< Real, is_ad > GenericReal
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
const Real _boundary_radius
radius of the boundary
static InputParameters validParams()
const Real _eps_boundary
Emissivity of the boundary.
Boundary condition for radiative heat exchange with a cylinder, the outer surface of the domain is as...
void addRequiredParam(const std::string &name, const std::string &doc_string)
const Real _eps_cylinder
emissivity of the cylinder in radiative heat transfer with the boundary
registerMooseObject("HeatTransferApp", InfiniteCylinderRadiativeBC)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
InfiniteCylinderRadiativeBCTempl(const InputParameters &parameters)
void addClassDescription(const std::string &doc_string)
Real _coefficient
coefficients are constant and pre-computed
virtual GenericReal< is_ad > coefficient() const override
qdot = sigma * coeff * (T^4 - Tinf^4 ) sigma: _sigma_stefan_boltzmann coeff: coefficient() coefficien...
Boundary condition for radiative heat flux where temperature and the temperature of a body in radiati...
const Real _cylinder_radius
radius of the cylinder around the boundary