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";
47 pars.
set<Point>(
"axis_point") = hs_cyl->getPosition();
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.
const VariableName _power_density_name
The name of the power density variable (typically an aux variable)
THMProblem & getTHMProblem() const
Gets the THM problem.
InputParameters getValidParams(const std::string &name) const
virtual void addKernel(const std::string &kernel_name, const std::string &name, InputParameters ¶meters)
virtual const std::string & name() const
static InputParameters validParams()
virtual void addMooseObjects() override
HeatSourceFromPowerDensity(const InputParameters ¶meters)
static InputParameters validParams()
Base class for cylindrical heat structure components.
static const std::string TEMPERATURE
Interface class for heat structure components.
Base class for heat source components.
Factory & _factory
The Factory associated with the MooseApp.
Heat source from power density.
std::vector< SubdomainName > _subdomain_names
Names of the heat structure subdomains corresponding to the given regions.
registerMooseObject("ThermalHydraulicsApp", HeatSourceFromPowerDensity)