https://mooseframework.inl.gov
HeatSourceVolumetric.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 "HeatSourceVolumetric.h"
11 
12 registerMooseObject("ThermalHydraulicsApp", HeatSourceVolumetric);
13 
16 {
18  params.addRequiredParam<std::string>("flow_channel",
19  "Flow channel name in which to apply heat source");
20  params.addRequiredParam<FunctionName>("q", "Volumetric heat source [W/m^3]");
21  params.addClassDescription("Volumetric heat source applied on a flow channel");
22  return params;
23 }
24 
26  : Component(parameters)
27 {
28  logError("Deprecated component. Use HeatSourceVolumetric1Phase or HeatSourceVolumetric2Phase "
29  "instead.");
30 }
Volumetric heat source applied on a flow channel.
HeatSourceVolumetric(const InputParameters &parameters)
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
Base class for THM components.
Definition: Component.h:27
registerMooseObject("ThermalHydraulicsApp", HeatSourceVolumetric)
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()