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 "HeatSourceVolumetric.h" 11 : 12 : registerMooseObject("ThermalHydraulicsApp", HeatSourceVolumetric); 13 : 14 : InputParameters 15 4 : HeatSourceVolumetric::validParams() 16 : { 17 4 : InputParameters params = Component::validParams(); 18 8 : params.addRequiredParam<std::string>("flow_channel", 19 : "Flow channel name in which to apply heat source"); 20 8 : params.addRequiredParam<FunctionName>("q", "Volumetric heat source [W/m^3]"); 21 4 : params.addClassDescription("Volumetric heat source applied on a flow channel"); 22 4 : return params; 23 0 : } 24 : 25 2 : HeatSourceVolumetric::HeatSourceVolumetric(const InputParameters & parameters) 26 2 : : Component(parameters) 27 : { 28 2 : logError("Deprecated component. Use HeatSourceVolumetric1Phase or HeatSourceVolumetric2Phase " 29 : "instead."); 30 2 : }