https://mooseframework.inl.gov
Loading...
Searching...
No Matches
HeatTransferFromExternalAppTemperature1Phase.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
11
13
16{
18 params.addParam<FunctionName>("initial_T_wall", "Initial condition for wall temperature [K]");
19 params.addParam<VariableName>("T_ext", "Name of the wall temperature variable");
20 params.addClassDescription("Heat transfer into 1-phase flow channel from temperature provided by "
21 "an external application");
22 return params;
23}
24
30
31void
39
40void
42{
44
45 if (!isParamValid("T_ext"))
46 if (!isParamValid("initial_T_wall") && !_app.isRestarting())
47 logError("Missing initial condition for wall temperature.");
48}
49
50void
60
61void
registerMooseObject("ThermalHydraulicsApp", HeatTransferFromExternalAppTemperature1Phase)
void logError(Args &&... args) const
Logs an error.
Definition Component.h:226
THMProblem & getTHMProblem() const
Gets the THM problem.
Definition Component.C:135
virtual void check() const
Check the component integrity.
Definition Component.h:416
virtual void initSecondary()
Perform secondary initialization, which relies on init() being called for all components.
Definition Component.h:411
VariableName _T_wall_name
wall temperature name
std::vector< SubdomainName > _flow_channel_subdomains
Subdomains corresponding to the connected flow channel.
Heat transfer into 1-phase flow channel from temperature provided by an external application.
virtual void initSecondary() override
Perform secondary initialization, which relies on init() being called for all components.
virtual void check() const override
Check the component integrity.
Base class for heat transfer connections from temperature for 1-phase flow.
void addHeatTransferKernels()
Adds 1-phase heat transfer kernels.
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
bool isRestarting() const
bool isParamValid(const std::string &name) const
MooseApp & _app
void addFunctionIC(const VariableName &var_name, const std::string &func_name, const std::vector< SubdomainName > &block_names)
Definition Simulation.C:532