https://mooseframework.inl.gov
FunctionRadiativeBC.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 "FunctionRadiativeBC.h"
11 #include "MathUtils.h"
12 
13 registerMooseObject("HeatTransferApp", FunctionRadiativeBC);
14 registerMooseObject("HeatTransferApp", ADFunctionRadiativeBC);
15 
16 template <bool is_ad>
19 {
21  params.addClassDescription("Boundary condition for radiative heat exchange where the emissivity "
22  "function is supplied by a Function.");
23  params.addRequiredParam<FunctionName>(
24  "emissivity_function", "Function describing emissivity for radiative boundary condition");
25  return params;
26 }
27 
28 template <bool is_ad>
30  : RadiativeHeatFluxBCBaseTempl<is_ad>(parameters), _emissivity(getFunction("emissivity_function"))
31 {
32 }
33 
34 template <bool is_ad>
37 {
38  return _emissivity.value(_t, _q_point[_qp]);
39 }
40 
41 template class FunctionRadiativeBCTempl<false>;
42 template class FunctionRadiativeBCTempl<true>;
Moose::GenericType< Real, is_ad > GenericReal
FunctionRadiativeBCTempl(const InputParameters &parameters)
static InputParameters validParams()
static InputParameters validParams()
virtual GenericReal< is_ad > coefficient() const override
qdot = sigma * coeff * (T^4 - Tinf^4 ) sigma: _sigma_stefan_boltzmann coeff: coefficient() coefficien...
registerMooseObject("HeatTransferApp", FunctionRadiativeBC)
void addRequiredParam(const std::string &name, const std::string &doc_string)
Boundary condition for radiative heat exchange with a cylinder, the outer surface of the domain is as...
void addClassDescription(const std::string &doc_string)
Boundary condition for radiative heat flux where temperature and the temperature of a body in radiati...