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