37 "When using simple closures, the parameter 'f' must be provided.");
46 "The parameter 'Hw' must be provided when using simple closures.");
59 if (n_ht_connections > 0)
62 if (n_ht_connections > 1)
71 if (n_ht_connections > 1)
78 if (n_ht_connections > 1)
90 const FunctionName & Hw_fn_name = heat_transfer.
getParam<FunctionName>(
"Hw");
93 const std::string class_name =
"ADGenericFunctionMaterial";
96 params.
set<std::vector<std::string>>(
"prop_names") = {
98 params.
set<std::vector<FunctionName>>(
"prop_values") = {Hw_fn_name};
100 class_name,
genName(heat_transfer.
name(),
"Hw_material", flow_channel.
name()), params);
110 const std::string class_name =
"ADTemperatureWall3EqnMaterial";
THMProblem & _sim
Simulation.
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.
std::vector< VariableName > getHeatedPerimeterNames() const
Gets heated perimeter names for connected heat transfers.
static const std::string TEMPERATURE
void addWeightedAverageMaterial(const FlowChannelBase &flow_channel, const std::vector< MaterialPropertyName > &values, const std::vector< VariableName > &weights, const MaterialPropertyName &property_name) const
Adds a weighted average material.
unsigned int getNumberOfHeatTransferConnections() const
Gets the number of heat transfer connections.
virtual void addMaterial(const std::string &material_name, const std::string &name, InputParameters ¶meters)
Base class for heat transfer connections to 1-phase flow channels.
static InputParameters validParams()
InputParameters getValidParams(const std::string &name) const
const std::string & cname() const
Get the component name.
static const std::string HEAT_TRANSFER_COEFFICIENT_WALL
void logComponentError(const std::string &component_name, Args &&... args) const
Logs an error for a component.
A base class for flow channels.
void addAverageWallTemperatureMaterial(const FlowChannel1Phase &flow_channel) const
Adds average wall temperature material.
virtual void checkHeatTransfer(const HeatTransferBase &heat_transfer, const FlowChannelBase &flow_channel) const override
Checks for errors associated with a heat transfer component.
void makeFunctionControllableIfConstant(const FunctionName &fn_name, const std::string &control_name, const std::string ¶m="value") const
Makes a function controllable if it is constant.
virtual const std::string & name() const
bool isParamValid(const std::string &name) const
void addWallTemperatureFromAuxMaterial(const FlowChannelBase &flow_channel, unsigned int i=0) const
Adds a material for wall temperature from an aux variable.
virtual void addMooseObjectsFlowChannel(const FlowChannelBase &flow_channel) override
Adds MOOSE objects associated with a flow channel component.
Single-component, single-phase flow channel.
const T & getParam(const std::string &name) const
Base class for heat transfer connections.
Closures1PhaseSimple(const InputParameters ¶ms)
const MaterialPropertyName & getWallHeatTransferCoefficient1PhaseName() const
Returns 1-phase wall heat transfer coefficient name.
Base class for 1-phase closures.
virtual void addMooseObjectsHeatTransfer(const HeatTransferBase &heat_transfer, const FlowChannelBase &flow_channel) override
Adds MOOSE objects associated with a heat transfer component.
std::vector< MaterialPropertyName > getWallHTCNames1Phase() const
Gets 1-phase wall heat transfer coefficient names for connected heat transfers.
Factory & _factory
Factory associated with the MooseApp.
void addWallTemperatureFromHeatFluxMaterial(const FlowChannel1Phase &flow_channel) const
Adds material to compute wall temperature from heat flux.
static const std::string HEAT_FLUX_WALL
virtual void checkFlowChannel(const FlowChannelBase &flow_channel) const override
Checks for errors associated with a flow channel component.
void addWallFrictionFunctionMaterial(const FlowChannel1Phase &flow_channel) const
Adds material that computes wall friction factor from a specified function.
virtual const std::vector< SubdomainName > & getSubdomainNames() const
Gets the subdomain names for this component.
bool getTemperatureMode() const
Gets temperature mode flag.
registerMooseObject("ThermalHydraulicsApp", Closures1PhaseSimple)