www.mooseframework.org
HeatSource.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
16 {
18 
19  // Override defaults and documentation, weak form is identical to BodyForce in MOOSE
20  params.addParam<Real>("value", 1.0, "Value of heat source. Multiplied by function if present.");
21  params.addParam<FunctionName>("function", "1", "Function describing the volumetric heat source");
22  return params;
23 }
24 
25 HeatSource::HeatSource(const InputParameters & parameters) : BodyForce(parameters) {}
static InputParameters validParams()
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
Definition: HeatSource.C:15
HeatSource(const InputParameters &parameters)
Definition: HeatSource.C:25
registerMooseObject("HeatTransferApp", HeatSource)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real