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 "HeatSource.h" 11 : 12 : registerMooseObject("HeatTransferApp", HeatSource); 13 : 14 : InputParameters 15 205 : HeatSource::validParams() 16 : { 17 205 : InputParameters params = BodyForce::validParams(); 18 : 19 : // Override defaults and documentation, weak form is identical to BodyForce in MOOSE 20 410 : params.addParam<Real>("value", 1.0, "Value of heat source. Multiplied by function if present."); 21 410 : params.addParam<FunctionName>("function", "1", "Function describing the volumetric heat source"); 22 205 : return params; 23 0 : } 24 : 25 110 : HeatSource::HeatSource(const InputParameters & parameters) : BodyForce(parameters) {}