Line data Source code
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 "FVFunctorRadiativeBC.h" 11 : 12 : registerMooseObject("HeatTransferApp", FVFunctorRadiativeBC); 13 : 14 : InputParameters 15 0 : FVFunctorRadiativeBC::validParams() 16 : { 17 0 : InputParameters params = FVRadiativeHeatFluxBCBase::validParams(); 18 0 : params.addClassDescription("Boundary condition for radiative heat exchange where the emissivity " 19 : "function is supplied by a Function."); 20 0 : params.addRequiredParam<MooseFunctorName>( 21 : "emissivity", "Functor describing emissivity for radiative boundary condition"); 22 0 : return params; 23 0 : } 24 : 25 0 : FVFunctorRadiativeBC::FVFunctorRadiativeBC(const InputParameters & parameters) 26 0 : : FVRadiativeHeatFluxBCBase(parameters), _emissivity(getFunctor<Real>("emissivity")) 27 : { 28 0 : } 29 : 30 : Real 31 0 : FVFunctorRadiativeBC::coefficient() const 32 : { 33 0 : return _emissivity(singleSidedFaceArg(), determineState()); 34 : }