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