21 "pipe",
"Name of pipe component to connect",
"Use 'flow_channel' parameter instead.");
23 "Name of flow channel component to connect to");
25 "P_hf_transferred",
false,
"Is heat flux perimeter transferred from an external source?");
26 params.
addParam<FunctionName>(
"P_hf",
"Heat flux perimeter [m]");
33 _flow_channel_name(getParam<
std::string>(
"flow_channel")),
34 _P_hf_transferred(getParam<bool>(
"P_hf_transferred")),
35 _P_hf_provided(isParamValid(
"P_hf"))
102 const std::string class_name =
"FunctionAux";
134 const std::string class_name =
"GeneralizedCircumference";
163 const MaterialPropertyName &
171 const MaterialPropertyName &
177 const UserObjectName &
const FunctionName & getAreaFunctionName() const
Get the name of the function describing the flow channel area.
HeatTransferBase(const InputParameters ¶meters)
virtual void initSecondary() override
Perform secondary initialization, which relies on init() being called for all 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.
VariableName _T_wall_name
wall temperature name
THMProblem & getTHMProblem() const
Gets the THM problem.
void addDependency(const std::string &dependency)
Adds a component name to the list of dependencies.
std::vector< std::shared_ptr< ClosuresBase > > getClosuresObjects() const
Get the used closures object(s)
std::vector< std::shared_ptr< ClosuresBase > > _closures_objects
Used closures object(s)
const UserObjectName & getFluidPropertiesName() const
FunctionName _A_fn_name
area function name for the connected flow channel
InputParameters getValidParams(const std::string &name) const
A base class for flow channels.
Base class for creating component that connect other components together (e.g.
virtual void addAuxKernel(const std::string &kernel_name, const std::string &name, InputParameters ¶meters)
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.
bool isRestarting() const
virtual const std::string & name() const
void addFunctionIC(const VariableName &var_name, const std::string &func_name, const std::vector< SubdomainName > &block_names)
void addHeatedPerimeter()
Adds heated perimeter variable and objects.
ExecFlagEnum getDefaultExecFlagEnum()
VariableName _P_hf_name
heated perimeter name
virtual void check() const
Check the component integrity.
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...
virtual void check() const override
Check the component integrity.
static const std::string TEMPERATURE_WALL
const ExecFlagType EXEC_TIMESTEP_BEGIN
const MaterialPropertyName & getWallHeatFluxName() const
Returns wall heat flux name.
void addHeatTransferName(const std::string &ht_name) const
Adds the name of a heat transfer component to the flow channel's list.
virtual void addFunction(const std::string &type, const std::string &name, InputParameters ¶meters)
virtual void addMooseObjects() override
mesh set up, called primary init
mesh set up, called both inits
virtual void init()
Initializes the component.
UserObjectName _fp_name
fluid properties object name
const std::string _flow_channel_name
name of the connected flow channel
virtual void initSecondary()
Perform secondary initialization, which relies on init() being called for all components.
static InputParameters validParams()
static const std::string HEAT_FLUX_PERIMETER
void checkSetupStatus(const EComponentSetupStatus &status) const
Throws an error if the supplied setup status of this component has not been reached.
MaterialPropertyName _q_wall_name
wall heat flux name
THM::FlowModelID _model_type
flow model type
Factory & _factory
The Factory associated with the MooseApp.
FunctionName _P_hf_fn_name
heated perimeter function name
static const std::string HEAT_FLUX_WALL
virtual void init() override
Initializes the component.
std::string getHeatTransferNamesSuffix(const std::string &ht_name) const
Gets suffix to add to heat-transfer-related names in a heat transfer component.
const VariableName & getWallTemperatureName() const
Returns wall temperature name.
virtual void addVariables() override
virtual const std::vector< SubdomainName > & getSubdomainNames() const
Gets the subdomain names for this component.
const VariableName & getHeatedPerimeterName() const
Returns heated perimeter name.
const MaterialPropertyName & getWallTemperatureMatName() const
Returns wall temperature name.
std::vector< SubdomainName > _flow_channel_subdomains
Subdomains corresponding to the connected flow channel.
const bool _P_hf_transferred
flag that heated perimeter is transferred from another application
const bool _P_hf_provided
flag that the heated perimeter was specified via an input parameter
virtual const THM::FlowModelID & getFlowModelID() const =0
Gets the flow model ID.
static InputParameters validParams()
MaterialPropertyName _T_wall_mat_name
wall temperature material name
const UserObjectName & getFluidPropertiesName() const
Gets the name of the fluid properties user object for this component.
const ExecFlagType EXEC_INITIAL