https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
16template <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
34template <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
48template <bool is_ad>
51{
52 return _coefficient;
53}
54
registerMooseObject("HeatTransferApp", InfiniteCylinderRadiativeBC)
Moose::GenericType< Real, is_ad > GenericReal
Boundary condition for radiative heat exchange with a cylinder, the outer surface of the domain is as...
const Real _boundary_radius
radius of the boundary
const Real _cylinder_radius
radius of the cylinder around the boundary
const Real _eps_boundary
Emissivity of the boundary.
virtual GenericReal< is_ad > coefficient() const override
qdot = sigma * coeff * (T^4 - Tinf^4 ) sigma: _sigma_stefan_boltzmann coeff: coefficient() coefficien...
const Real _eps_cylinder
emissivity of the cylinder in radiative heat transfer with the boundary
Real _coefficient
coefficients are constant and pre-computed
InfiniteCylinderRadiativeBCTempl(const InputParameters &parameters)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Boundary condition for radiative heat flux where temperature and the temperature of a body in radiati...
static InputParameters validParams()