https://mooseframework.inl.gov
HeatGeneration.C
Go to the documentation of this file.
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 "HeatGeneration.h"
11 
12 registerMooseObject("ThermalHydraulicsApp", HeatGeneration);
13 
16 {
18  params.addClassDescription(
19  "Specify a heat source in a heat structure. This component is deprecated.");
20  params.addRequiredParam<std::string>("hs", "Heat structure in which to apply heat source");
21  params.addRequiredParam<std::vector<std::string>>(
22  "regions", "Heat structure regions where heat generation is to be applied");
23  params.addParam<std::string>("power", "Reactor power component");
24  params.addParam<Real>(
25  "power_fraction", 1., "Fraction of reactor power that goes into the heat structure [-]");
26  params.addParam<FunctionName>("power_shape_function", "Axial power shape [-]");
27  params.addParam<VariableName>("power_density", "Power density variable");
28 
29  return params;
30 }
31 
32 HeatGeneration::HeatGeneration(const InputParameters & parameters) : Component(parameters)
33 {
34  logError("'HeatGeneration' component is deprecated, use 'HeatSourceFromTotalPower' or "
35  "'HeatSourceFromPowerDensity' instead.");
36 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
Adds heat generation to a heat structure.
registerMooseObject("ThermalHydraulicsApp", HeatGeneration)
static InputParameters validParams()
Definition: Component.C:18
void addRequiredParam(const std::string &name, const std::string &doc_string)
void logError(Args &&... args) const
Logs an error.
Definition: Component.h:215
static InputParameters validParams()
Base class for THM components.
Definition: Component.h:27
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
HeatGeneration(const InputParameters &parameters)