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 "ADHSHeatFluxBC.h" 11 : #include "Function.h" 12 : 13 : registerMooseObject("ThermalHydraulicsApp", ADHSHeatFluxBC); 14 : 15 : InputParameters 16 64 : ADHSHeatFluxBC::validParams() 17 : { 18 64 : InputParameters params = ADFunctionNeumannBC::validParams(); 19 : 20 128 : params.addParam<FunctionName>("scale", 1.0, "Function by which to scale the boundary condition"); 21 : 22 64 : params.addClassDescription("Applies a specified heat flux to the side of a plate heat structure"); 23 : 24 64 : return params; 25 0 : } 26 : 27 34 : ADHSHeatFluxBC::ADHSHeatFluxBC(const InputParameters & parameters) 28 34 : : ADFunctionNeumannBC(parameters), _scale_fn(getFunction("scale")) 29 : { 30 34 : } 31 : 32 : ADReal 33 3856 : ADHSHeatFluxBC::computeQpResidual() 34 : { 35 3856 : return _scale_fn.value(_t, _q_point[_qp]) * ADFunctionNeumannBC::computeQpResidual(); 36 : }