21 params.
addParam<VariableName>(
"T_ext",
"T_ext",
"Temperature from external application");
23 "htc_ext",
"htc_ext",
"Heat transfer coefficient from external application");
26 "Post-processor by which to scale boundary condition",
27 "The 'scale' parameter is replacing the 'scale_pp' parameter. 'scale' is a function " 28 "parameter instead of a post-processor parameter. If you need to scale from a post-processor " 29 "value, use a PostprocessorFunction.");
30 params.
addParam<FunctionName>(
"scale", 1.0,
"Function by which to scale the boundary condition");
34 "If true, the scaling function is applied to the heat rate post-processor.");
37 "transfer with an external application");
44 _T_ext_var_name(getParam<VariableName>(
"T_ext")),
45 _htc_ext_var_name(getParam<VariableName>(
"htc_ext"))
53 const std::vector<SubdomainName> & subdomain_names =
68 const bool is_cylindrical = hs_cyl !=
nullptr;
71 const std::string class_name = is_cylindrical ?
"ADExternalAppConvectionHeatTransferRZBC" 72 :
"ADExternalAppConvectionHeatTransferBC";
75 pars.
set<std::vector<BoundaryName>>(
"boundary") =
_boundary;
80 pars.
set<Point>(
"axis_point") = hs_cyl->getPosition();
83 pars.
set<FunctionName>(
"scale") = getParam<FunctionName>(
"scale");
85 pars.
set<PostprocessorName>(
"scale_pp") = getParam<PostprocessorName>(
"scale_pp");
93 const std::string class_name =
"HeatRateExternalAppConvectionRZ";
95 pars.
set<std::vector<BoundaryName>>(
"boundary") =
_boundary;
99 pars.
set<Point>(
"axis_point") = hs_cyl->getPosition();
101 if (getParam<bool>(
"scale_heat_rate_pp"))
102 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.
THMProblem & getTHMProblem() const
Gets the THM problem.
InputParameters getValidParams(const std::string &name) const
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.
virtual void addMooseObjects() override
virtual const std::string & name() const
virtual void addVariables() override
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)
void addSimVariable(bool nl, const VariableName &name, libMesh::FEType fe_type, Real scaling_factor=1.0)
Queues a variable of type MooseVariableScalar to be added to the nonlinear or aux system...
Base class for cylindrical heat structure components.
HSBoundaryExternalAppConvection(const InputParameters ¶ms)
const std::vector< BoundaryName > & _boundary
Boundary names for which the boundary component applies.
static const std::string TEMPERATURE
registerMooseObject("ThermalHydraulicsApp", HSBoundaryExternalAppConvection)
const VariableName & _T_ext_var_name
Temperature from external application.
Interface class for heat structure components.
static const libMesh::FEType & feType()
Get the FE type used for heat conduction.
static InputParameters validParams()
Factory & _factory
The Factory associated with the MooseApp.
const VariableName & _htc_ext_var_name
Heat transfer coefficient from external application.
const GeometricalComponent & getGeometricalComponent() const
Gets the geometrical component inheriting from this interface.
static InputParameters validParams()
virtual const std::vector< SubdomainName > & getSubdomainNames() const
Gets the subdomain names for this component.
Base class for heat structure boundary components.
Heat structure boundary condition to perform convective heat transfer with an external application...
const ExecFlagType EXEC_INITIAL