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.");
std::vector< std::string > _connected_component_names
Vector of connected component names.
std::vector< Connection > _connections
Vector of connections of this component.
void logError(Args &&... args) const
Logs an error.
THMProblem & getTHMProblem() const
Gets the THM problem.
const UserObjectName & getNumericalFluxUserObjectName() const
Gets the numerical flux user object name.
Single-component, single-phase flow channel.
FlowJunction1Phase(const InputParameters ¶ms)
virtual bool supportsPassiveTransport() const
std::vector< UserObjectName > _numerical_flux_names
std::vector< VariableName > _passives_names
Passive transport variables on the connected flow channels.
virtual void check() const override
Check the component integrity.
virtual void init() override
Initializes the component.
static InputParameters validParams()
Base class for flow junctions.
static InputParameters validParams()
virtual void init() override
Initializes the component.
virtual void check() const override
Check the component integrity.
const T & getParam(const std::string &name) const
const T & getComponentByName(const std::string &name) const
Get component by its name.