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 "ADHSHeatFluxRZBC.h" 11 : #include "Function.h" 12 : 13 : registerMooseObject("ThermalHydraulicsApp", ADHSHeatFluxRZBC); 14 : 15 : InputParameters 16 17 : ADHSHeatFluxRZBC::validParams() 17 : { 18 17 : InputParameters params = ADHSHeatFluxBC::validParams(); 19 17 : params += RZSymmetry::validParams(); 20 : 21 17 : params.addClassDescription("Applies a specified heat flux to the side of a cylindrical heat " 22 : "structure in XY coordinates"); 23 : 24 17 : return params; 25 0 : } 26 : 27 9 : ADHSHeatFluxRZBC::ADHSHeatFluxRZBC(const InputParameters & parameters) 28 9 : : ADHSHeatFluxBC(parameters), RZSymmetry(this, parameters) 29 : { 30 9 : } 31 : 32 : ADReal 33 400 : ADHSHeatFluxRZBC::computeQpResidual() 34 : { 35 400 : const Real P_heat = computeCircumference(_q_point[_qp]); 36 400 : return P_heat * ADHSHeatFluxBC::computeQpResidual(); 37 : }