25 "Post-processor by which to scale boundary condition",
26 "The 'scale' parameter is replacing the 'scale_pp' parameter. 'scale' is a function " 27 "parameter instead of a post-processor parameter. If you need to scale from a post-processor " 28 "value, use a PostprocessorFunction.");
29 params.
addParam<FunctionName>(
"scale", 1.0,
"Function by which to scale the boundary condition");
33 "If true, the scaling function is applied to the heat rate post-processor.");
43 _q_fn_name(getParam<FunctionName>(
"q"))
53 const bool is_cylindrical = hs_cyl !=
nullptr;
56 const std::string class_name = is_cylindrical ?
"ADHSHeatFluxRZBC" :
"ADHSHeatFluxBC";
59 pars.
set<std::vector<BoundaryName>>(
"boundary") =
_boundary;
63 pars.
set<Point>(
"axis_point") = hs_cyl->getPosition();
66 pars.
set<FunctionName>(
"scale") = getParam<FunctionName>(
"scale");
68 pars.
set<PostprocessorName>(
"scale_pp") = getParam<PostprocessorName>(
"scale_pp");
76 const std::string class_name =
"HeatRateHeatFluxRZ";
78 pars.
set<std::vector<BoundaryName>>(
"boundary") =
_boundary;
80 pars.
set<Point>(
"axis_point") = hs_cyl->getPosition();
82 if (getParam<bool>(
"scale_heat_rate_pp"))
83 pars.
set<FunctionName>(
"scale") = getParam<FunctionName>(
"scale");
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 FunctionName & _q_fn_name
Heat flux function name.
THMProblem & getTHMProblem() const
Gets the THM problem.
InputParameters getValidParams(const std::string &name) const
Applies a specified heat flux to a heat structure boundary.
const ExecFlagType EXEC_TIMESTEP_END
std::string genSafeName(const std::string &prefix, const std::string &middle, const std::string &suffix="") const
Build a name from strings that is safe to use in input files (i.e.
HSBoundaryHeatFlux(const InputParameters ¶ms)
static InputParameters validParams()
virtual const std::string & name() const
virtual void addBoundaryCondition(const std::string &bc_name, const std::string &name, InputParameters ¶meters)
bool isParamValid(const std::string &name) const
virtual void addPostprocessor(const std::string &pp_name, const std::string &name, InputParameters ¶meters)
Base class for cylindrical heat structure components.
const std::vector< BoundaryName > & _boundary
Boundary names for which the boundary component applies.
static const std::string TEMPERATURE
registerMooseObject("ThermalHydraulicsApp", HSBoundaryHeatFlux)
Interface class for heat structure components.
virtual void addMooseObjects() override
static InputParameters validParams()
Factory & _factory
The Factory associated with the MooseApp.
Base class for heat structure boundary components.
const ExecFlagType EXEC_INITIAL