https://mooseframework.inl.gov
FlowJunction1Phase.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 
10 #include "FlowJunction1Phase.h"
11 #include "FlowChannel1Phase.h"
12 
15 {
17  return params;
18 }
19 
21 
22 void
24 {
26 
27  for (const auto & connection : _connections)
28  {
29  const std::string comp_name = connection._component_name;
30  if (hasComponentByName<FlowChannel1Phase>(comp_name))
31  {
32  const FlowChannel1Phase & comp =
34 
36  }
37  }
38 }
39 
40 void
42 {
44 
45  for (const auto & comp_name : _connected_component_names)
46  checkComponentOfTypeExistsByName<FlowChannel1Phase>(comp_name);
47 }
THMProblem & getTHMProblem() const
Gets the THM problem.
Definition: Component.C:135
virtual void init() override
Initializes the component.
virtual void init() override
Initializes the component.
Definition: FlowJunction.C:29
std::vector< Connection > _connections
Vector of connections of this component.
virtual void check() const override
Check the component integrity.
Definition: FlowJunction.C:69
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 &params)
Base class for flow junctions.
Definition: FlowJunction.h:17
static InputParameters validParams()
Definition: FlowJunction.C:14
const T & getComponentByName(const std::string &name) const
Get component by its name.
Definition: Simulation.h:504
static InputParameters validParams()
virtual void check() const override
Check the component integrity.