21 "Flow channel name in which to apply heat source");
22 params.
addRequiredParam<FunctionName>(
"q",
"Volumetric heat source [W/m^3]");
37 checkComponentOfTypeExists<FlowChannel1Phase>(
"flow_channel");
43 const FlowChannelBase & fch = getComponent<FlowChannel1Phase>(
"flow_channel");
46 std::string class_name =
"OneD3EqnEnergyHeatSource";
50 pars.
set<FunctionName>(
"q") = getParam<FunctionName>(
"q");
static InputParameters validParams()
std::string genName(const std::string &prefix, unsigned int id, const std::string &suffix="") const
Build a name from a prefix, number and possible suffix.
static const std::string AREA
THMProblem & getTHMProblem() const
Gets the THM problem.
HeatSourceVolumetric1Phase(const InputParameters ¶meters)
InputParameters getValidParams(const std::string &name) const
A base class for flow channels.
virtual void addKernel(const std::string &kernel_name, const std::string &name, InputParameters ¶meters)
static InputParameters validParams()
virtual const std::string & name() const
virtual void check() const
Check the component integrity.
virtual void addMooseObjects() override
registerMooseObject("ThermalHydraulicsApp", HeatSourceVolumetric1Phase)
Base class for THM components.
Volumetric heat source applied on a 1-phase flow channel.
virtual void check() const override
Check the component integrity.
Factory & _factory
The Factory associated with the MooseApp.
static const std::string RHOEA
virtual const std::vector< SubdomainName > & getSubdomainNames() const
Gets the subdomain names for this component.