www.mooseframework.org
heat_transfer
src
kernels
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
14
InputParameters
15
HeatSource::validParams
()
16
{
17
InputParameters
params =
BodyForce::validParams
();
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) {}
BodyForceTempl::validParams
static InputParameters validParams()
InputParameters::addParam
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
HeatSource::validParams
static InputParameters validParams()
Definition:
HeatSource.C:15
HeatSource::HeatSource
HeatSource(const InputParameters ¶meters)
Definition:
HeatSource.C:25
InputParameters
HeatSource.h
registerMooseObject
registerMooseObject("HeatTransferApp", HeatSource)
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
HeatSource
Definition:
HeatSource.h:16
BodyForceTempl
Generated on Wed Mar 27 2024 17:59:07 for www.mooseframework.org by
1.8.14