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 "FVInfiniteCylinderRadiativeBC.h" 11 : #include "MathUtils.h" 12 : 13 : registerMooseObject("HeatTransferApp", FVInfiniteCylinderRadiativeBC); 14 : 15 : InputParameters 16 38 : FVInfiniteCylinderRadiativeBC::validParams() 17 : { 18 38 : InputParameters params = FVRadiativeHeatFluxBCBase::validParams(); 19 76 : params.addRequiredParam<Real>("boundary_emissivity", "Emissivity of the boundary."); 20 76 : params.addParam<Real>("cylinder_emissivity", 21 76 : 1, 22 : "Emissivity of the cylinder in radiative heat transfer with the boundary."); 23 76 : params.addRequiredParam<Real>("boundary_radius", 24 : "Radius of the boundary approximated as cylinder."); 25 76 : params.addRequiredParam<Real>("cylinder_radius", 26 : "Radius of the cylinder on the outside of the boundary."); 27 38 : params.addClassDescription("Boundary condition for radiative heat exchange with a cylinder " 28 : "where the boundary is approximated as a cylinder as well."); 29 38 : return params; 30 0 : } 31 : 32 20 : FVInfiniteCylinderRadiativeBC::FVInfiniteCylinderRadiativeBC(const InputParameters & parameters) 33 : : FVRadiativeHeatFluxBCBase(parameters), 34 20 : _eps_boundary(getParam<Real>("boundary_emissivity")), 35 40 : _eps_cylinder(getParam<Real>("cylinder_emissivity")), 36 40 : _boundary_radius(getParam<Real>("boundary_radius")), 37 60 : _cylinder_radius(getParam<Real>("cylinder_radius")) 38 : { 39 20 : _coefficient = 40 20 : _eps_boundary * _eps_cylinder * _cylinder_radius / 41 20 : (_eps_cylinder * _cylinder_radius + _eps_boundary * _boundary_radius * (1 - _eps_cylinder)); 42 20 : } 43 : 44 : Real 45 300 : FVInfiniteCylinderRadiativeBC::coefficient() const 46 : { 47 300 : return _coefficient; 48 : }