29 const std::string comp_name =
_connections[i]._component_name;
30 if (hasComponentByName<FlowChannel1Phase>(comp_name))
40 logError(
"All connected channels must have the same 'passives_names' parameter.");
51 checkComponentOfTypeExistsByName<FlowChannel1Phase>(comp_name);
54 logError(
"This Component type does not support passive transport.");
const T & getParam(const std::string &name) const
THMProblem & getTHMProblem() const
Gets the THM problem.
virtual void init() override
Initializes the component.
virtual bool supportsPassiveTransport() const
virtual void init() override
Initializes the component.
std::vector< VariableName > _passives_names
Passive transport variables on the connected flow channels.
std::vector< Connection > _connections
Vector of connections of this component.
virtual void check() const override
Check the component integrity.
void logError(Args &&... args) const
Logs an error.
const UserObjectName & getNumericalFluxUserObjectName() const
Gets the numerical flux user object name.
Single-component, single-phase flow channel.
std::vector< std::string > _connected_component_names
Vector of connected component names.
std::vector< UserObjectName > _numerical_flux_names
FlowJunction1Phase(const InputParameters ¶ms)
Base class for flow junctions.
static InputParameters validParams()
const T & getComponentByName(const std::string &name) const
Get component by its name.
static InputParameters validParams()
virtual void check() const override
Check the component integrity.
auto index_range(const T &sizable)