20 params.
addRequiredParam<VariableName>(
"power_density",
"Power density variable");
26 :
HeatSourceBase(parameters), _power_density_name(getParam<VariableName>(
"power_density"))
37 const bool is_cylindrical = hs_cyl !=
nullptr;
40 const std::string class_name = is_cylindrical ?
"CoupledForceRZ" :
"CoupledForce";
registerMooseObject("ThermalHydraulicsApp", HeatSourceFromPowerDensity)
THMProblem & getTHMProblem() const
Gets the THM problem.
Factory & _factory
The Factory associated with the MooseApp.
virtual RealVectorValue getDirection() const
virtual Point getPosition() const
virtual void addKernel(const std::string &kernel_name, const std::string &name, InputParameters ¶meters)
InputParameters getValidParams(const std::string &name) const
static const std::string TEMPERATURE
Base class for heat source components.
std::vector< SubdomainName > _subdomain_names
Names of the heat structure subdomains corresponding to the given regions.
static InputParameters validParams()
Heat source from power density.
static InputParameters validParams()
const VariableName _power_density_name
The name of the power density variable (typically an aux variable)
virtual void addMooseObjects() override
HeatSourceFromPowerDensity(const InputParameters ¶meters)
Base class for cylindrical heat structure components.
Interface class for heat structure components.
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.